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

Fauxton: fix fauxton query parameters for complex keys (COUCHDB-2249) #237

Conversation

willholley
Copy link
Member

Fix URL generation in Fauxton when complex keys are specified as query parameters (COUCHDB-2249).

This PR contains two changes:

  1. Documents.QueryParams.parse no longer modifies it's input in-place.
  2. urlParams returned by createParams contains the stringified parameters (rather than the parsed representation that it was returning previously).

@robertkowalski
Copy link
Contributor

Thank you for contributing!

Have a question to the comments at the bottom of the tests, beside this, awesome stuff so far.

Ensure we clone the parameters to Documents.QueryParams.parse and
Documents.QueryParams.stringify. These functions should return new data
structures rather than modifying the input in-place.
Do not use the parsed query object for url generation. Instead, use the
stringified representation. Fixes COUCHDB-2249.
@willholley
Copy link
Member Author

@robertkowalski Those comments / placeholders should not have slipped in - now fixed :)

@garrensmith
Copy link
Member

Thanks @willholley, I've merged in.

@garrensmith
Copy link
Member

You can close the ticket

@willholley willholley closed this May 28, 2014
lag-linaro pushed a commit to lag-linaro/couchdb that referenced this pull request Oct 25, 2018
Add partial support for Erlang/OTP 17
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

Successfully merging this pull request may close these issues.

None yet

3 participants