GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records by hyperxpro · Pull Request #17373 · netty/netty Conversation
Contributor
Motivation: IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not define them. valueOf(int) fabricates an UNKNOWN for their code points and valueOf(String) rejects the mnemonics outright. Modification: Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them. RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX already does. Pin the code points in a test, since the existing reflection sweep proves a constant is registered but not that its value is right. Result: The six types decode as themselves rather than as UNKNOWN.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: DnsRecordType is missing six types that IANA has assigned in the "Resource Record (RR) TYPEs" registry. valueOf(int) fabricates an UNKNOWN instance for them, so a caller cannot match on the type, and valueOf(String) rejects the mnemonic outright. Modification: Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them. RFC 8162 and RFC 7929 are Experimental; the Javadoc says so, following the precedent set by KX, since the code points are assigned either way. Pin the code points in a test. The existing reflection-driven sweep proves a constant is registered but not that its value is correct, so a transposed number would still round-trip through valueOf(int). Grow the StringBuilder behind the valueOf(String) error message, which these six take to 504 of its 512 characters. Result: The six types decode as themselves rather than as UNKNOWN.
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅Test SummaryBuild PR / linux-x86_64-java11 build > Netty/Codec/Native/Quic
Build PR / linux-x86_64-java26 build > Netty/Codec/HTTP2
🏷️ Commit: b4ad136 Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Auto-port PR for 4.1: #17459 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #17461 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…, ZONEMD records (#17461) Auto-port of #17373 to 5.0 Cherry-picked commit: 5019755 --- Motivation: IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not define them. valueOf(int) fabricates an UNKNOWN for their code points and valueOf(String) rejects the mnemonics outright. Modification: Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them. RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX already does. Pin the code points in a test, since the existing reflection sweep proves a constant is registered but not that its value is right. Result: The six types decode as themselves rather than as UNKNOWN. Co-authored-by: Aayush Atharva <[email protected]>
…, ZONEMD records (#17459) Auto-port of #17373 to 4.1 Cherry-picked commit: 5019755 --- Motivation: IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not define them. valueOf(int) fabricates an UNKNOWN for their code points and valueOf(String) rejects the mnemonics outright. Modification: Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them. RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX already does. Pin the code points in a test, since the existing reflection sweep proves a constant is registered but not that its value is right. Result: The six types decode as themselves rather than as UNKNOWN. Co-authored-by: Aayush Atharva <[email protected]>
…, ZONEMD records (netty#17459) Auto-port of netty#17373 to 4.1 Cherry-picked commit: 5019755 --- Motivation: IANA has assigned SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC and ZONEMD in the "Resource Record (RR) TYPEs" registry, but DnsRecordType does not define them. valueOf(int) fabricates an UNKNOWN for their code points and valueOf(String) rejects the mnemonics outright. Modification: Add SMIMEA (53, RFC 8162), CDS (59) and CDNSKEY (60) (RFC 7344), OPENPGPKEY (61, RFC 7929), CSYNC (62, RFC 7477) and ZONEMD (63, RFC 8976), and register them so both valueOf overloads resolve them. RFC 8162 and RFC 7929 are Experimental, which the javadoc notes as KX already does. Pin the code points in a test, since the existing reflection sweep proves a constant is registered but not that its value is right. Result: The six types decode as themselves rather than as UNKNOWN. Co-authored-by: Aayush Atharva <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.