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

RestResourceController takes often precedence over custom controller

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer 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:
      0
    • Documentation Status:
      Needed

      Description

      The mapping of our RestResourceController is quite generic this lead to matching also for url that should be served by a custom controller (i.e. /api/pid/find)

      This in turn lead to wrong return code sometime. The above URL should indeed return a 422 because of missing id parameter, instead it is catch by the RestResourceController resulting in a 404 as no repository exists for the category: pid with name find 

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bollini Andrea Bollini (4Science)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: