Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1411

futon breaking in chrome and throwing errors in firefox after editing _security for a DB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1.1
    • None
    • Futon
    • chrome, firefox

    • Regular Contributors Level (Easy to Medium)

    Description

      this situation happens when i edit the security object of my db. i change the roles for readers to ["_admin"].
      then back to [].

      futon can not load my documents after the first change, and second.

      now when i click on my db in the overview, the url that it loads is ..._utils/database.html?install/_security
      i also get a pop-up error, and futon does not render any of my documents (blank list)

      ------------------------------------------------------------------------------------------------------------------------------------------------------------

      chrome console log:

      GET http://192.168.1.254:5984/_config/query_servers/ 401 (Unauthorized)
      jQuery.extend.ajaxjquery.js:5252
      ajaxjquery.couch.js:636
      $.extend.configjquery.couch.js:62
      $.extend.CouchDatabasePage.populateLanguagesMenufuton.browse.js:345
      $.extend.CouchDatabasePage.populateViewEditorfuton.browse.js:309
      (anonymous function)database.html:92
      jQuery.extend.readyjquery.js:392
      DOMContentLoaded

      XHR finished loading: "http://192.168.1.254:5984/install/_all_docs?startkey=%22_design%2F%22&endkey=%22_design0%22&include_docs=true".
      jQuery.extend.ajaxjquery.js:5252
      ajaxjquery.couch.js:636
      $.extend.db.allDocsjquery.couch.js:310
      $.extend.CouchDatabasePage.populateViewsMenufuton.browse.js:366
      (anonymous function)database.html:91
      jQuery.extend.readyjquery.js:392
      DOMContentLoadedjquery.js:745

      GET http://192.168.1.254:5984/install/_design/undefined/_view/undefined?limit=11 404 (Object Not Found)
      jQuery.extend.ajaxjquery.js:5252
      ajaxjquery.couch.js:636
      $.extend.db.viewjquery.couch.js:532
      $.extend.CouchDatabasePage.updateDocumentListingfuton.browse.js:785
      $.extend.CouchDatabasePage.populateViewEditorfuton.browse.js:307
      (anonymous function)database.html:92
      jQuery.extend.readyjquery.js:392
      DOMContentLoaded

      the GET 'install/_design/undefined/_view/undefined' doesn't make sense to me

      ------------------------------------------------------------------------------------------------------------------------------------------------------------

      on firefox console i get:
      http://192.168.1.254:5984/_config/query_servers/
      401 Unauthorized 89ms
      jquery.js?1.4.2 (line 5252)
      HeadersResponseJSON

      {"error":"unauthorized","reason":"You are not a server admin."}

      firefox does not give me a pop-up error and other than the console error things seem to work as normal

      Attachments

        Activity

          People

            Unassigned Unassigned
            boxie paul iannazzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified