Bug 69046

Summary: Implement PROPPATCH for WebDAV Servlet
Product: Tomcat 11 Reporter: Mark Thomas <markt>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 11.0.0-M20   
Target Milestone: -------   
Hardware: All   
OS: All   

Description Mark Thomas 2024-05-24 11:55:26 UTC
The current WebDAV Servlet provided by Tomcat does not implement PROPPATCH. This is known to cause the following issues:

- copy/paste does not work with Windows WebDAV clients
- drag/drop  does not work with Windows WebDAV clients

There may be additional issues.

It may be possible to map the properties being set by the clients in the above scenarios to existing properties of the file system objects, meaning a separate property store would not be required.
Comment 1 Remy Maucherat 2024-05-24 13:37:44 UTC
The properties handled in the Servlet are derived from the filesystem and so it's not possible to really change them [without changing the file]. So that's why proppatch was never implemented back then.
Do you know which property the clients are trying to set ?
Comment 2 Mark Thomas 2024-05-24 13:44:51 UTC
From memory, the clients are using Windows specific identifiers for:
- created time
- last modified time
- last accessed time
- type (file/directory)

That last one might be a bit tricky as the client also tries to set the archive bit.

I started to look at an implementation that mapped these to the Java file attributes but stopped as it was taking too long and it wasn't clear there was a demand for it.