webdav
  1. webdav
  2. WEBDAV-6

Webdav fileserver propfind only accepts 0 and 1 and not infinity

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      ANY

      Description

      The webdav method

      javax.ws.rs.core.Response propfind(@Context final UriInfo uriInfo,
      			@HeaderParam(Headers.DEPTH) final int depth,
      			final InputStream entityStream,
      			@HeaderParam(HttpHeaders.CONTENT_LENGTH) final long contentLength,
      			@Context final Providers providers,
      			@Context final HttpHeaders httpHeaders)
      

      only accepts integers as depth while in the webdav specs 4918 is stated the following:

      A client MUST submit a Depth header with a value of "0", "1", or "infinity" with a PROPFIND request.
      Servers MUST support "0" and "1" depth requests on WebDAV-compliant resources and SHOULD support
      "infinity" requests. In practice, support for infinite-depth requests MAY be disabled, due to the performance
      and security concerns associated with this behavior. Servers SHOULD treat a request without a Depth header
      as if a "Depth: infinity" header was included.

      Seems that the type of the depth parameter need to be changed into a string or enum

        Activity

        Hide
        mkarg added a comment -

        Daniel, fileserver was your creation, would be good if you would fix it.

        Show
        mkarg added a comment - Daniel, fileserver was your creation, would be good if you would fix it.

          People

          • Assignee:
            daniel_manzke
            Reporter:
            msche1972
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: