https://bugs.documentfoundation.org/show_bug.cgi?id=101094

            Bug ID: 101094
           Summary: Add OPTIONS method to the WebDAV ucp provider
           Product: LibreOffice
           Version: 5.1.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: giuseppe.casta...@acca-esse.eu

The LO Web ucb provider is the layer responsible to manage contents on the Web
and WebDAV domains.

A description of what it does is here:
<https://wiki.openoffice.org/wiki/Documentation/DevGuide/AppendixC/The_WebDAV_Content_Provider>

The URL schemes for WebDAV ucp contents are:

http://host:port/<path>
https://host:port/<path>

LO specific schemes:
maps to http:     vnd.sun.star.webdav://host:port/<path>

available from LO 5.1:
maps to https:    vnd.sun.star.webdavs://host:port/<path>

Currently the WebDAV ucp provider does not directly detect if the remote
resource is a pure Web site or if it's a Web site with DAV.
The http OPTIONS method is the mean to address that.

OPTIONS method is part of the RFC http specification, main details here:
<https://tools.ietf.org/html/rfc7231#section-4.3.7>

The OPTIONS method is optionally implemented in standard Web resource, but it's
mandatory in a WebDAV resource.

On http WebDAV RFC specification it's not directly mentioned, but the mandatory
OPTIONS method is inferred from:
<https://tools.ietf.org/html/rfc4918#section-10.1>, where a brief excerpt:

"
...
   All DAV-compliant resources MUST return the DAV header with compliance-class
"1" on all OPTIONS responses.
...
"

Furthermore, OPTIONS method allows to detect the methods the Web/DAV resource
supports, by means of the ALLOW header.

The OPTIONS result will be LO internally cached, only for a brief period of
time, to try to optimize a Web/DAV resource access, in order to not use http
methods not supported by standard Web site (e.g. PROPFIND).

The OPTIONS method is for use with a single resource, not an entire Web/DAV
site, on the assumption that a single Web site can accommodate both Web and
WebDAV resources, depending on the single resource configuration.

This bug act as an anchor point for the commits that make up this enhancement.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to