summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-01-11 16:35:34 +0100
committerGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-07-29 11:13:14 +0000
commitbe47f60b51c053c6329637e829ce16e2e90610fe (patch)
tree3cf15d5e0d4a9761a5791bb17ed2b8b2a2939d11
parent1d81d868d2e9988c124e68c4906ba50036615ffe (diff)
tdf#101094 (9) OPTIONS: Add options check in Content::getProperties
Change-Id: I1937d51158f67055ed4bbeb60dafbf8ffee090ae Reviewed-on: https://gerrit.libreoffice.org/27667 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
-rw-r--r--ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx26
1 files changed, 16 insertions, 10 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
index 3a2e566b27f6..4dd8f413cbb8 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontentcaps.cxx
@@ -312,18 +312,24 @@ uno::Sequence< beans::Property > Content::getProperties(
if ( !bTransient )
{
// Obtain all properties supported for this resource from server.
- try
+ DAVOptions aDAVOptions;
+ getResourceOptions( xEnv, aDAVOptions, xResAccess );
+ // only Class 1 is needed for PROPFIND
+ if ( aDAVOptions.isClass1() )
{
- std::vector< DAVResourceInfo > props;
- xResAccess->PROPFIND( DAVZERO, props, xEnv );
+ try
+ {
+ std::vector< DAVResourceInfo > props;
+ xResAccess->PROPFIND( DAVZERO, props, xEnv );
- // Note: vector always contains exactly one resource info, because
- // we used a depth of DAVZERO for PROPFIND.
- aPropSet.insert( (*props.begin()).properties.begin(),
- (*props.begin()).properties.end() );
- }
- catch ( DAVException const & )
- {
+ // Note: vector always contains exactly one resource info, because
+ // we used a depth of DAVZERO for PROPFIND.
+ aPropSet.insert( (*props.begin()).properties.begin(),
+ (*props.begin()).properties.end() );
+ }
+ catch ( DAVException const & )
+ {
+ }
}
}