You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IPv6 regex doesn't exactly match std::net::Ipv6Addr parsing #1939
So far I've only managed to find one case where our client-side IPv6 regex rejects an address that the API-side parsing by std::net::Ipv6Addr lets through. That means we will wrongly prevent the user from submitting the form, and if they really want it to go through, they have to use the CLI. I don't think this is a huge deal — some slippage here is inevitable — but it's good to track and would be nice to fix. A better fix might be to improve the server-side errors so we can make our client-side checking more minimal and lenient and therefore eliminate all false rejections.
2001:db8:3:4:5::192.0.2.33
I think it's because the :: is next to the IPv4 bit, but I haven't looked into it in detail.
Just remembered this — Zod's regex is different and has some issues, so there are IPs that pass our client-side regex and will be accepted by Nexus, but which are rejected by the mock API, because the latter uses Zod's .ip() validation automatically.
Activity
david-crespo commentedon Feb 9, 2024
Just remembered this — Zod's regex is different and has some issues, so there are IPs that pass our client-side regex and will be accepted by Nexus, but which are rejected by the mock API, because the latter uses Zod's
.ip()validation automatically.Update IPv6 parsing (#3334)