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

PouchDB's MAX_URL_LENGTH is longer than CouchDB 2.3's #7679

Closed
dholth opened this issue Mar 4, 2019 · 3 comments
Closed

PouchDB's MAX_URL_LENGTH is longer than CouchDB 2.3's #7679

dholth opened this issue Mar 4, 2019 · 3 comments

Comments

@dholth
Copy link
Contributor

dholth commented Mar 4, 2019

pouchdb-abstract-mapreduce limits GET queries to 2000 characters, but my CouchDB 2.3 fails when a URL is more than 1335 characters long (or 1300 characters without the protocol, domain, and port). That means max/reduce queries with a medium number of keys will fail, but normal or very big queries will succeed.

Instead, PouchDB should set a lower MAX_URL_LENGTH here and in the one or two other places that it is in play.

@dholth
Copy link
Contributor Author

dholth commented Mar 4, 2019

A cursory search of the couchdb and mochiweb source code doesn't tell me where this could be happening.

@dholth
Copy link
Contributor Author

dholth commented Mar 5, 2019

Turns out this is a regression that will be fixed in CouchDB 2.3.1 or with an explicit buffer size. apache/couchdb#1810

@stale
Copy link

stale bot commented May 4, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 4, 2019
@stale stale bot closed this as completed May 11, 2019
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