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

            Bug ID: 101385
           Summary: CMIS: SharePoint 2013 type cannot be used for
                    SharePoint 2013 site
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

In "Add Service" CMIS dialog, if "SharePoint 2013" type is chosen,
http://<server>/sites/<mysite>/_api/Web is put to "Host", user/password is set,
SharePoint is selected as Repository, and Root is left empty to start in site's
root folder (it internally becomes "/"), then trying to use the newly-added
service results in "General I/O error" (before Bug 100783, it crashed).

This is because SharePoint repository uses getFolderByServerRelativeUrl API,
that expects **server-relative** paths, and "/" isn't in allowed range of paths
for <mysite>: its folders are subfolders of "/sites/<mysite>/". It is possible
to enter this into the "Root" input box in "Add Service" dialog, and the
service will work; but in this case, it will be possible to go to parent folder
by using links in "Remote Files" dialog, so that the error will happen again.

I'm going to provide a patch that will avoid using root paths outside of
allowed range for a given site.

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

Reply via email to