Skip to content

Commit

Permalink
A successful MOVE request on a write locked resource MUST NOT move th…
Browse files Browse the repository at this point in the history
…e write lock with the resource.
  • Loading branch information
dkocher committed Nov 20, 2024
1 parent 91d2e0a commit 66f3ba2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import ch.cyberduck.core.ConnectionCallback;
import ch.cyberduck.core.DescriptiveUrl;
import ch.cyberduck.core.Path;
import ch.cyberduck.core.PathAttributes;
import ch.cyberduck.core.exception.BackgroundException;
import ch.cyberduck.core.features.Delete;
import ch.cyberduck.core.features.Lock;
Expand Down Expand Up @@ -60,7 +61,7 @@ public Path move(final Path file, final Path renamed, final TransferStatus statu
status.isExists());
}
// Copy original file attributes
return renamed.withAttributes(file.attributes());
return renamed.withAttributes(new PathAttributes(file.attributes()).withLockId(null));
}
catch(SardineException e) {
throw new DAVExceptionMappingService().map("Cannot rename {0}", e, file);
Expand Down

0 comments on commit 66f3ba2

Please sign in to comment.