summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2009-03-06 00:11:10 +0000
committerKurt Zenker <kz@openoffice.org>2009-03-06 00:11:10 +0000
commitebb000979e485fd6c091da39fbfa3d48c9eb8dd6 (patch)
tree8c8581a701a2c48daed6b701e021b9446e51ef2f
parentfef86c3601bfabc28f2c5baedf27b4cf50845f40 (diff)
CWS-TOOLING: integrate CWS tkr19
2009-03-02 08:39:40 +0100 tkr r268634 : #i99717# optimise the determination of webdav/non webdav ressources
-rw-r--r--ucb/source/ucp/webdav/webdavcontent.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 00894a0579..52b5f3cda4 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -3188,11 +3188,16 @@ const Content::ResourceType & Content::getResourceType(
}
eResourceType = DAV;
}
- catch ( DAVException const& )
+ catch ( DAVException const& e)
{
- //Fallback
rResAccess->resetUri();
- eResourceType = NON_DAV;
+
+ if (e.getStatus() == SC_METHOD_NOT_ALLOWED)
+ {
+ // Status SC_METHOD_NOT_ALLOWED is a safe indicator that the
+ // resource is NON_DAV
+ eResourceType = NON_DAV;
+ }
}
}
m_eResourceType = eResourceType;