There is no escape mechanism defined in WebDAV. This means that any method you come up with will be your own and be only understood by your client.

If your goal is round-tripping all possible string pairs, you could put them all into your own XML document and store the whole document as a single WebDAV property with your own, level name. Again, the meaning of this will only be understood by your client...

Am 27.06.2005 um 13:45 schrieb delbd:

Any suggestion how to escape special characters? I have an api method which does something like propertySet.set(key,value); The key could be any String, including such illegal characters. I need to store this some way or another in slide and have the pending method propertySet.get(key,value) return the original value. So, is there a complete list of illegal (or of legal) characters so i could do some escaping
instead of 'hope not to crash' ?

Le Lundi 27 Juin 2005 13:35, Stefan Eissing a écrit :
The question is which characters are allowed names in WebDAV. Since
WebDAV uses XML element names, all allowed characters in those names
could work and all forbidden chars will definitely not work.

So whitespace, control chars, []{}/<> and friends will *not* work at
all.

//Stefan

Am 27.06.2005 um 13:26 schrieb delbd:

What is the exact set of allowed characters in slide?
I got this error when getting the properties from a node in slide:

org.jdom.IllegalNameException: The name "date[1].startHour" is not
legal for
JDOM/XML elements: XML names cannot contain the character "[".
        at org.jdom.Element.setName(Element.java:206)
        at org.jdom.Element.<init>(Element.java:140)
        at
org.apache.slide.webdav.util.PropertyRetrieverImpl.getPropertyElement (P
ropertyRetrieverImpl.java:570)
        at
org.apache.slide.webdav.util.PropertyRetrieverImpl.getPropertyElement (P
ropertyRetrieverImpl.java:535)
        at
org.apache.slide.webdav.util.PropertyRetrieverImpl.getAllPropertiesOf Ob
ject(PropertyRetrieverImpl.java:458)
        at
org.apache.slide.webdav.util.PropertyRetrieverImpl.getPropertiesOfObj ec
t(PropertyRetrieverImpl.java:300)
        at
org.apache.slide.webdav.util.PropertyRetrieverImpl.getPropertiesOfObj ec
t(PropertyRetrieverImpl.java:264)
        at
org.apache.slide.webdav.method.PropFindMethod.getPropertiesOfObject(P ro
pFindMethod.java:509)
        at
org.apache.slide.webdav.method.PropFindMethod.executeRequest(PropFind Me
thod.java:292)
        at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebda vM
ethod.java:405)
        at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:155)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl ic
ationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF il
terChain.java:173)
        at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:141)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl ic
ationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF il
terChain.java:173)
        at
be.rmi.intranet.filter.PrincipalUser.doFilter(PrincipalUser.java:72)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl ic
ationFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF il
terChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV al
ve.java:214)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV al
ve.java:178)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica to
rBase.java:407)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j av
a:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j av
a:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve
.java:107)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
526)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:
148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :
825)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss
Connection(Http11Protocol.java:738)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo in
t.java:526)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lo
werWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP oo
l.java:684)
        at java.lang.Thread.run(Thread.java:534)
http-8080-Processor7, 27-Jun-2005 13:16:44, delbd, PROPFIND, 500
"Internal
Server Error", 46 ms, /WORKFLOW/ACTIVATED/workflowInstance.5140/

--
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to