8000 fix(api): properly encode URLs in RelatedCollectionLinkNormalizer by usu · Pull Request #2909 · ecamp/ecamp3 · GitHub
[go: up one dir, main page]

Skip to content

fix(api): properly encode URLs in RelatedCollectionLinkNormalizer #2909

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 2 commits into from
Aug 2, 2022

Conversation

usu
Copy link
Member
@usu usu commented Jul 31, 2022

Fixes #2289

After symfony/symfony#45658 made it into the release of symfony 6.1, we can now properly encode query parameters in RelatedCollectionLinkNormalizer

Also tested Frontend side. Everything still working.

@usu usu requested review from pmattmann and carlobeltrame July 31, 2022 14:03
@@ -103,8 +103,8 @@ public function testGetSinglePeriodIsAllowedForManager() {
'_links' => [
'camp' => ['href' => $this->getIriFor('camp1')],
'materialItems' => ['href' => '/material_items?period=%2Fperiods%2F'.$period->getId()], // TODO: fix encoding with https://github.com/ecamp/ecamp3/issues/2289
Copy link
Member

Choose a reason for hiding this comment

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

Is this solved now? Can this TODO be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, thanks. Removed the comments.

@usu usu merged commit 90a7308 into ecamp:devel Aug 2, 2022
@usu usu deleted the fix/url-encoding branch November 6, 2022 05:49
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.

Links generated by RelatedCollectionLinkNormalizer are not always urlencoded
3 participants
0