Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-uploading an attachment crashes Fauxton #1309

Open
zachsa opened this issue Feb 22, 2021 · 2 comments
Open

Re-uploading an attachment crashes Fauxton #1309

zachsa opened this issue Feb 22, 2021 · 2 comments

Comments

@zachsa
Copy link

zachsa commented Feb 22, 2021

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)
@zachsa
Copy link
Author

zachsa commented Feb 22, 2021

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

@zachsa
Copy link
Author

zachsa commented Feb 23, 2021

This also occurs on the Cloudant interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant