You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proppatch lastmodified instead of getlastmodified #19737
In OC <= 8.0, to update the mtime of a file one had to do a PROPATCH of the {DAV:}lastmodified property. The desktop client used to do it in its legacy propagator.
Since OC 8.1 and the Sabre upgrade, the property was mistakenly shifted to be "getlastmodified" instead of "lastmodified". So now one would need to PROPPATCH the other property.
This is wrong. We need to bring back "lastmodified" to keep backwardc compatible.
Additionally, the DAV external storage client also uses this property when doing a "touch()" operation.
CC @rperezb in case this affects mobile clients (are they using PROPATCH to change mtimes?)
Also would be good to have a (smashbox?) test case for this.
@guruz for the server it doesn't matter if the client doesn't use it any more.
We still need "lastmodified" PROPPATCH for federated shares (they use it to "touch" remote files)
Activity
PVince81 commentedon Oct 13, 2015
Steps to reproduce:
curl -X PROPPATCH -H "Content-Type: text/xml" --data-binary "@proppatch.txt" http://root:admin@localhost/owncloud/remote.php/webdav/test1.txt | xmllint --format -Expected result
Mtime has changed.
Also using "getlastmodified" must return 403.
Actual result
Mtime hasn't changed.
In OC >= 8.1 one needs to use "getlastmodified", which is wrong.
PVince81 commentedon Oct 13, 2015
CC @rperezb in case this affects mobile clients (are they using PROPATCH to change mtimes?)
Also would be good to have a (smashbox?) test case for this.
PVince81 commentedon Oct 13, 2015
I believe that until now no clients have been using it, else it would have caused issues starting with 8.1. Also in general from what I read this property is usually read-only, and OC is the only one that allows changing is, see http://stackoverflow.com/a/17979769
So, not critical but needs to be fixed eventually.
@cmonteroluque @DeepDiver1975 @karlitschek I suggest 8.2.1 for now
PVince81 commentedon Oct 13, 2015
it could affect federated shares though. Might explain #15594
PVince81 commentedon Oct 13, 2015
PR here #19738
rperezb commentedon Oct 13, 2015
@PVince81 we are not using proppatch on the mobile apps
guruz commentedon Oct 16, 2015
Just to state this again: We need to kill the legacy propagator :-|
Please have us require Qt >= 5.4 on all platforms.
PVince81 commentedon Oct 16, 2015
@guruz for the server it doesn't matter if the client doesn't use it any more.
We still need "lastmodified" PROPPATCH for federated shares (they use it to "touch" remote files)