Skip to content

Fix/identifier encode #3611

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 5 commits into from
Jun 18, 2020
Merged

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jun 18, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets fixes #1575
License MIT
Doc PR api-platform/docs#...

It looks as though the url encoding was not necessary and caused duplicate encoding in any case. The example I have tested originally returned %253A in place of the colon, which is the percent sign of %3A re-encoding.

This fix removes all URL encoding, it doesn't appear necessary in the IRI converter.

Would this class as a BC change instead of a fix though? Is it better to drill down further and still url encode the IRI once?

From #3552

@soyuka soyuka force-pushed the fix/identifier-encode branch from 0489781 to 5a41443 Compare June 18, 2020 15:56
@silverbackdan
Copy link
Contributor

Thanks for taking over this PR @soyuka !

@soyuka soyuka force-pushed the fix/identifier-encode branch from 5a41443 to be679e2 Compare June 18, 2020 20:30
@soyuka soyuka force-pushed the fix/identifier-encode branch from be679e2 to acfcd13 Compare June 18, 2020 20:36
@soyuka soyuka merged commit ccdbb5f into api-platform:master Jun 18, 2020
@soyuka
Copy link
Member Author

soyuka commented Jun 18, 2020

thanks @silverbackdan !

@soyuka soyuka deleted the fix/identifier-encode branch June 18, 2020 20:51
@Kitton
Copy link

Kitton commented Aug 20, 2020

@soyuka do you think we can have a release with this fix included?

@silverbackdan
Copy link
Contributor

Version 2.6 when released will include this fix - for now you could use version 2.6.x-dev and it'll include this update. See the change log here for other possible bc breaks at the time of installing though https://github.com/api-platform/core/blob/master/CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Identifiers url-encoded twice
3 participants