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

querystring: don't stringify bad surrogate pair #5858

Merged
merged 1 commit into from
Mar 26, 2016

Conversation

mscdex
Copy link
Contributor

@mscdex mscdex commented Mar 23, 2016

Pull Request check-list

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with
    this change (including linting)?
  • Is the commit message formatted according to CONTRIBUTING.md?
  • If this change fixes a bug (or a performance problem), is a regression
    test (or a benchmark) included?

Affected core subsystem(s)

  • querystring

Description of change

Fixes: #3702

@mscdex mscdex added querystring Issues and PRs related to the built-in querystring module. land-on-v5.x labels Mar 23, 2016
@bnoordhuis
Copy link
Member

LGTM

@mscdex mscdex force-pushed the querystring-stringify-bad-surrogate branch from 1a97620 to 0617099 Compare March 23, 2016 08:57
@mscdex
Copy link
Contributor Author

mscdex commented Mar 23, 2016

@benjamingr
Copy link
Member

LGTM, this behavior makes a lot more sense.

@cjihrig
Copy link
Contributor

cjihrig commented Mar 23, 2016

LGTM. The CI failure looks unrelated.

@jasnell
Copy link
Member

jasnell commented Mar 23, 2016

LGTM

I know this is technically restoring a throw that was there previously, but since this adds the throw back in it's technically a semver-major. How do we want to treat this one?

@mscdex
Copy link
Contributor Author

mscdex commented Mar 23, 2016

@jasnell The backwards incompatibility was not intentional so I would see this as a bug fix and thus not semver-major.

@jasnell
Copy link
Member

jasnell commented Mar 23, 2016

Ok, then on that point this should also make it's way into v4 and should likely be noted in the notable changes on the relevant releases.

Fixes: nodejs#3702
PR-URL: nodejs#5858
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@mscdex mscdex force-pushed the querystring-stringify-bad-surrogate branch from 0617099 to c169ac6 Compare March 26, 2016 08:19
@mscdex mscdex merged commit c169ac6 into nodejs:master Mar 26, 2016
@mscdex mscdex deleted the querystring-stringify-bad-surrogate branch March 26, 2016 08:20
evanlucas pushed a commit that referenced this pull request Mar 30, 2016
Fixes: #3702
PR-URL: #5858
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
evanlucas pushed a commit that referenced this pull request Mar 31, 2016
Fixes: #3702
PR-URL: #5858
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins
Copy link
Contributor

@mscdex this is not landing cleanly, would you be able to backport?

mscdex added a commit to mscdex/io.js that referenced this pull request Apr 8, 2016
Fixes: nodejs#3702
PR-URL: nodejs#5858
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Apr 11, 2016
Fixes: #3702
PR-URL: #5858
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Apr 11, 2016
MylesBorins pushed a commit that referenced this pull request Apr 11, 2016
Notable Changes:

deps:
  - Fix `--gdbjit` for embedders. Backported from v8 upstream.
    (Ben Noordhuis) #5577

etw:
  - Correctly display descriptors for ETW events 9 and 23 on the
    windows platform.
    (João Reis) #5742

querystring:
  - Restore throw when attempting to stringify bad surrogate pair.
    (Brian White) #5858
MylesBorins pushed a commit that referenced this pull request Apr 12, 2016
Notable Changes:

deps:
  - Fix `--gdbjit` for embedders. Backported from v8 upstream.
    (Ben Noordhuis) #5577

etw:
  - Correctly display descriptors for ETW events 9 and 23 on the
    windows platform.
    (João Reis) #5742

querystring:
  - Restore throw when attempting to stringify bad surrogate pair.
    (Brian White) #5858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
querystring Issues and PRs related to the built-in querystring module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it valid not to throw error in querystring.encode?
6 participants