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

new URL bug with Ada in 18.x #48117

Closed
7c opened this issue May 22, 2023 · 5 comments
Closed

new URL bug with Ada in 18.x #48117

7c opened this issue May 22, 2023 · 5 comments
Labels
v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch. whatwg-url Issues and PRs related to the WHATWG URL implementation.

Comments

@7c
Copy link

7c commented May 22, 2023

Version

18.16.0

Platform

Linux xxx.com 5.19.0-1025-aws #26~22.04.1-Ubuntu SMP Mon Apr 24 01:58:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

ubuntu22.04

What steps will reproduce the bug?

Node 18.16.0:

(new URL(`https://${"ZaaZaaaZaaaZbbbZbbbbZ".toUpperCase()}.test.com:443`)).hostname

results to ZaaZaaaZaaaZbbbZbbbbZ.test.com

Node <=18.13.0 results to zaazaaazaaazbbbzbbbbz.test.com.

Since lowercasing is part of IDNA (regarding ada-url/ada#129 (comment)) and all browsers also seem to lowercase everything, this is a bug, because only "Z" is kept uppercase in my tests. This bug caused big problems in our application, this is how we have detected this problem.

How often does it reproduce? Is there a required condition?

in new ADA parser >=18.16.0

What is the expected behavior? Why is that the expected behavior?

see the report

What do you see instead?

see the report

Additional information

No response

@KhafraDev
Copy link
Member

Fixed in #47598

@anonrig
Copy link
Member

anonrig commented May 22, 2023

This issue is already fixed:

Welcome to Node.js v20.2.0.
Type ".help" for more information.
> (new URL(`https://${"ZaaZaaaZaaaZbbbZbbbbZ".toUpperCase()}.test.com:443`)).hostname
'zaazaaazaaazbbbzbbbbz.test.com'

@anonrig anonrig closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2023
@anonrig anonrig added the whatwg-url Issues and PRs related to the WHATWG URL implementation. label May 22, 2023
@anonrig
Copy link
Member

anonrig commented May 22, 2023

@nodejs/releasers Can we backport & include Ada v2.x changes in the next 18 release?

@RafaelGSS
Copy link
Member

RafaelGSS commented May 22, 2023

Do we have an open PR backport? If that lands cleanly on v18.x it will be included.

@Trott Trott added the v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch. label May 22, 2023
@Trott Trott reopened this May 22, 2023
@Trott Trott changed the title new URL bug with Ada new URL bug with Ada in 18.x May 22, 2023
@Trott
Copy link
Member

Trott commented May 22, 2023

Re-opening because the bug is in 18.x and that's a supported release. Feel free to close if you feel strongly it should be closed. I'd prefer to wait until the bug-fix lands in the v18.x branch, if not a release, but I don't feel so strongly about it that I'll argue to keep this open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch. whatwg-url Issues and PRs related to the WHATWG URL implementation.
Projects
None yet
Development

No branches or pull requests

6 participants
@Trott @anonrig @7c @RafaelGSS @KhafraDev and others