[owncloud-devel] R: Re: R: Re: API to set MTIME of files

ziotibia1 at libero.it ziotibia1 at libero.it
Thu Apr 23 20:29:52 GMT 2015


Hi,
the following structure:

<?xml version="1.0"?>
<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
  <d:set>
    <d:prop>
        <d:getlastmodified>Mon, 19 Jan 2015 19:50:20 GMT</d:getlastmodified>
    </d:prop>
  </d:set>
</d:propertyupdate>

 still responding
HTTP/1.1 403 Forbidden

OwnCloud 8.0.2

>----Messaggio originale----
>Da: pvince81 at owncloud.com
>Data: 21/04/2015 11.55
>A: "ziotibia1 at libero.it"<ziotibia1 at libero.it>, "List for Developers of 
ownCloud"<devel at owncloud.org>
>Ogg: Re: [owncloud-devel] R: Re:  API to set MTIME of files
>
>Back then when I tested this I used this PROPPATCH structure:
>
><?xml version="1.0"?>
><d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
>  <d:set>
>    <d:prop>
>        <d:getetag>myetag</d:getetag>
>        <d:getlastmodified>Fri, 13 Feb 2015 00:00:00 GMT</d:getlastmodified>
>    </d:prop>
>  </d:set>
></d:propertyupdate>
>
>(yes, etags can also be set)
>
>Cheers,
>
>Vincent
>
>On 21.04.2015 11:53, Vincent Petry wrote:
>> Try PROPPATCH with <d:getlastmodified>.
>>
>> On 21.04.2015 11:29, ziotibia1 at libero.it wrote:
>>> Hello,
>>> thanks for you reply.
>>>
>>> I made a test using PROPATCH and sending:
>>>
>>> <?xml version="1.0" encoding="utf-8" ?>
>>> <D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><getlastmodified xmlns="
DAV:">Thu, 2 Apr 2009 06:58:27GMT</getlastmodified></D:prop></D:set>2015-03-27 
12.33.20.355 </D:propertyupdate>
>>>
>>> But owncloud (latest version) reply:
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="
http://owncloud.org/ns"><d:response><d:href>/owncloud/remote.
php/webdav//ImgItems/img.40.jpg</d:href><d:propstat><d:prop><d:
getlastmodified/></d:prop><d:status>HTTP/1.1 403 Forbidden</d:status></d:
propstat></d:response></d:multistatus>
>>>
>>>
>>> The call is different?
>>>
>>>
>>>
>>>
>>> ----Messaggio originale----
>>>
>>> Da: pvince81 at owncloud.com
>>>
>>> Data: 21/04/2015 11.19
>>>
>>> A: "ziotibia1 at libero.it"<ziotibia1 at libero.it>, "List for Developers of 
ownCloud"<devel at owncloud.org>
>>>
>>> Ogg: Re: [owncloud-devel] API to set MTIME of files
>>>
>>>
>>>
>>>
>>>   
>>>   
>>>     Yes, you can do a PROPPATCH and send the "getlastmodified" property.
>>>
>>>     
>>>
>>>     On 21.04.2015 11:17,
>>>       ziotibia1 at libero.it wrote:
>>>
>>>     
>>>     
>>>       Hello,
>>> there are a call in owcloud api to set mtime of file when the access is in 
webdav mode?
>>>
>>> I notice that Owncloud client set mtime during the PUT and do this using X-
OC-Mtime on headers.
>>>
>>> There are other ways?
>>>
>>>       
>>>
>>>       
>>>       
>>>
>>>       _______________________________________________
>>> Devel mailing list
>>> Devel at owncloud.org
>>> http://mailman.owncloud.org/mailman/listinfo/devel
>>>
>>>     
>>>     
>>>
>>>   
>>>
>>>
>>>
>>>
>>>
>>>
>> _______________________________________________
>> Devel mailing list
>> Devel at owncloud.org
>> http://mailman.owncloud.org/mailman/listinfo/devel
>
>




More information about the Devel mailing list