apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB

Home Page:https://github.com/apache/couchdb-fauxton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

firefox: 'this.getEditor() is null' if doc._id is 'settings'

kinesias opened this issue · comments

This seems to be a Firefox > 65 issue.
I have a document with the _id 'settings'. If I open the doc in Firefox via Fauxton, the entire page becomes blank and I get the following stacktrace in the console:

TypeError: "this.getEditor(...) is null"
    value http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
    Dn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Gn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Yn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    hr http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    lr http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    ar http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    ir http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    Zn http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:80
    enqueueSetState http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:88
    setState http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    onStateChange http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    notify http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    notifyNestedSubs http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    onStateChange http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    l http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:57
    r http://127.0.0.1:5984/_utils/dashboard.assets/js/vendor.9993972098ce728e0fc2.js:96
    reduxDispatch http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
    fetchSelectedDatabaseInfo http://127.0.0.1:5984/_utils/dashboard.assets/js/bundle.89dbadd64e69e0df7653.js:1
vendor.9993972098ce728e0fc2.js:80:164186

This error only happens if the doc._id is 'settings'.
It does however work perfectly in Safari and Chrome.

Environment:
Fauxton on Apache CouchDB v.2.3.1
MacOS 10.13.6

@kinesias What was the database name? Are you still able to reproduce the error?

Now, I know why this is happening: it occurs when a document has CONFLICTs: if a document is in conflict mode, I get a white screen of death -- but only in Firefox.

I just hit this (Firefox 69), and yes it turned out to be a conflict.
Is there a workaround? (Other than having to open fauxton in chrome and tell it to resolve all conflicts.)

I think this error still persists, is there any update?

This is happening in Chrome 91.0.4472.114.