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 "K.C. Baltz" <kc...@lollimail.com> on 2004/01/23 07:19:22 UTC

getDisplayName returns wrong value

The Webdav client code seems to be broken for getDisplayName().  I 
always receive the name of the node, regardless of the value of  
DAV:displayName.  I've set the name the same using code like this:

resource.proppatchMethod("/slide/files/node", new 
PropertyName("DAV:",WebdavResource.DISPLAYNAME), "Some fancy Name");

But when I retrieve the resource and call getDisplayName(), all I get is 
"node", not "Some fancy Name" like I'd expect.

I can see the correct property in the database with the right namespace 
(at least, the value has been changed from "node" to "Some fancy Name").

I'm using post 1.0.16 code, but it's a few months old ( I'm wary of all 
the changes being made in the CVS branch, especially with regards to the 
new ACL stuff).

K.C.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: getDisplayName returns wrong value

Posted by "K.C. Baltz" <kc...@lollimail.com>.
I've been retrieving the resource via code like this:

    HttpURL url = new HttpsURL(null, null,
            "hostname", 443, "/slide/files/john", null);

    WebdavResource resource = new WebdavResource(url);

I'll try the latest CVS code.

K.C.


Ingo Brunberg wrote:

>Well, I can get the "real" displayname. Could you try again with the
>latest code? It's really easy to build. Just checkout
>jakarta-slide/webdavclient, cd to webdavclient and call ant.
>
>And how do you retrieve the resource exactly?
>
>Ingo
>
>  
>
>>The Webdav client code seems to be broken for getDisplayName().  I 
>>always receive the name of the node, regardless of the value of  
>>DAV:displayName.  I've set the name the same using code like this:
>>
>>resource.proppatchMethod("/slide/files/node", new 
>>PropertyName("DAV:",WebdavResource.DISPLAYNAME), "Some fancy Name");
>>
>>But when I retrieve the resource and call getDisplayName(), all I get is 
>>"node", not "Some fancy Name" like I'd expect.
>>
>>I can see the correct property in the database with the right namespace 
>>(at least, the value has been changed from "node" to "Some fancy Name").
>>
>>I'm using post 1.0.16 code, but it's a few months old ( I'm wary of all 
>>the changes being made in the CVS branch, especially with regards to the 
>>new ACL stuff).
>>
>>K.C.
>>    
>>
>
>
>---------------------------------------------------------------------
>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: getDisplayName returns wrong value

Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
Well, I can get the "real" displayname. Could you try again with the
latest code? It's really easy to build. Just checkout
jakarta-slide/webdavclient, cd to webdavclient and call ant.

And how do you retrieve the resource exactly?

Ingo

> The Webdav client code seems to be broken for getDisplayName().  I 
> always receive the name of the node, regardless of the value of  
> DAV:displayName.  I've set the name the same using code like this:
> 
> resource.proppatchMethod("/slide/files/node", new 
> PropertyName("DAV:",WebdavResource.DISPLAYNAME), "Some fancy Name");
> 
> But when I retrieve the resource and call getDisplayName(), all I get is 
> "node", not "Some fancy Name" like I'd expect.
> 
> I can see the correct property in the database with the right namespace 
> (at least, the value has been changed from "node" to "Some fancy Name").
> 
> I'm using post 1.0.16 code, but it's a few months old ( I'm wary of all 
> the changes being made in the CVS branch, especially with regards to the 
> new ACL stuff).
> 
> K.C.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org