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

The component names with spaces are not searchable due to the conversion of space character to "%20" (URL Encoding) #2115

Closed
afsahsyeda opened this issue Sep 5, 2023 · 3 comments · Fixed by #2156
Assignees
Labels
bug Something isn't working

Comments

@afsahsyeda
Copy link
Contributor

afsahsyeda commented Sep 5, 2023

Description

Component names with space are not searchable via REST API after this PR #2043

@afsahsyeda afsahsyeda added the bug Something isn't working label Sep 5, 2023
@afsahsyeda
Copy link
Contributor Author

afsahsyeda commented Sep 11, 2023

  • The component names with spaces are not searchable due to the conversion of space character to "%20" (URL Encoding).
  • Previously, the name query would get decoded and then searched over the DB. But now this functionality is removed. For ex: search queries like "?name=%40angular%2Fanimations" would be read as "?name=@angular/animations". Now, "%40angular%2Fanimations" is read as "%40angular%2Fanimations" only since decoding of characters is removed.
  • However, enabling support to decoding characters would affect special characters like "+" which are interpreted as space in Java URL Decoding.

@afsahsyeda afsahsyeda changed the title Url Encoded Component names are not searchable The component names with spaces are not searchable due to the conversion of space character to "%20" (URL Encoding) Oct 19, 2023
@JSurf
Copy link
Contributor

JSurf commented Feb 23, 2024

See also #2042 (comment)

any url encoded name is now broken, which breaks the official SW360 java client

@heliocastro
Copy link
Contributor

@ag4ums ^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants