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
From what I understand the sync client does such PROPPATCH in case a PUT didn't accept the mtime.
Yes that's correct, but PUT always accept the mtime with recent server.
The newest version of the client does not even do it anymore and if PUT does not accept it, the mtime will be wrong.
You need to make sure that it does not write the lastmodified property in the "oc_properties" table. I believe that was the reason for the protected properties.
If this works correctly, do you mind sending the change as a pull request ?
I think that reason because this property is protected is RFC4918, where getlastmodified is readonly. Many Webdav servers breaks this rule and permit to use getlastmodified to set mtime, so it looks like to be a standard feature.
It seems to me we understand that L162 of node.php manage {DAV:}lastmodified to change mtime.
In this case also node.php need to be fixed.
Activity
ogoffart commentedon Apr 24, 2015
Yes that's correct, but PUT always accept the mtime with recent server.
The newest version of the client does not even do it anymore and if PUT does not accept it, the mtime will be wrong.
PVince81 commentedon Apr 24, 2015
Yes, I also couldn't think of cases where the mtime would not be accepted.
Anyway, I think still it is legitimate to allow PROPPATCH on getlastmodified, so we might want to see why it doesn't work on OC 8.0
ziotibia81 commentedon May 6, 2015
I confirm this issue on 8.0.3
(The problem in't only on 403 response, mtime of file don't change at all)
ziotibia81 commentedon Jun 19, 2015
There are a way to make it work on 8.0.4?
PVince81 commentedon Jun 19, 2015
I didn't have to look into this sorry... fully booked with upcoming 8.1 release.
If you feel adventurous you can try debugging the OC code, the location should be here https://github.com/owncloud/core/blob/stable8/lib/private/connector/sabre/node.php#L162
ziotibia81 commentedon Jun 19, 2015
Solved.... The problem is here:
https://github.com/owncloud/3rdparty/blob/stable8/sabre/dav/lib/Sabre/DAV/Server.php#L104
Removing this line matime is chaged. Listing file in DAV I can see correct mtime. In web view I still view time of upload.
PVince81 commentedon Jun 19, 2015
You need to make sure that it does not write the lastmodified property in the "oc_properties" table. I believe that was the reason for the protected properties.
If this works correctly, do you mind sending the change as a pull request ?
ziotibia81 commentedon Jun 19, 2015
I think that reason because this property is protected is RFC4918, where getlastmodified is readonly. Many Webdav servers breaks this rule and permit to use getlastmodified to set mtime, so it looks like to be a standard feature.
It seems to me we understand that L162 of node.php manage {DAV:}lastmodified to change mtime.
In this case also node.php need to be fixed.
Permit {DAV:}getlastmodified to set mtime. owncloud#15850
ziotibia81 commentedon Jun 19, 2015
I sent two PR:
#17051
owncloud-archive/3rdparty#177
(there are something wrong in my PR. Only this commit is the patch:
ziotibia81/3rdparty@94efe7b )
ziotibia81 commentedon Jun 19, 2015
@PVince81 Could you manage commit ziotibia81/3rdparty@94efe7b ? I'm not very skilled and I'm making too much hassle in GitHub.....
MorrisJobke commentedon Aug 28, 2015
Solution is an upgrade to 8.1 see #17051 (comment)
PVince81 commentedon Oct 13, 2015
Looks like there was a misunderstanding. You need to proppatch "{DAV:}lastmodified" and not "{DAV:}getlastmodified". This will work in OC <= 8.0.
Since 8.1 you need to proppatch "getlastmodified", which is wrong, raised here: #19737