Skip to content

Commit

Permalink
Merge pull request #32 from core-wg/pr-example-param-equivalence
Browse files Browse the repository at this point in the history
add example of parameter equivalance, using a URN parameter
  • Loading branch information
thomas-fossati authored Feb 7, 2025
2 parents 153427f + db71040 commit c8986da
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion draft-ietf-core-cf-reg-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,28 @@ The registrant requests an FCFS Content-Format ID for the "identity" Content Cod
If accepted, this request would duplicate an entry with (hypothetical)
Content-Format ID 64900 where the "Content Coding" field is left empty.


| Content Type | Content Coding | ID |
|--|--|--|
| application/my | - | 64900 |
| application/my | identity | 64999 |
{: align="left" title="Attempt at Registering an Equivalent Logical Entry with a Different Content-Format ID (2)"}

## Duplicate Entry with Equivalent Parameter

The registrant requests an FCFS Content-Format ID for a media type that includes a parameter.
The value of this parameter appears distinct from that of a previously registered Content-Format that also includes this parameter.
However, the semantics of the parameter value are identical to the existing registration.

In this example, the `eat_profile` parameter value (which can be any URI) is set as a Uniform Resource Name (URN) {{?RFC8141}}.
Since for URNs, the Namespace Identifier (`foo` in the example) is defined as case insensitive, the two registrations are semantically identical.

| Content Type | Content Coding | ID |
|--|--|--|
| application/eat+cwt; eat_profile="urn:foo:1" | - | 64900 |
| application/eat+cwt; eat_profile="urn:FOO:1" | - | 64999 |
{: align="left" title="Attempt at Registering an Equivalent Logical Entry with a Different Content-Format ID (3)"}


# Security Considerations

This document hardens the registration procedures of CoAP Content-Formats in ways that reduce the chances of malicious manipulation of the associated registry.
Expand Down

0 comments on commit c8986da

Please sign in to comment.