Skip to content

Commit

Permalink
Merge pull request #2156 from Siemens-Healthineers/fix/REST/GETEndpoi…
Browse files Browse the repository at this point in the history
…ntForComponentName-2115

fix(REST):GET Component endpoint failing for names with space

Reviewed by: [email protected]
Testd by: [email protected]
  • Loading branch information
ag4ums authored Oct 30, 2023
2 parents 41d735f + 1debd1e commit 1a227b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public ResponseEntity<CollectionModel> getComponents(Pageable pageable,
Map<String, String> params = parseQueryString(queryString);

if (name != null && !name.isEmpty()) {
allComponents.addAll(componentService.searchComponentByName(params.get("name")));
allComponents.addAll(componentService.searchComponentByName(params.get("name").replace("%20"," ")));
} else {
allComponents.addAll(componentService.getComponentsForUser(sw360User));
}
Expand Down

0 comments on commit 1a227b9

Please sign in to comment.