diff --git a/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java b/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java index cea7987c0ae..214885f1919 100644 --- a/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java +++ b/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java @@ -1693,7 +1693,7 @@ public HttpTransfer(PnfsHandler pnfs, Subject subject, var request = ServletRequest.getRequest(); request.setAttribute(TRANSACTION_ATTRIBUTE, getTransaction()); - _requestPath = ServletRequest.stripToPath(request.getRequestURI()); + _requestPath = ServletRequest.stripToPath(request.getRequestURL().toString()); } protected ProtocolInfo createProtocolInfo(InetSocketAddress address) {