Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4191

Query escaping in Discovery endpoints - DSpace 7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      There is currently a bug in the way that we escape queries that come through the discover endpoint in DSpace 7. It happens at this line: https://github.com/DSpace/DSpace/blob/master/dspace-spring-rest/src/main/java/org/dspace/app/rest/utils/DiscoverQueryBuilder.java#L184

      The query should be escaped here in order to allow brackets to be properly used in a query.

      If you enter the query "test (" you'll get a Solr syntax error where as the expected behavior would be to actually search on this String.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              raf.ponsaerts-atmire Raf Ponsaerts (Atmire)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: