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

Errorhandling bugged due to ErrorController implement in OpenSearchController

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      On the current master branch of DSpace 7; if we try to execute a request that is supposed to fail because E.G. the method is not yet implemented in the code-base (Item PUT for example currently) the error code thrown will not be a correct one. For a PUT request, this now throws a 404 tomcat error instead of the expected 405 to indicate that this has not been implemented.

      This is due to the fact that the OpenSearchController currently implements the default ErrorController and some strange behaviour happens that disallows DSpace to currently throw the intended error message.

      Since we have very limited knowledge about what this feature is supposed to do and why the ErrorController is implemented here, we'll remove the implementation and throw out a few methods as a result from this so that the correct error codes can be thrown once again to hinder further progress due to this bug.

      If anyone that knows more about the feature sees any issues with this, please raise them.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: