You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Adam Lewis (JIRA)" <xe...@xml.apache.org> on 2006/01/27 19:43:37 UTC

[jira] Created: (XERCESC-1557) SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename

SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename
-------------------------------------------------------------------------------------

         Key: XERCESC-1557
         URL: http://issues.apache.org/jira/browse/XERCESC-1557
     Project: Xerces-C++
        Type: Bug
  Components: SAX/SAX2  
    Versions: 2.7.0    
 Environment: Windows 2000, Visual Studio 2003 .NET
    Reporter: Adam Lewis


When calling parseFirst with a path or filename that contains spaces it is incorrectly parsed and throws an exception when it can't find the file. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (XERCESC-1557) SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1557?page=all ]
     
David Bertoni resolved XERCESC-1557:
------------------------------------

    Resolution: Invalid

A system ID is intended to be a URL, and a legal URL cannot have a space in it.  I will update the documentation for the parse...() functions to make this explicit.  Currently, the documentation uses the term "path," which is misleading at best.

If you want to use a file name, you can use a LocalFileInputSource and use the parse member functions that accept an InputSource.

> SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename
> -------------------------------------------------------------------------------------
>
>          Key: XERCESC-1557
>          URL: http://issues.apache.org/jira/browse/XERCESC-1557
>      Project: Xerces-C++
>         Type: Bug
>   Components: SAX/SAX2
>     Versions: 2.7.0
>  Environment: Windows 2000, Visual Studio 2003 .NET
>     Reporter: Adam Lewis

>
> When calling parseFirst with a path or filename that contains spaces it is incorrectly parsed and throws an exception when it can't find the file. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESC-1557) SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename

Posted by "Adam Lewis (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1557?page=comments#action_12364261 ] 

Adam Lewis commented on XERCESC-1557:
-------------------------------------

It is in fact a URL, but is it incorrect to think that xerces should interpret the space as %20? It makes sense that if it comes across a space in the URL that it would add the %20 instead of throwing.

> SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename
> -------------------------------------------------------------------------------------
>
>          Key: XERCESC-1557
>          URL: http://issues.apache.org/jira/browse/XERCESC-1557
>      Project: Xerces-C++
>         Type: Bug
>   Components: SAX/SAX2
>     Versions: 2.7.0
>  Environment: Windows 2000, Visual Studio 2003 .NET
>     Reporter: Adam Lewis

>
> When calling parseFirst with a path or filename that contains spaces it is incorrectly parsed and throws an exception when it can't find the file. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XERCESC-1557) SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESC-1557?page=comments#action_12364284 ] 

David Bertoni commented on XERCESC-1557:
----------------------------------------

As I said in my previous comment, it's not a legal URL, because a legal URL cannot have a space character in it.  Browsers have been notoriously forgiving about that sort of thing, but Xerces-C is not.

If you're really referring to a local file, it's better to use a LocalFileInputSource instance.

On the other hand, it would be interesting to know if the URL-support code in Xerces-C can actually handle an encoded URL.  I'm not sure it's been tested.

> SAXParser parseFirst(char*,XMLPScanToken&) can not handle spaces in the path/filename
> -------------------------------------------------------------------------------------
>
>          Key: XERCESC-1557
>          URL: http://issues.apache.org/jira/browse/XERCESC-1557
>      Project: Xerces-C++
>         Type: Bug
>   Components: SAX/SAX2
>     Versions: 2.7.0
>  Environment: Windows 2000, Visual Studio 2003 .NET
>     Reporter: Adam Lewis

>
> When calling parseFirst with a path or filename that contains spaces it is incorrectly parsed and throws an exception when it can't find the file. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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