Namespace of properties

Henrik Holst henrik at witsbits.com
Fri Aug 29 04:00:42 EDT 2008


fre 2008-08-29 klockan 09:42 +0200 skrev Henrik Holst:
> It strikes me that "propnames [resource]" should work without the patch,
> I'm experiencing problems with it but I'm not yet sure if it is really a
> problem with cadaver or with my server :)
> 
> /Henrik Holst
> Witsbits AB
> 

Fortunately it was a problem with our server that is now corrected. You
can use propnames to show the namespace and property names of a resource
such as:

dav:/users/? propnames henrik
Fetching property names `henrik': DAV: acl
 DAV: supported-privilege-set
 DAV: current-user-privilege-set
 DAV: acl-restrictions
 DAV: principal-collection-set
 DAV: inherited-acl-set
 DAV: group-member-set
 DAV: group-membership
 DAV: resourcetype
 Witsbits creditbalance
 Witsbits country
 Witsbits email
 DAV: displayname
 DAV: principal-URL
 DAV: creationdate
 DAV: getlastmodified
 DAV: owner
 succeeded.
dav:/users/? 

Here we can see that there is two namespaces; DAV: and Witsbits.

With the patch that I sent earlier the namespace will be written for
allprop propgets as well:

dav:/users/? propget henrik
Fetching properties for `henrik':
Witsbits email = henrik (at) witsbits.com
DAV: displayname = henrik
DAV: principal-URL = https://fs.witsbits.com/users/henrik
DAV: creationdate = 2007-10-05T17:08:17Z
DAV: getlastmodified = Fri, 05 Oct 2007 17:08:17 GMT
DAV: owner = henrik
DAV: resourcetype = <principal></principal>
Witsbits creditbalance = 0
dav:/users/? 

Without the patch only the property names would be displayed. One
benefit with propnames is that that should list all defined properties
for a resource while an allprop propget would only list those properties
that the server in question chooses to send per default.

Regards, Henrik Holst
Witsbits AB





More information about the cadaver mailing list