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

Re-uploading an attachment crashes Fauxton

zachsa opened this issue · comments

Looking at a design document on the address:

http://localhost:5984/_utils/#database/website/_design/website

I can upload an attachment to create the expected stub:

{
  "_id": "_design/website",
  "_rev": "13-91d4beb90be17d28b7c2f989bf00322f",
  "_attachments": {
    "index.html": {
      "content_type": "text/html",
      "revpos": 13,
      "digest": "md5-Ak6JYFZiBGuMsMtTiq6AsQ==",
      "length": 1796,
      "stub": true
    }
  }
}

(i.e. I added an attachment called index.html.

When I try to re-upload the attachment I get a JavaScript error

TypeError: Cannot read property 'attributes' of null
    at i.value (bundle.bdfacd9ba862d16e41b9.js:1)
    at Ns (vendor.2ca2557452a177700f4c.js:78)
    at ga (vendor.2ca2557452a177700f4c.js:78)
    at ul (vendor.2ca2557452a177700f4c.js:78)
    at al (vendor.2ca2557452a177700f4c.js:78)
    at Za (vendor.2ca2557452a177700f4c.js:78)
    at vendor.2ca2557452a177700f4c.js:78
    at t.unstable_runWithPriority (vendor.2ca2557452a177700f4c.js:94)
    at Vi (vendor.2ca2557452a177700f4c.js:78)
    at qi (vendor.2ca2557452a177700f4c.js:78)
    at zi (vendor.2ca2557452a177700f4c.js:78)
    at el (vendor.2ca2557452a177700f4c.js:78)
    at Object.notify (vendor.2ca2557452a177700f4c.js:14)
    at e.t.notifyNestedSubs (vendor.2ca2557452a177700f4c.js:14)
    at e.t.handleChangeWrapper (vendor.2ca2557452a177700f4c.js:14)
    at g (vendor.2ca2557452a177700f4c.js:31)

Actually. It might be any time more than one attachment is loaded in a row.

I think I'm running the latest Couch docker image:

docker run -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password --name couchdb -d couchdb

This also occurs on the Cloudant interface