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 Ga...@hyperion.com on 2002/12/13 19:14:56 UTC

Reserved characters in Slide

Hi all.

I'm using the slide client (11-6-02 source tree) & I'm testing the use of
reserved characters in the URI.  I'm escaping the reserved characters
before I pass the string to the MkcolMethod() constructor.

Here's some of my relevant debug from the execution:

   Unescaped product name: bogus%bug-whereru

   Escaped product name: bogus%25bug%2Dwhereru

   Escaped product path: /slide/files/Products/bogus%25bug%2Dwhereru

   Path string passed to WebdavResource.mkcolMethod():
/slide/files/Products/bogus%25bug%2Dwhereru

   URI Path passed to MkcolMethod ctor in WebdavResource.mkcolMethod():
/slide/files/Products/bogus%bug-whereru

I turned debug on in the Slide client, and it printed out the following
header:

MKCOL /slide/files/Products/bogus%25bug-whereru HTTP/1.1
Content-Length: 0
Authorization: Basic YWRtaW46cGFzc3dvcmQ=
Cookie: $Version=1;JSESSIONID=8AFF4B22749D4EC3B5EB8A524B442CA1;
$Path=/slide; $Domain=localhost
Host: localhost:8080
User-Agent: Jakarta HTTP Client/1.0

To me, everything looks groovy, but I get the following exception
(apparently thrown back from the server, but I'm still trying to track that
down - haven't built and debugged the server-side yet):

CLIENT: Status: -1, Exception: Connection aborted by peer: JVM_recv in
socket input stream read
java.net.SocketException: Connection aborted by peer: JVM_recv in socket
input stream read
      at java.net.SocketInputStream.socketRead(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:85)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
      at
org.apache.commons.httpclient.HttpClient.readLine(HttpClient.java:1114)
      at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:501)
      at
org.apache.webdav.lib.WebdavResource.mkcolMethod(WebdavResource.java:3551)
      at
com.hyperion.interop.lib.Repository.createProduct(Repository.java:240)

[ ....remaining stack snippped out....]


For what it's worth, I hacked the WebdavResource.mkcolMethod to escape the
path before passing it to the MkColMethod ctor, but it made no difference.
Any help about this would be greatly appreciated.

Best Regards,
Gary B.

gary_braswell@hyperion.com



************************************************************************

If you received this e-mail in error please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited.

Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion.

For more information about Hyperion, please visit our Web site at www.hyperion.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>