Skip to content
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

Fix self link don't match warnings for authorization endpoint #3046

Conversation

alexandrevryghem
Copy link
Member

References

Description

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

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using yarn lint
  • My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@alexandrevryghem alexandrevryghem self-assigned this May 14, 2024
@alexandrevryghem alexandrevryghem added bug testathon Reported by a tester during Community Testathon labels May 14, 2024
…ject since the returned self link doesn't encode the uri param
…lue_contribute-7.6' into w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main
@alexandrevryghem alexandrevryghem added the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label May 14, 2024
@alexandrevryghem alexandrevryghem force-pushed the w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main branch from fa33278 to d3e057e Compare May 14, 2024 23:01
@tdonohue tdonohue added this to the 8.0 milestone May 15, 2024
@tdonohue tdonohue self-requested a review May 15, 2024 13:59
Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

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

👍 Thanks @alexandrevryghem ! I've verified this fixes the issue.

@tdonohue tdonohue merged commit d8a2468 into DSpace:main May 15, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-7_x:

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label May 15, 2024
@alexandrevryghem alexandrevryghem deleted the w2p-109964_fix-vocabulary-options-with-url-as-stored-value_contribute-main branch May 15, 2024 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug testathon Reported by a tester during Community Testathon
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Encoded RequestParam values increase the number of "self link...don't match" logs
3 participants