Uploaded image for project: 'StoRM'
  1. StoRM
  2. STOR-479

Associate properly the WebDAV returned code to the type of SRMOperationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.11.4
    • 1.11.3
    • gridhttps-server
    • Security Level: Public (Visbile by non-authn users.)
    • None

      For example, if a SURL is in SRM_SPACE_AVAILABLE status, a WebDAV GET on that SURL returns 503 instead of a more appropriate 409 Conflict.

      On it.grid.storm.gridhttps.webapp.StormStandardFilter modify the catch clause returning an appropriate code.
      Use the getExceptionReason() method to decide the right code.

      The returned TSRMExceptionReason value, in fact, can be INTERNALERROR, TOOMANYRESULTS or SRMFAILURE. In our example case, adding a FILEBUSY value should permit to return an appropriate http status code.

            vianello Enrico Vianello
            vianello Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: