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

Bad requests on Discovery jobTitle+knowsLanguage+birthDate search facets

    XMLWordPrintable

    Details

    • Attachments:
      1
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      When testing PR 442  https://github.com/DSpace/dspace-angular/pull/442  and restricting the presented page to different number of results (like: https://example.com/search/personConfiguration?pageSize=1&page=1), I noticed that some Rest API requests failed.

      The retrieved error was:

      {"timestamp":1565356079703,"status":400,"error":"Bad Request",{"timestamp":1565356079703,"status":400,
      "error":"Bad Request",
      "exception":"org.dspace.app.rest.exception.DSpaceBadRequestException",
      "message":"An Exception has occured",
      "trace":"org.dspace.app.rest.exception.DSpaceBadRequestException: jobTitle is not a valid search facet at org.dspace.app.rest.utils.DiscoverQueryBuilder.addFacetingForFacets(DiscoverQueryBuilder.java:138) at org.dspace.app.rest.utils.DiscoverQueryBuilder.buildFacetQuery(DiscoverQueryBuilder.java:109) at org.dspace.app.rest.repository.DiscoveryRestRepository.getFacetObjects(DiscoveryRestRepository.java:143) at org.dspace.app.rest.DiscoveryRestController.getFacetValues(DiscoveryRestController.java:193)...",
      "path":"/server/api/discover/facets/jobTitle"}

       

      I've also found this same error for:

      • knowsLanguage
      • birthDate

       

      I didn't dig enough, but looks like a configuration issue.

      This is happening to me with DSpace master branch.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            paulo_graca Paulo Graça
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: