Fix unregistration
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 9 Feb 2017 16:08:31 +0000 (17:08 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 9 Feb 2017 16:08:31 +0000 (17:08 +0100)
org.argeo.cms/src/org/argeo/cms/internal/http/NodeHttp.java

index 0de4cd29a67a38d6a3206e4fb3d9a29c88bccdf0..901731aa063eb2c113d1376c33e85477a1413f4e 100644 (file)
@@ -93,7 +93,8 @@ public class NodeHttp implements KernelConstants {
                try {
                        httpService.unregister(webdavPath(alias));
                        httpService.unregister(remotingPath(alias));
-                       httpService.unregister(filesPath(alias));
+                       if (NodeConstants.HOME.equals(alias))
+                               httpService.unregister(filesPath(alias));
                        if (log.isDebugEnabled())
                                log.debug("Unregistered servlets for repository '" + alias + "'");
                } catch (Exception e) {