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
Announce support for setting the lastmodified in DAV header #22499
Hello,
in lasts version of ownclode there was some different ways to set mtime of file using propatch
(issue #15850 , #19737 ). So could be nice to annunce to DAV client support for setting the lastmodified in DAV header (dav: 1, 3, extended-mkcol) or another custom header.
It was always intended to be PROPPATCH on lastmodified. There was a version where it changed to getlastmodified but it was wrong as this property must be read-only as per webdav specs, so it was fixed to be the correct one again.
I wasn't aware that it was possible to advertise supported read-write properties in DAV headers ?
@ziotibia81 is that part of any standard ? If yes, then it's cool because it could help ownCloud detect if remote DAV storages support this or not, for #16688 (comment)
The value is a comma-separated list of all compliance class identifiers that the resource supports. Class identifiers may be Coded-URLs or tokens (as defined by [RFC2616]). Identifiers can appear in any order. Identifiers that are standardized through the IETF RFC process are tokens, but other identifiers SHOULD be Coded-URLs to encourage uniqueness.
For example the Apache mod_dav uses Coded-URL <http://apache.org/dav/propset/fs/1> to announce a support for the executable property:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Activity
LukasReschke commentedon Feb 18, 2016
@DeepDiver1975 @dragotin @karlitschek Thoughts?
PVince81 commentedon Feb 18, 2016
It was always intended to be PROPPATCH on
lastmodified. There was a version where it changed togetlastmodifiedbut it was wrong as this property must be read-only as per webdav specs, so it was fixed to be the correct one again.I wasn't aware that it was possible to advertise supported read-write properties in DAV headers ?
PVince81 commentedon Feb 18, 2016
@ziotibia81 is that part of any standard ? If yes, then it's cool because it could help ownCloud detect if remote DAV storages support this or not, for #16688 (comment)
martinprikryl commentedon Feb 19, 2016
http://www.webdav.org/specs/rfc4918.html#HEADER_DAV
For example the Apache mod_dav uses Coded-URL
<http://apache.org/dav/propset/fs/1>to announce a support for theexecutableproperty:ziotibia81 commentedon Feb 19, 2016
@PVince81 I think that @martinprikryl 's commet is really quite exhaustive... ;-)
PVince81 commentedon Feb 19, 2016
That's cool, setting to 9.1.
PVince81 commentedon Feb 19, 2016
I won't have time to look into this right now, but if you guys have an idea where to add this using the Sabre DAV APIs, please submit a pull request 😄
PVince81 commentedon Feb 19, 2016
The best place to add this is likely to be the files plugin: https://github.com/owncloud/core/blob/v9.0.0beta2/apps/dav/lib/connector/sabre/filesplugin.php
However, I'm not sure what Sabre API to use from there to make.
martinprikryl commentedon Feb 19, 2016
Override
ServerPlugin::getFeaturesto return something likeSee use of the method in
CorePlugin::httpOptions.PVince81 commentedon Dec 8, 2016
Backlog for now. PRs welcome
ziotibia81 commentedon Jun 28, 2017
There are plans to have this feature early?
PVince81 commentedon Jun 28, 2017
No plans for now, this is not a priority. Feel free to implement this yourself (or find someone who does it) if this is important for your use cases
stale commentedon Sep 20, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.