[
https://issues.apache.org/jira/browse/TUSCANY-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ant elder updated TUSCANY-1227:
-------------------------------
Affects Version/s: (was: C++-SCA-Next)
Fix Version/s: C++-SDO-Next
> FileException not thrown when schema file missing
> -------------------------------------------------
>
> Key: TUSCANY-1227
> URL: https://issues.apache.org/jira/browse/TUSCANY-1227
> Project: Tuscany
> Issue Type: Bug
> Components: C++ SDO
> Environment: PHP, Win32
> Reporter: Caroline Maynard
> Priority: Minor
> Fix For: C++-SDO-Next
>
>
> This regression occurred a few months back. When I do
> XSDHelper::defineFile("nonexistent.xsd"), Tuscany used to give me an
> SDOFileNotFoundException. Now it does not throw an exception. Instead it
> returns with a non-zero error count, and messages:
> 1 parse error(s) occurred when parsing the file 'xxx':
> 1. xmlSAXUserParseFile returned an error -1 ' in Command line code:1
> I'd really like the exception back, because it's confusing for end-users to
> get what looks like a parsing failure when the file is just not there.
> If necessary I will check the file stat in the php code before calling
> Tuscany and raise an exception directly, but I'm not sure I know exactly what
> the path spec is that libxml2 uses to find a relative file.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira