Skip to content

Searching for awards containing opensearch-illegal characters fails #2121

@mesemus

Description

@mesemus

Package version (if known): RDM13

Describe the bug

Awards search uses the q= search parameter on the background which expects a valid opensearch query string. If user wants to search, for example, by a number abcdef/ghi, the search will fail on 500. A workaround is to enclose the string in quotes "abcdef/ghi".

The preferred solution would be to use the suggest api that does the escaping automatically and works in this case.

Steps to Reproduce

  1. Go to deposition page
  2. Click on Add award
  3. Fill in number with slashes
  4. See error

Expected behavior

Should find the award.

Screenshots (if applicable)

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions