[opencms-dev] bug in CmsXmlUtils and CmsDefaultLinkSubstitutionHandler

Ruben Malchow ruben at khm.de
Thu Jul 3 03:17:30 CEST 2008


hello,

i get these exceptions:

  	WARN [titutionHandler: 300] Could not resolve the site path of malformed
Uri "http://127.0.0.1:8080/${CONTEXT_NAME}/handle404"
  	java.net.URISyntaxException: Illegal character in path at index 23:
http://127.0.0.1:8080/${CONTEXT_NAME}/handle404
		at java.net.URI$Parser.fail(URI.java:2816)
		at java.net.URI$Parser.checkChars(URI.java:2989)
		at java.net.URI$Parser.parseHierarchical(URI.java:3073)
		at java.net.URI$Parser.parse(URI.java:3021)
		at java.net.URI.<init>(URI.java:578)
		at
org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler.getRootPath(CmsDefaultLinkSubstitutionHandler.java:282)

	WARN [titutionHandler: 300] Could not resolve the site path of malformed
Uri
"http://127.0.0.1:8081/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING"
	java.net.URISyntaxException: Malformed escape pair at index 42:
http://127.0.0.1:8081/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING
		at java.net.URI$Parser.fail(URI.java:2816)
		at java.net.URI$Parser.scanEscape(URI.java:2946)
		at java.net.URI$Parser.scan(URI.java:2969)
		at java.net.URI$Parser.checkChars(URI.java:2987)
		at java.net.URI$Parser.parseHierarchical(URI.java:3079)
		at java.net.URI$Parser.parse(URI.java:3021)
		at java.net.URI.<init>(URI.java:578)
		at
org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler.getRootPath(CmsDefaultLinkSubstitutionHandler.java:282)

and then, a bit later, just after this:

	Parsing links for "/documentation_staticexport/config/index.html"... o.k.

i get this

	class org.opencms.xml.CmsXmlException:Unmarshalling XML document failed.
	 at org.opencms.xml.CmsXmlUtils.unmarshalHelper (CmsXmlUtils.java:654)
	 at org.opencms.xml.CmsXmlUtils.unmarshalHelper (CmsXmlUtils.java:617)
	 at org.opencms.xml.CmsXmlUtils.unmarshalHelper (CmsXmlUtils.java:673)
	 at org.opencms.xml.page.CmsXmlPageFactory.unmarshal
(CmsXmlPageFactory.java:337)
	 at org.opencms.xml.page.CmsXmlPageFactory.unmarshal
(CmsXmlPageFactory.java:221)
	 at org.opencms.file.types.CmsResourceTypeXmlPage.writeFile
(CmsResourceTypeXmlPage.java:247)

while trying to import a previously exported zip.

i export using CmsExport + CmsExportParameters in 7.0.4, then CmsImport to
import.

the files that actually cause the problem are part of the alkacon
documentation
package, namely

	alkacon-documentation/documentation_staticexport/config/index.html

and

	alkacon-documentation/documentation_staticexport/config/httpd.conf

the actual encoding in these files looks fine ... so is it just me doing
something wrong or is it a bug?

ruben






More information about the opencms-dev mailing list