You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by James Mason <Ma...@ah.org> on 2004/06/15 00:33:23 UTC
RE: Not able to modify DAV:displayname property of a
Collection
Ritu,
Rather than changing the property can you just move/rename the file?
WebDav has the concept of "live" properties that are dynamic and cannot
be edited. It might be that DAV:displayname isn't modifiable.
-James
>>> RKedia@saba.com 6/11/2004 9:41:05 AM >>>
I apologize if I am inconveniencing by reposting this mail.
I would really appreciate if someone could please let me know whether I
can
modify the DAV:displayname property of a collection.
Ideally I expected the displayname to be a modifiable property but
proppatch
is not overwriting that property instead it is creating a new
displayname
property with empty namespace. I can use this displayname with my
custom
namespace, but this would require me to make one additional propfind
call
after getting the resource using WebdavResource. I would like to avoid
this
additional call per resource when doing getChildResources.
Any reply would be greatly appreciated.
Regards,
Ritu
-----Original Message-----
From: Ritu Kedia [mailto:RKedia@saba.com]
Sent: Thursday, June 10, 2004 7:13 PM
To: Slide Users Mailing List (E-mail)
Subject: Not able to modify DAV:displayname property of a Collection
My requirement is to rename a Collection.
I tried using: *proppatch("collectionPath", new
PropertyName("DAV:","displayname"), "newName", true)*
But this method created a new property "displayname" with empty
namespace
instead of modifying the "DAV:displayname" property.
Could anyone please tell me what is the expected behavior?
Regards,
Ritu
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Not able to modify DAV:displayname property of a Collection
Posted by Julian Reschke <ju...@gmx.de>.
James Mason wrote:
> Ritu,
> Rather than changing the property can you just move/rename the file?
> WebDav has the concept of "live" properties that are dynamic and cannot
> be edited. It might be that DAV:displayname isn't modifiable.
My 2 cents...:
1) DAV:displayname shouldn't be a live property. If it's always
identical to the last path segment it (a) is completely useless and (b)
certainly isn't a "...a name for the resource that is suitable for
presentation to a user" as required by RFC2518.
2) If it indeed *is* live, attempts to modify it MUST fail with an
appropriate status code (in a 207 multistatus response body).
Best regards, Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org