Repository navigation
Add AbstractRFC3987Format and reject characters RFC 3987 does not allow in iri - #1395
Conversation
iri and iri-reference reject characters that are not ucschar, and iprivate outside the query, anywhere in the value.
IriFormat and IriReferenceFormat now share the isInternationalized() override and the bidi check. containsBidiFormatting stays on AbstractRFC3986Format, since it is public API.
|
Thanks, this looks good. Both issues below are minor, and neither blocks merging. I ran the format tests and the JSON-Schema-Test-Suite at Minor1. The CHANGELOG doesn't list every new rejection ( 2. No tests for the supplementary-plane boundaries of
|
The CHANGELOG names U+FFF0 to U+FFFD and U+E0000 to U+E0FFF. Add test cases for the supplementary-plane, U+FFF0 and iprivate boundaries.
|
Thanks Steve. Both are in 285940b: the CHANGELOG names both ranges, and IriCharacterFormatTest has your five cases plus the U+FFEF/U+FFF0, U+E0FFF/U+E1000 and U+10FFFD boundaries. |
|
Thanks, both items are fixed at Two small things. Neither blocks merging: 1. Unicode space characters that RFC 3987 allows are rejected (already the case at 2. Two boundaries are still untested ( |
Follow-up to #1390 and #1391. Adds AbstractRFC3987Format, so IriFormat and IriReferenceFormat share the isInternationalized() override and the bidi check. containsBidiFormatting stays on AbstractRFC3986Format, since it's public API.
Also fixes item 1 from the #1391 review: iri and iri-reference now reject private-use characters outside the query, noncharacters such as U+FFFE, and lone surrogates.