[
https://issues.apache.org/jira/browse/XERCESC-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Bertoni resolved XERCESC-1883.
------------------------------------
Resolution: Invalid
The space character is never valid within a URL. You will need to encode it as
%20 instead.
> Xinclude does not support space when the full path is expanded
> --------------------------------------------------------------
>
> Key: XERCESC-1883
> URL: https://issues.apache.org/jira/browse/XERCESC-1883
> Project: Xerces-C++
> Issue Type: Bug
> Components: XInclude
> Affects Versions: 3.0.1
> Environment: Windows
> Reporter: Ramakanta Pangeni
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Inside the function
> void XMLUri::initializePath(const XMLCh* const uriSpec)
> a check is made for the valid characters and the space is not included as a
> valid charater. Hence when the following xml is placed inside "c:\my path
> with space" directory
> <?xml version="1.0" encoding="utf-8"?>
> <objConf xmlns:xi="http://www.w3.org/2001/XInclude">
> <xi:include href="Constants.xml"/>
> ...
> the following error is reported:
> path contains invalid character ' '
> The solution is either to include the chSpace in the valid path character
> list (PATH_CHARACTERS) or add an extra condition to the "else if" part like
> this:
> else if (!isUnreservedCharacter(testChar) &&
> !isPathCharacter(testChar) &&
> testChar != chSpace )
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]