Skip to content

Conversation

@Zhangdroid
Copy link
Contributor

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/url

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Jul 26, 2023
*/
functionisURL(self){
returnBoolean(self?.href&&self.protocol&&self.auth===undefined);
returnBoolean(self?.href&&self.protocol&&self.auth===undefined&&self.path===undefined);
Copy link
ContributorAuthor

@ZhangdroidZhangdroidJul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I don't think this is the ideal way to fix the issue #48921 , but since path is an attribute in legacy URL object instance, and another issue has been fixed in same way: #47886 I think this fix maybe fine. If you have a better way, please let me know.

@anonriganonrig requested a review from aduh95July 26, 2023 13:59
Copy link
Member

@anonriganonrig left a 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.

@anonriganonrig added request-ci Add this label to start a Jenkins CI on a PR. lts-watch-v18.x and removed lts-watch-v18.x labels Jul 26, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 26, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@anonriganonrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jul 27, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 28, 2023
@nodejs-github-bot
Copy link
Collaborator

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/.ncu
https://github.com/nodejs/node/actions/runs/5688124610

@nodejs-github-botnodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jul 28, 2023
@Zhangdroid
Copy link
ContributorAuthor

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?

@debadree25debadree25 added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Jul 29, 2023
@nodejs-github-botnodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Jul 29, 2023
@nodejs-github-bot
Copy link
Collaborator

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/.ncu
https://github.com/nodejs/node/actions/runs/5701754486

debadree25 pushed a commit that referenced this pull request Jul 29, 2023
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
Copy link
Member

Landed in d7ed3a4

@debadree25
Copy link
Member

Thank you for your contribution 🥳 @Zhangdroid

@debadree25debadree25 removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jul 29, 2023
@Apollon77
Copy link

I known in which node-js version this fix will be included?

pluris pushed a commit to pluris/node that referenced this pull request Aug 6, 2023
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]>
pluris pushed a commit to pluris/node that referenced this pull request Aug 7, 2023
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
Copy link
Contributor

I known in which node-js version this fix will be included?

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).

Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
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]>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
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]>
UlisesGascon pushed a commit to UlisesGascon/node that referenced this pull request Aug 14, 2023
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]>
RafaelGSS pushed a commit that referenced this pull request Aug 15, 2023
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]>
@UlisesGasconUlisesGascon mentioned this pull request Aug 15, 2023
RafaelGSS pushed a commit to RafaelGSS/node that referenced this pull request Aug 15, 2023
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]>
RafaelGSS pushed a commit that referenced this pull request Aug 17, 2023
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]>
@aduh95aduh95 mentioned this pull request Aug 18, 2023
@ruyadorno
Copy link
Member

This commit is not landing cleanly on v18.x-staging and will need manual backport if we want this to land on v18.x.

aduh95 pushed a commit to aduh95/node that referenced this pull request Oct 9, 2023
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]>
@aduh95aduh95 mentioned this pull request Oct 9, 2023
targos pushed a commit that referenced this pull request Nov 27, 2023
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]>
@targostargos mentioned this pull request Nov 28, 2023
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
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]>
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
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]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.whatwg-urlIssues and PRs related to the WHATWG URL implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

network issues with node 20+ isURL cannot accurately determine if it is a URL object request library fails with Sentry enabled on Node 20

9 participants

@Zhangdroid@nodejs-github-bot@debadree25@Apollon77@aduh95@ruyadorno@lpinca@anonrig@KhafraDev