Skip to content

[Serializer][Uid][Validator] Mention RFC 9562 #58238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

RFC 4122 has been obsoleted by RFC 9562 since May 2024.

The format remains the same so we don't need to do anything. Renaming everything with BC would certainly be a waste of time. However, we can add some comments and update the links to be up-to-date.

@fancyweb fancyweb requested a review from dunglas as a code owner September 11, 2024 16:50
@carsonbot carsonbot added this to the 5.4 milestone Sep 11, 2024
@carsonbot carsonbot changed the title [Uid][Serializer][Validator] Mention RFC 9562 [Serializer][Uid][Validator] Mention RFC 9562 Sep 11, 2024
@@ -24,7 +24,7 @@ final class UidNormalizer implements NormalizerInterface, DenormalizerInterface,
public const NORMALIZATION_FORMAT_CANONICAL = 'canonical';
public const NORMALIZATION_FORMAT_BASE58 = 'base58';
public const NORMALIZATION_FORMAT_BASE32 = 'base32';
public const NORMALIZATION_FORMAT_RFC4122 = 'rfc4122';
public const NORMALIZATION_FORMAT_RFC4122 = 'rfc4122'; // RFC 9562 obsoleted RFC 4122 but the format is the same
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might add public const NORMALIZATION_FORMAT_RFC9562 = self::NORMALIZATION_FORMAT_RFC4122; in Symfony 7.2 in case some people look for the format for RFC 9562.

nicolas-grekas added a commit that referenced this pull request Sep 16, 2024
…`UidNormalizer::NORMALIZATION_FORMAT_RFC9562` constants (alexandre-daubois)

This PR was merged into the 7.2 branch.

Discussion
----------

[Serializer][Uid] Add the `Uuid::FORMAT_RFC_9562` and `UidNormalizer::NORMALIZATION_FORMAT_RFC9562` constants

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | -
| License       | MIT

Following #58238 (cc `@fancyweb`), for completeness of this 7.2 feature.

Commits
-------

f84170a [Serializer][Uid] Add the `Uuid::FORMAT_RFC_9562` and `UidNormalizer::NORMALIZATION_FORMAT_RFC9562` constants
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit fb69394 into symfony:5.4 Sep 16, 2024
9 of 12 checks passed
@fancyweb fancyweb deleted the doc/rfc-9562 branch September 17, 2024 07:57
fabpot added a commit that referenced this pull request Sep 21, 2024
This PR was merged into the 6.4 branch.

Discussion
----------

[Routing][Uid] [6.4] Mention RFC 9562

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Follow-up to #58238 on 6.4

Commits
-------

edf9916 [6.4][Routing][Uid] Mention RFC 9562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants