# HG changeset patch # User Sebastien Jodogne # Date 1601982797 -7200 # Node ID 013d6c6b2387391746771da6c7c6b8284d844c73 # Parent c8c0bbaaace30da70da54802f60459ec93e564b9 warning diff -r c8c0bbaaace3 -r 013d6c6b2387 OrthancFramework/Sources/HttpServer/HttpServer.cpp --- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp Tue Oct 06 12:45:11 2020 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp Tue Oct 06 13:13:17 2020 +0200 @@ -1836,12 +1836,22 @@ IWebDavBucket* bucket) { std::unique_ptr protection(bucket); - + if (bucket == NULL) { throw OrthancException(ErrorCode_NullPointer); } + Stop(); + +#if CIVETWEB_HAS_WEBDAV_WRITING == 0 + if (webDavBuckets_.size() == 0) + { + LOG(WARNING) << "Your version of the Orthanc framework was compiled " + << "without support for writing into WebDAV collections"; + } +#endif + const std::string s = Toolbox::FlattenUri(root); if (webDavBuckets_.find(s) != webDavBuckets_.end())