You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Caroline Maynard (JIRA)" <tu...@ws.apache.org> on 2007/04/24 14:14:15 UTC

[jira] Created: (TUSCANY-1227) FileException not thrown when schema file missing

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
    Affects Versions: Cpp-current
         Environment: PHP, Win32
            Reporter: Caroline Maynard
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


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