Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
url: fix isURL detection by checking path#48928
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented Jul 26, 2023
Review requested:
|
| */ | ||
| functionisURL(self){ | ||
| returnBoolean(self?.href&&self.protocol&&self.auth===undefined); | ||
| returnBoolean(self?.href&&self.protocol&&self.auth===undefined&&self.path===undefined); |
ZhangdroidJul 26, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anonrig left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this is sort of like a chicken in the egg problem. We can't properly check for URL and we can't properly check for url. The only thing we can do is check their behavior/definition. I'm fine with merging this but, I'm afraid there will be some other edge case that we didn't cover.
nodejs-github-bot commented Jul 26, 2023
nodejs-github-bot commented Jul 26, 2023
nodejs-github-bot commented Jul 28, 2023
Commit Queue failed- Loading data for nodejs/node/pull/48928 ✔ Done loading data for nodejs/node/pull/48928 ----------------------------------- PR info ------------------------------------ Title url: fix `isURL` detection by checking `path` (#48928) Author Zhuo Zhang (@Zhangdroid, first-time contributor) Branch Zhangdroid:zhuo/fix-is-url -> nodejs:main Labels whatwg-url, author ready, needs-ci Commits 1 - url: fix `isURL` detection by checking `path` Committers 1 - GitHub PR-URL: https://github.com/nodejs/node/pull/48928 Fixes: https://github.com/nodejs/node/issues/48921 Fixes: https://github.com/getsentry/sentry-javascript/issues/8552 Fixes: https://github.com/request/request/issues/3458 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Matthew Aitken ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/48928 Fixes: https://github.com/nodejs/node/issues/48921 Fixes: https://github.com/getsentry/sentry-javascript/issues/8552 Fixes: https://github.com/request/request/issues/3458 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Matthew Aitken -------------------------------------------------------------------------------- ℹ This PR was created on Wed, 26 Jul 2023 04:01:57 GMT ✔ Approvals: 3 ✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/48928#pullrequestreview-1547810927 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/48928#pullrequestreview-1548415285 ✔ - Matthew Aitken (@KhafraDev): https://github.com/nodejs/node/pull/48928#pullrequestreview-1551214741 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-07-26T22:07:24Z: https://ci.nodejs.org/job/node-test-pull-request/52947/ - Querying data for job/node-test-pull-request/52947/ ✔ Last Jenkins CI successful ⚠ PR author is a new contributor: @Zhangdroid([email protected]) ⚠ - commit 333fa8eaa787 is authored by [email protected] -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/5688124610 |
Zhangdroid commented Jul 28, 2023
Hi @anonrig, I saw the bot tried to merge this PR but failed, it might because I use two emails, can you help to merge this? |
nodejs-github-bot commented Jul 29, 2023
Commit Queue failed- Loading data for nodejs/node/pull/48928 ✔ Done loading data for nodejs/node/pull/48928 ----------------------------------- PR info ------------------------------------ Title url: fix `isURL` detection by checking `path` (#48928) Author Zhuo Zhang (@Zhangdroid, first-time contributor) Branch Zhangdroid:zhuo/fix-is-url -> nodejs:main Labels whatwg-url, author ready, needs-ci Commits 1 - url: fix `isURL` detection by checking `path` Committers 1 - GitHub PR-URL: https://github.com/nodejs/node/pull/48928 Fixes: https://github.com/nodejs/node/issues/48921 Fixes: https://github.com/getsentry/sentry-javascript/issues/8552 Fixes: https://github.com/request/request/issues/3458 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Matthew Aitken Reviewed-By: Debadree Chatterjee ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/48928 Fixes: https://github.com/nodejs/node/issues/48921 Fixes: https://github.com/getsentry/sentry-javascript/issues/8552 Fixes: https://github.com/request/request/issues/3458 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca Reviewed-By: Matthew Aitken Reviewed-By: Debadree Chatterjee -------------------------------------------------------------------------------- ℹ This PR was created on Wed, 26 Jul 2023 04:01:57 GMT ✔ Approvals: 4 ✔ - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/48928#pullrequestreview-1547810927 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/48928#pullrequestreview-1548415285 ✔ - Matthew Aitken (@KhafraDev): https://github.com/nodejs/node/pull/48928#pullrequestreview-1551214741 ✔ - Debadree Chatterjee (@debadree25): https://github.com/nodejs/node/pull/48928#pullrequestreview-1553347070 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-07-28T04:14:43Z: https://ci.nodejs.org/job/node-test-pull-request/52947/ - Querying data for job/node-test-pull-request/52947/ ✔ Last Jenkins CI successful ⚠ PR author is a new contributor: @Zhangdroid([email protected]) ⚠ - commit 333fa8eaa787 is authored by [email protected] -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/5701754486 |
Fixes: #48921 PR-URL: #48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
debadree25 commented Jul 29, 2023
Landed in d7ed3a4 |
debadree25 commented Jul 29, 2023
Thank you for your contribution 🥳 @Zhangdroid |
Apollon77 commented Jul 31, 2023
I known in which node-js version this fix will be included? |
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
aduh95 commented Aug 8, 2023
As usual for semver-patch changes, it should be included in the next (non-security) release of the Current Line (which is 20.x at the time of writing), and once it has been on a Current Line for at least two weeks, it should be backported to the next non-security release of the Active LTS line (which is 18.x at the time of writing). |
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: #48921 PR-URL: #48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: #48921 PR-URL: #48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
ruyadorno commented Sep 8, 2023
This commit is not landing cleanly on |
Fixes: nodejs#48921 PR-URL: nodejs#48928Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: #48921 PR-URL: #48928 Backport-PR-URL: #50105Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs/node#48921 PR-URL: nodejs/node#48928 Backport-PR-URL: nodejs/node#50105Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: nodejs/node#48921 PR-URL: nodejs/node#48928 Backport-PR-URL: nodejs/node#50105Fixes: getsentry/sentry-javascript#8552Fixes: request/request#3458 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
Fixes: #48921
Fixes: getsentry/sentry-javascript#8552
Fixes: request/request#3458