Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1227

FileException not thrown when schema file missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • C++-SDO-Next
    • C++ SDO
    • None
    • PHP, Win32

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cem Caroline Maynard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: