-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
URL validation fails if URL is missing user field #2232
Comments
Thanks for reporting! I don't have time to dig into this right now, but would def appreciate an investigation and/or a PR from anyone who'd be so kind |
A password is only optional after a user name is included.
|
Oh good catch. So the current validation appears to be correct then. I think we can close this |
I started questioning why Redis would go off spec and discovered RFC1738 was the wrong spec to refer to. Redis based their URI scheme off of the NWG's 2005 RFC3986 which supersedes the 1994 RFC1738. https://www.iana.org/assignments/uri-schemes/prov/redis It no longer imposes restrictions on userinfo other than character set. https://www.rfc-editor.org/rfc/rfc3986#section-3.2.1 RFC2396 dropped the "user:password" rules and left it up to the protocol. |
closed by #2244 |
The test code below fails to parse the URL when the user field is missing, but the password is present.
RFC1738 specifies that either field is optional.
https://datatracker.ietf.org/doc/html/rfc1738#section-3.1
The text was updated successfully, but these errors were encountered: