Please confirm the following
Describe the bug
Looking at the WHATWG example for URL equality, the URLs web+demo:/.//not-a-host/ and web+demo:/path/..//not-a-host/ should be considered equal after URL serialization. When parsing those URLs using ada, they are indeed serialized identically.
To Reproduce
Using yarl 1.12.1, run
import yarl
assert yarl.URL("web+demo:/path/..//not-a-host/") == yarl.URL("web+demo:/.//not-a-host/")
Expected behavior
Both URLs should be serialized as described in the WHATWG specification, i.e. the serialized result should be web+demo:/.//not-a-host/ in both cases.
Logs/tracebacks
Python Version
multidict Version
Name: multidict
Version: 6.1.0
yarl Version
Name: yarl
Version: 1.12.1
OS
Linux
Additional context
No response
Please confirm the following
vulnerability, to the best of my knowledge. (These must be shared by
submitting this report form instead, if
any hesitation exists.)
Describe the bug
Looking at the WHATWG example for URL equality, the URLs
web+demo:/.//not-a-host/andweb+demo:/path/..//not-a-host/should be considered equal after URL serialization. When parsing those URLs using ada, they are indeed serialized identically.To Reproduce
Using yarl 1.12.1, run
Expected behavior
Both URLs should be serialized as described in the WHATWG specification, i.e. the serialized result should be
web+demo:/.//not-a-host/in both cases.Logs/tracebacks
Python Version
Python 3.12.6multidict Version
yarl Version
OS
Linux
Additional context
No response