Skip to content

Commit dfbf33f

Browse files
authored
Destination does not exist on MOVE (#6456)
1 parent 7a968e7 commit dfbf33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/org/labkey/core/webdav/DavController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3835,7 +3835,7 @@ WebdavStatus doMethod() throws DavException, IOException
38353835
WebdavResource dest = resolvePath(destinationPath);
38363836
if (null == dest || dest.getPath().equals(src.getPath()))
38373837
throw new DavException(WebdavStatus.SC_FORBIDDEN);
3838-
checkAllowedFileName(dest.getName(), !dest.isCollection());
3838+
checkAllowedFileName(dest.getName(), !src.isCollection());
38393839

38403840
boolean overwrite = getOverwriteParameter(false);
38413841
boolean exists = dest.exists();

0 commit comments

Comments
 (0)