Skip to content

Problem when searching strings with "(" or ")" #2648

@ramGranell

Description

@ramGranell

Describe the bug
The search does not work when the search string contains '(' or ')' characters.

To Reproduce
Steps to reproduce the behaviour:

  1. [Go to 'https://fairsharing.org/...'](https://fairsharing.org/search)
  2. Select in the left column any term that contains parenthesis characters, e.g. Organisations: "Austrian Science Fund (fwf)": https://fairsharing.org/search?organisations=austrian%2520science%2520fund%2520%28fwf%29%252C%2520austria&page=1
    or User Defined Tag (UDT) "High Performance Computing (hpc)" https://fairsharing.org/search?page=1&userDefinedTags=high%2520performance%2520computing%2520%28hpc%29
  3. The search is empty when there are records, e.g. https://fairsharing.org/organisations/154 for the organisation and https://fairsharing.org/1403 for the UDT
  4. The same used to happen with Taxonomies, however, there are not longer taxonomies with "(". Anyway, I can infer that this happen with any field that contains any of these characters. I ignore if the same thing happens with any other non-aphabetic character. Anyway, the advanced search does not have this issue https://fairsharing.org/advancedsearch?operator=_and&fields=%28operator%3D_and%26organisations%3DAustrian%20Science%20Fund%20%28FWF%29,%20Austria%29
  5. There are more than 585 organisations that contain "(" or ")" in the name (curation problem as there is a filed for additional name @allysonlister?) There are 17 UDT with "(" or ")"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions