pouchdb / pouchdb-server

CouchDB-compatible server built on PouchDB and Node
Apache License 2.0
948 stars 154 forks source link

hangs when fetching secure database without authentication #188

Open nolanlawson opened 7 years ago

nolanlawson commented 7 years ago

From @tyler-johnson on June 30, 2016 17:54

When I attempt to get the info on a database without authentication, while the database has a security document, the database never responds. Here is the shell script I used to produce the issue. pouchdb-server should be running before starting it.

curl -X PUT http://localhost:5984/testdb

curl -X PUT http://localhost:5984/testdb/_security \
    -H "Content-Type: application/json" \
    -d '{"members":{"names":[],"roles":["_admin"]},"admins":{"names":[],"roles":["_admin"]}}'

curl -X PUT http://localhost:5984/_config/admins/admin \
    -H "Content-Type: application/json" \
    -d '"test"'

curl -X GET http://localhost:5984/testdb

You'll notice that it hangs on the final GET request. This is with pouchdb-server@1.2.0 and express-pouchdb@1.0.5.

Copied from original issue: pouchdb/express-pouchdb#350

nolanlawson commented 7 years ago

Can't figure out what's going on here. Needs investigation, marking as "hard"

lucas-t5 commented 6 years ago

Having the same issue here, any luck in finding why this happens?

garrensmith commented 6 years ago

Anything in the logs?

Get Outlook for iOShttps://aka.ms/o0ukef


From: Haredev notifications@github.com Sent: Saturday, January 6, 2018 9:36:04 PM To: pouchdb/pouchdb-server Cc: Subscribed Subject: Re: [pouchdb/pouchdb-server] hangs when fetching secure database without authentication (#188)

Having the same issue here, any luck in finding why this happens?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/pouchdb/pouchdb-server/issues/188#issuecomment-355770231, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAK9AiAptx8-RaH-cy34mpqeJAbNVw4Cks5tH8skgaJpZM4MFMbs.