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
Preserve and report legend URL bounds after login inheritance #2198
A same-origin advertised legend URL can fit the 4096-byte limit before login inheritance, then exceed it when spaces are encoded. crates/map/src/tiles.rs::checked_legends filters login_address::inner(&l.url).len() <= MAX_LEGEND_URL without reporting the dropped legend; login_address::as_sent expands spaces to %20. Current main does not contain the previously claimed advertised_len helper.
Reproduce with an authenticated service advertising a same-origin legend just below 4096 raw bytes containing spaces. Compare its advertised byte length, inherited URL length, and checked_legends output. Decide the bound explicitly, retain valid advertised links when appropriate, and send a counted notice when a legend is refused. Cover both near-limit encoded-space and genuinely over-limit cases, retaining the login binding.
Found in the release sweep against ce40749; larger than a wording cleanup because the original-length provenance and notice channel cross data/map/service readers.
Activity