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.
A patch submitted to gerrit: https://gerrit.libreoffice.org/27987
See libcmis upstream issue: https://github.com/tdf/libcmis/issues/10
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1b482aec4e7b6aec86fb20bcda555c4060a80332 tdf#101385: don't try to get SharePoint folder outside of allowed range It will be available in 5.3.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-5-2": http://cgit.freedesktop.org/libreoffice/core/commit/?id=027227f5f7672f30a45b17d4f5d12e66eb36876b&h=libreoffice-5-2 tdf#101385: don't try to get SharePoint folder outside of allowed range It will be available in 5.2.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I put ASSIGNED but perhaps we may consider this one as FIXED now?
Hello Mike, Is this bug fixed? If so, could you please close it as RESOLVED FIXED?