summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-03-06 08:58:35 +0000
committerOliver Bolte <obo@openoffice.org>2009-03-06 08:58:35 +0000
commit475085eea2983e0fe80857c6cacabbf51ba654be (patch)
treeee05267e63a5f971809977162a0865b90c87bd4c /ucb/source
parent53d6a16a262b21780593a8a41a3a22cb291e86c6 (diff)
CWS-TOOLING: integrate CWS tkr19_DEV300
2009-03-02 08:39:40 +0100 tkr r268634 : #i99717# optimise the determination of webdav/non webdav ressources
Diffstat (limited to 'ucb/source')
-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 e7ebeeb92a1c..dff18a5f1d73 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;