You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Karol Siczek (Jira)" <ji...@apache.org> on 2020/01/02 14:20:00 UTC

[jira] [Created] (XALANJ-2626) Absolutizing Unix paths with multiple colons breaks them.

Karol Siczek created XALANJ-2626:
------------------------------------

             Summary: Absolutizing Unix paths with multiple colons breaks them.
                 Key: XALANJ-2626
                 URL: https://issues.apache.org/jira/browse/XALANJ-2626
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects.  Anybody can view the issue.)
    Affects Versions: 2.7.1
            Reporter: Karol Siczek
            Assignee: Gary D. Gregory


Hi,

recently we've noticed that if the XML source file we transform with Xalan 2.7.1 contains a colon in its path then we are getting bizarre errors similar to 
{noformat}
2019-12-25 06:21:17,213 INFO  .dev2_publishing_01_tmv1887 [de.telekom.phoenix.importer.NamespaceXslProcessor] [atg-xml-importer-thread] [Phoenix] [PUBLISHING_EXT_PHOENIX_IMPORTER] [NoUniqueCode] ImportFileData transformInMemory StreamSource(srcFile): /pkg/moip/phxa_dev2/share/delta/to_import/2019-12-25_06:21:16_import.xml

2019-12-25 06:21:17,213 INFO  .dev2_publishing_01_tmv1887 [de.telekom.phoenix.importer.NamespaceXslProcessor] [atg-xml-importer-thread] [Phoenix] [PUBLISHING_EXT_PHOENIX_IMPORTER] [NoUniqueCode] ImportFileData transformInMemory StreamResult(destFile): /pkg/moip/phxa_dev2/temp/1887_getCvList_12-25-2019-06-20-58-492.xml7821127400366028541NamespaceXslProcessor

2019-12-25 06:21:17,223 ERROR .dev2_publishing_01_tmv1887 [stderr] [atg-xml-importer-thread] [NoLogCategory] [NoMarker] [NoUniqueCode] (Location of error unknown)java.io.FileNotFoundException: /pkg/moip/phxa_dev2/share/delta/to_import/2019-12-25_0/svc/tmv1887/moip/phxa_dev2/6:21:16_import.xml (No such file or directory)
{noformat}

We checked that we do pass a correct path to the transformer but the path is somehow changed afterward. I have created a simple maven project to isolate the issue and I was able to do that. It seems that if a _systemId_ contains multiple colons then it is transformed to something broken, e.g. if the system id passed to getAbsoluteURI is {noformat}file:/pkg/moip/phxa_dev2/share/delta/to_import/2019-12-25_06:21:16_import.xml{noformat} then the result would be {noformat}file:/pkg/moip/phxa_dev2/share/delta/to_import/2019-12-25_0/svc/tmv1887/moip/phxa_dev2/6:21:16_import.xml{noformat}.

We believe it might be a bug at org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(String).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org