Re: ObjectBox::getXMLParameter
Martin Klang <[email protected]> Mon, 28 Jul 2003 09:05:21 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
wow, that's a bug alright, i'm amazed it hasn't shown up earlier -
not sure what the best solution is, but lastIndexOf seems unecessary.
i've tested a fixed version with and without servlet context path (using
the root context) and it seems to work well.
i've also checked that it doesn't cause the sort of problem explained
below anymore.
it's in CVS, it'll go into the next release but i can't guarantee when
that will be. probably sometime next month.
cheers, thanks for finding and reporting the bug -
/m
Martin Klang
http://www.o-xml.org - the object-oriented XML programming language
On Mon, 21 Jul 2003, Ken McCloskey wrote:
> Martin,
>
> If you have a URL such as the following:
> http://localhost/Reports/oxml/ReportsConfig.oxml
>
> Where you've mapped oxml to the ObjectBox servlet and where the servlet
> context has the same name as the oxml file (Reports).
>
> You'll get a FileNotFoundException:
> /home/user/tomcat/webapps/Reports/onfig.oxml
>
> The source of this bug is in org.oXML.extras.http.ObjectBox getXMLParameter:
> if(ctxt != null && !ctxt.equals(""))
> xml = xml.substring(xml.lastIndexOf(ctxt)+ctxt.length()+1);
>
> Ken McCloskey
> 818.281.7811
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> _______________________________________________
> o-xml mailing list
> o-xml-zRfLyl9bSvv/[email protected]
> http://lists.pingdynasty.com/mailman/listinfo/o-xml
>