Bind with accents are not working well.
I have created a resource /slide/files/testé
Then i created a bind named /slide/files/testéé
In the internet browser, i can see : test%C3%A9%C3%A9/
http://localhost:8081/slide/files/test%25C3%25A9%25C3%25A9
The Java code :
HttpURL oHttpURL
Hello Laurent, can you test also query string parameters?, something
like this:
http://localhost:8081/slide/files/test%25C3%25A9%25C3%25A9?param1=value1param2=value2
Works?
Regards
Laurent Michenaud wrote:
Bind with accents are not working well.
I have created a resource
It seems to work but i don't understand why u ask me to do this test.
I have looked at the xml file, it is stored like this :
objectnode classname=org.apache.slide.structure.SubjectNode
uri=/1116576562048.22
children
child name=test uuri=/1116576562048.28 /
child name=testé
The problem is that the put method works correctly if you pass
parameters in the query string (bug 34950), Slide should be consistent
and all methods should ignore all after the ?
Regards
Laurent Michenaud wrote:
It seems to work but i don't understand why u ask me to do this test.
I have
What's the link with my problem ?
Other informations :
My tomcat is started with the following options :
c:\dev\j2sdk1.4.2_06\bin\java
-Djava.security.auth.login.config=
c:\dev\jakarta-tomcat-5.0.28-slide\conf\jaas.config
-Dfile.encoding=UTF-8
Laurent,
in
$CATALINA_HOME/work/Catalina/localhost/slide/loader/org/apache/slide/slide.properties
any look changing from UTF-8 to ISO-8859-1 ?
Laurent Michenaud wrote:
What's the link with my problem ?
Other informations :
My tomcat is started with the following options :
No
org.apache.slide.urlEncoding=UTF-8
Does my test work for u ?
-Message d'origine-
De : Marco T. Avila [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 mai 2005 11:15
À : Slide Users Mailing List
Objet : Re: Bind method and accents
Laurent,
in
Are you sure that the DAV:segment should be escaped? Normally only the href
elements are escaped.
Try to send the request with the DAV:segment utf-8 encoded but not escaped.
/jacob
- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: Slide Users Mailing List
Can u tell me how to do that ?
What do u use to espace a string ? I don't really understand.
If I look at the BindMethod in the Webdavlib, we can see:
BindMethod method =
New
BindMethod(URIUtil.encodePath(existingBinding),URIUtil.encodePath(newBinding));
So the segment is well encoded in
Jacob Lund wrote:
Are you sure that the DAV:segment should be escaped? Normally only the
href elements are escaped.
It's part of the URI, thus the same escaping rules apply:
http://greenbytes.de/tech/webdav/rfc3986.html#rfc.iref.112
...
Best regards,
Julian
Concretly, what do i have to do ?
Do u have tested binding with accents or not ?
I would like to know if others have the same problems
as me or not.
-Message d'origine-
De : Julian Reschke [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 20 mai 2005 11:47
À : Slide Users Mailing List
Objet
Laurent Michenaud wrote:
Concretly, what do i have to do ?
I think Slide needs a bug fix.
Do u have tested binding with accents or not ?
I would like to know if others have the same problems
as me or not.
I am testing with a different server (SAP Netweaver KM).
Best regards,
Julian
Hi Julian!
Is the DAV:segment considered a part of the path?
The segment is just a name. From what I can read in the BIND document, the
segment can only contain a name and not a uri or a relative uri. Does the
fact the a segment in a request body is to be used in a uri automatically
make this
Ok I have run ethereal, seems a problem on the client side because the
request is never done for the bind method.
Request (for MKCOL)
MKCOL /debugSlide/files/%3F%3F%3F%3F%3F
Authorization: Basic cm9vdDpyb290
User-Agent: Jakarta Commons-HttpClient/2.0.1
Host: localhost:8080
Response:
Uhmmm not sure
I have modified the BindMethod class on the server side :
protected void parseRequest() throws WebdavException {
...
---segment = MethodUtil.getChildText(content, E_SEGMENT);
+++segment = URIUtil.decode(MethodUtil.getChildText(content, E_SEGMENT),UTF8);
...
}
And now, it
Jacob Lund wrote:
Hi Julian!
Is the DAV:segment considered a part of the path?
Yes.
The segment is just a name. From what I can read in the BIND document,
the segment can only contain a name and not a uri or a relative uri.
Yes.
Does the fact the a segment in a request body is to be used in a
ahh - missed that. Thanks. :)
- Original Message -
From: Julian Reschke [EMAIL PROTECTED]
To: Slide Users Mailing List slide-user@jakarta.apache.org
Sent: Friday, May 20, 2005 12:31 PM
Subject: Re: Bind method and accents
Jacob Lund wrote:
Hi Julian!
Is the DAV:segment considered a part
Hi there,
As part of an internal project we have been looking at SLIDE and using
WebDAV to access slide repositories.
As such we have developed a number of getting started documents and
examples which has been an amalgam of stuff on the SLIDE site, archive
mailing lists and effort from our side.
I'd like to use the WCK but I've got a few questions about
getting going:
1. I'm not running Tomcat on the same machine that I'm building
on so the deploy target is of little use in setting up WCK.
I can use the dist target and manually deploy slide.war, but
what needs to be patched in
19 matches
Mail list logo