diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:37:33 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-05-22 08:37:33 +0000 |
commit | bc376cac6f8cf6216e7d253fb208359aca736580 (patch) | |
tree | fb21f361e81efe6a297463abf89c5d1702baea4f /ucb | |
parent | 938ecc2c3bada71be9b4611c6174f09a29a54409 (diff) |
INTEGRATION: CWS uno4 (1.12.54); FILE MERGED
2003/05/09 08:45:05 kso 1.12.54.1: #i13771# - Don't access server for just locally created, not yet committed
contents. Never create invalid URLs (fixed createNewContent()).
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontentcaps.cxx | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontentcaps.cxx b/ucb/source/ucp/webdav/webdavcontentcaps.cxx index 8abdc6f54d20..5b99aa705c4e 100644 --- a/ucb/source/ucp/webdav/webdavcontentcaps.cxx +++ b/ucb/source/ucp/webdav/webdavcontentcaps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: webdavcontentcaps.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: kso $ $Date: 2002-09-24 14:15:50 $ + * last change: $Author: vg $ $Date: 2003-05-22 09:37:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -367,19 +367,24 @@ uno::Sequence< beans::Property > Content::getProperties( typedef std::set< rtl::OUString > StringSet; StringSet aPropSet; - // Obtain all properties supported for this resource from server. - try + // No server access for just created (not yet committed) objects. + // Only a minimal set of properties supported at this stage. + if ( !m_bTransient ) { - std::vector< DAVResourceInfo > props; - m_xResAccess->PROPFIND( ZERO, props, xEnv ); + // Obtain all properties supported for this resource from server. + try + { + std::vector< DAVResourceInfo > props; + m_xResAccess->PROPFIND( ZERO, props, xEnv ); - // Note: vector always contains exactly one resource info, because - // we used a depth of ZERO 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 ZERO for PROPFIND. + aPropSet.insert( (*props.begin()).properties.begin(), + (*props.begin()).properties.end() ); + } + catch ( DAVException const & ) + { + } } // Add DAV properties, map DAV properties to UCB properties. |