Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Catacomb] version properties



OK, but if I create my own property of the resource with a help of a PROPPATCH method:
<?xml version="1.0"?>
    <D:propertyupdate xmlns:D="DAV:">
        <D:set>
            <D:prop>
    <D:owner>griffin</D:owner>
    <D:comment>simple description</D:comment>
   </D:prop>
        </D:set>
    </D:propertyupdate>
 
Then I put resource of the version control, create new versions, which have their own values of those properties. And If I use Report method like

 

<?xml version="1.0" encoding="utf-8" ?>

   <D:version-tree xmlns:D="DAV:">

      <D:prop> 

         <D:version-name/> 

         <D:comment/> 

         <D:owner/>  

      </D:prop>

   </D:version-tree>

 

it returns not found result with properties owner and comment.

----- Original Message -----
From: Sung Kim
Sent: Tuesday, October 28, 2003 1:42 AM
Subject: RE: [Catacomb] version properties

Hi,

 

You need the REPORT method to get version properties:

 

REPORT /repos/sung.txt HTTP/1.1

Host: localhost:7777

User-Agent: cadaver/0.22.0 neon/0.24.2

Connection: TE

TE: trailers

Content-Type: application/xml

Content-Length: 216

<?xml version="1.0" encoding="utf-8" ?>

   <D:version-tree xmlns:D="DAV:">

      <D:prop> 

         <D:version-name/> 

         <D:creator-displayname/> 

         <D:getcontentlength/>  

         <D:getlastmodified/> 

         <D:successor-set/>

      </D:prop>

   </D:version-tree>

 

- Sung

 

-----Original Message-----
From: catacomb-bounces@webdav.org [mailto:catacomb-bounces@webdav.org]On Behalf Of Александр
Sent: Monday, October 27, 2003 8:59 AM
To: catacomb@webdav.org
Subject: [Catacomb] version properties

 

Hello.

 

How can I get my own version properties (they are stored at the version_property table)? To get properties like content length or last modified I use report request:

<?xml version="1.0" encoding="utf-8" ?>
<D:version-tree xmlns:D="DAV:">
 <D:prop>
   <D:version-name/>
   <D:getcontentlength/>
   <D:getlastmodified/>
 </D:prop>
</D:version-tree>

 

But if I include in this request my own property request doesn't return it.