Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4229:013d6c6b2387
warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 06 Oct 2020 13:13:17 +0200 |
parents | c8c0bbaaace3 |
children | 688435755466 |
comparison
equal
deleted
inserted
replaced
4228:c8c0bbaaace3 | 4229:013d6c6b2387 |
---|---|
1834 #if ORTHANC_ENABLE_PUGIXML == 1 | 1834 #if ORTHANC_ENABLE_PUGIXML == 1 |
1835 void HttpServer::Register(const std::vector<std::string>& root, | 1835 void HttpServer::Register(const std::vector<std::string>& root, |
1836 IWebDavBucket* bucket) | 1836 IWebDavBucket* bucket) |
1837 { | 1837 { |
1838 std::unique_ptr<IWebDavBucket> protection(bucket); | 1838 std::unique_ptr<IWebDavBucket> protection(bucket); |
1839 | |
1840 if (bucket == NULL) | |
1841 { | |
1842 throw OrthancException(ErrorCode_NullPointer); | |
1843 } | |
1844 | |
1845 Stop(); | |
1839 | 1846 |
1840 if (bucket == NULL) | 1847 #if CIVETWEB_HAS_WEBDAV_WRITING == 0 |
1841 { | 1848 if (webDavBuckets_.size() == 0) |
1842 throw OrthancException(ErrorCode_NullPointer); | 1849 { |
1843 } | 1850 LOG(WARNING) << "Your version of the Orthanc framework was compiled " |
1844 | 1851 << "without support for writing into WebDAV collections"; |
1852 } | |
1853 #endif | |
1854 | |
1845 const std::string s = Toolbox::FlattenUri(root); | 1855 const std::string s = Toolbox::FlattenUri(root); |
1846 | 1856 |
1847 if (webDavBuckets_.find(s) != webDavBuckets_.end()) | 1857 if (webDavBuckets_.find(s) != webDavBuckets_.end()) |
1848 { | 1858 { |
1849 throw OrthancException(ErrorCode_ParameterOutOfRange, | 1859 throw OrthancException(ErrorCode_ParameterOutOfRange, |