Fix self link don't match warnings for authorization endpoint #3046
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References
RequestParam
values increase the number of "self link...don't match" logs #3045Description
Because in PR #2725 all
RequestParam
values were encoded, and that the self link don't encode all the characters (for example it doesn't encode slashes and colons) it causes the frontend to think that the links are not identical. To fix this issue now the uri parameter is simply not encoded in angular so that it doesn't complain about this issues anymore, this was how it was done before PR #2725. The ideal fix would be to fix this in the backend but this might require more changes in the core of DSpace, so we should probably wait until after the 8.0 release for that in order to have enough time to test everything. This is an example of another endpoint where the same behaviour can be reproduced, so this is a general issues.Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.