it is possible to set cre modification date to a remote file?

68 views
Skip to first unread message

Alessandro Scaramuzza (taspallet 4ever)

unread,
Feb 16, 2012, 5:44:30 AM2/16/12
to sardine
hi to all, it is possible to set a creation/modification date and
creation user to a remote file using sardine?
thank you

David Kocher

unread,
Feb 16, 2012, 9:01:46 AM2/16/12
to sardi...@googlegroups.com
To my knowledge WebDAV does not support this.

-
David

Alessandro Scaramuzza

unread,
Feb 17, 2012, 10:55:24 AM2/17/12
to sardi...@googlegroups.com

David Kocher

unread,
Feb 17, 2012, 11:09:03 AM2/17/12
to sardi...@googlegroups.com
Please reference the RFC. WebDAV does support querying the DAV:getlastmodified element but setting this property is not possible.

-
David

David Delbecq

unread,
Feb 17, 2012, 2:08:01 PM2/17/12
to sardi...@googlegroups.com
Trunk version of sardine supports custom properties, i suppose you could trick sardine using this:

                // 2 setup some custom properties, with custom namespaces
                Map<QName, String> newProps = new HashMap<QName, String>();
                newProps.put(new QName("DAV:", "lastModified", "ns1"), someRFCcompliantDate);
                sardine.patch(url, newProps);

Alessandro Scaramuzza

unread,
Feb 20, 2012, 3:14:59 AM2/20/12
to sardi...@googlegroups.com
it works! thank you very very much 

David Kocher

unread,
Feb 20, 2012, 3:33:59 AM2/20/12
to sardi...@googlegroups.com
Against which WebDAV server implementation have you tested this? The last time I tried against mod_dav these properties in the default namespace were ignored.

-
David

Alessandro Scaramuzza

unread,
Feb 20, 2012, 5:45:30 PM2/20/12
to sardi...@googlegroups.com
apache 2.0
Reply all
Reply to author
Forward
0 new messages