diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2016-08-10 21:01:19 +1000 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-08-10 14:40:03 +0000 |
commit | ea8ba40c06fe2d0702c6dba22d1d4bed4af306b5 (patch) | |
tree | 79b37725f371ac6d27fc67e94bc48c7351a49111 /sw/qa/extras/tiledrendering/tiledrendering.cxx | |
parent | 4fbc3dbe44857b52677844c47a750abc40713d60 (diff) |
tdf#101385: don't try to get SharePoint folder outside of allowed range
for a given site.
This patch uses the fact that getFolderByServerRelativeUrl API returns
site's root folder if used with empty path ('').
Hopefully this isn't otherwise context-dependent, so that it doesn't
return other folders in some unknown circumstances.
More correct would be instead to use the site's root path directly,
like '/sites/mysite'. But I don't know a reliable way to filter the
API part from the base URI.
To make use of the corrected SharePoint repository root id, the patch
also redirects all cases where "/" object is queried, to session's
getRootFolder().
Reviewed-on: https://gerrit.libreoffice.org/27987
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 1b482aec4e7b6aec86fb20bcda555c4060a80332)
Change-Id: Id31b4c2be0d8d81b94c0e9307acdfbc9e6441828
Reviewed-on: https://gerrit.libreoffice.org/28015
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sw/qa/extras/tiledrendering/tiledrendering.cxx')
0 files changed, 0 insertions, 0 deletions