Skip to content

Announce support for setting the lastmodified in DAV header #22499

Closed

Description

@ziotibia81

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.

Activity

  1. LukasReschke commented on Feb 18, 2016

    @LukasReschke
    Contributor
  2. PVince81 commented on Feb 18, 2016

    @PVince81
    Contributor

    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 ?

  3. PVince81 commented on Feb 18, 2016

    @PVince81
    Contributor

    @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)

  4. martinprikryl commented on Feb 19, 2016

    @martinprikryl

    http://www.webdav.org/specs/rfc4918.html#HEADER_DAV

    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:

    DAV: 1,2
    DAV: <http://apache.org/dav/propset/fs/1>
    
  5. ziotibia81 commented on Feb 19, 2016

    @ziotibia81
    Author

    @PVince81 I think that @martinprikryl 's commet is really quite exhaustive... ;-)

  6. PVince81 commented on Feb 19, 2016

    @PVince81
    Contributor

    That's cool, setting to 9.1.

  7. added this to the milestone on Feb 19, 2016
  8. PVince81 commented on Feb 19, 2016

    @PVince81
    Contributor

    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 😄

  9. PVince81 commented on Feb 19, 2016

    @PVince81
    Contributor

    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.

  10. martinprikryl commented on Feb 19, 2016

    @martinprikryl

    Override ServerPlugin::getFeatures to return something like

    array("<https://owncloud.org/dav/proppatch-lastmodified>");
    

    See use of the method in CorePlugin::httpOptions.

  11. modified the milestones: , on Jun 14, 2016
  12. modified the milestones: backlog, 10.0 on Dec 8, 2016
  13. PVince81 commented on Dec 8, 2016

    @PVince81
    Contributor

    Backlog for now. PRs welcome

  14. ziotibia81 commented on Jun 28, 2017

    @ziotibia81
    Author

    There are plans to have this feature early?

  15. PVince81 commented on Jun 28, 2017

    @PVince81
    Contributor

    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

  16. stale commented on Sep 20, 2021

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions