Deleting a repository results in error dialog

Issue #925 resolved
Dirk Heinrichs
created an issue

When a (Mercurial) repository is deleted, the operation finishes with a "Status" dialog box, stating "Loading configuration failed!", but the repository has been deleted just fine.

Comments (12)

  1. Dirk Heinrichs reporter

    Log output:

    2017-06-26 08:46:00.265 [qtp385242642-33] INFO  sonia.scm.repository.DefaultRepositoryManager - delete repository rmsi/playground of type hg
    2017-06-26 08:46:00.267 [qtp385242642-33] INFO  sonia.scm.io.DefaultFileSystem - destroy directory /srv/scm/repositories/hg/rmsi/playground
    2017-06-26 08:46:00.293 [EventBus-2] INFO  sonia.scm.security.ScmRealm - invalidate cache, because of a received authorization event
    2017-06-26 08:46:00.298 [EventBus-1] INFO  sonia.scm.security.AuthorizationCollector - invalidate cache, because of a received authorization event
    

    Browser (Firefox) console:

    rmsi/playground selected  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1900:351
    add history element repositoryPanel;2xQKWLVev2q  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1816:222
    load branchwp properties  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:147:117
    branch permissions:  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:147:457
    Array [ "default,@r_mercurial_integration;" ]  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:147:494
    add permission:   20538ba2006a90471dc4d67b90bbc983a228bd4d.js:148:366
    Object { phantom: true, id: "ext-record-47", data: Object, store: Object }  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:148:400
    load webhook properties  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:232:191
    remove repository rmsi/playground  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1939:85
    call repository repository action DELETE on api/rest/repositories/2xQKWLVev2q.json  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1937:54
    reload store  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1870:199
    callback is not a function  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1870:320
    Loading configuration failed!  20538ba2006a90471dc4d67b90bbc983a228bd4d.js:77:11
    472 < 150 = false  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1869:347
    222 < 150 = false  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1869:347
    9 < 150 = true  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1869:347
    fire event fallBelowMinHeight  ac0264bd6a017be1777ac5f7378b08d6992d0ee2.js:1869:449
    
  2. Sebastian Sdorra repo owner

    Sorry for the delay but bitbucket has marked your answer as spam. Do you have archive mode enabled? Did you get the same error message with an other browser such as chrome?

  3. Markus Beuttler

    In the network tab there is a 404 not found error

    Console Log Chrome
    
    XHR finished loading: GET "https://my.domain/api/rest/plugins/webconfig.json?_dc=1499367124990&repository-id=ESQG1L0bC7".
    XHR finished loading: GET "https://my.domain/api/rest/repositories/E3QG1L0Yt6/branches.json".
    XHR finished loading: DELETE "https://my.domain/api/rest/repositories/E3QG1L0Yt6.json".
    XHR finished loading: GET "https://my.domain/api/rest/repositories.json".
    GET https://my.domain/api/rest/plugins/webconfig.json?_dc=1499367129126&repository-id=E3QG1L0Yt6 404 (Not Found)
    XHR failed loading: GET "https://my.domain/api/rest/plugins/webconfig.json?_dc=1499367129126&repository-id=E3QG1L0Yt6".
    

    Looks like it tries to load the Configuration from the deleted repository

  4. Log in to comment