summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/webdavcontent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/webdav/webdavcontent.cxx')
-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;