Le Lundi 27 Juin 2005 13:54, Stefan Eissing a écrit :
> 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.

The problem is simply to transform this name into something acceptable by the 
webdav servlet, 
so people can access the metadatas from outside, it does not matter if they are 
slightly different
than the keys used by propertySet. I prefer this behaviour to a non 
propfindable node. webdav access
to those properties are anyway only used by admin to check for problems. I was 
just hoping
someone could redirect me to some method already doing this name escaping , in 
slide or any other tool.

My problem is to know what are the characters i need to escape. Is there some 
list somewhere?

> 
> 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...

storing a whole xml document in a webdav property is unacceptable, because the
RDBMS store only accept up to 4000 characters in the Varchar2 used by rdbms 
adapter.
We ran in this problem when putting serialized java objects as properties of a 
node :)

btw, any chance in future slide properties will be stored a CLOB instead of 
varchar2 in oracle store? 

> 
> 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]
> 
> 

-- 
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]

Reply via email to