Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-29

WSDDDocument::ParseDocument doesn't error check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • current (nightly)
    • None
    • None
    • Operating System: Other
      Platform: Other
    • 24812

    Description

      WSDDDocument::ParseDocument(const AxisChar* sWSDD)

      This function won't return FAIL if the wsdd file has formatting errors
      (missing begin/end element tags) or even if the sWSDD pathname string
      is invalid (the wsdd file doesn't exist).
      This could all be easily fixed if the WSDDDocument:fatalError callback
      did something useful (its currently empty). Also, ::warning and ::error
      should probably also do something useful.

      Given that there's no way to pass the exception back to the user function
      (in this case ParseDocument), there will probably need to be some kind
      of error member in WSDDDocument that can be set in fatalError, and then
      checked later (something like in XMLStreamHandler).

      Attachments

        Activity

          People

            Unassigned Unassigned
            slang@mcs.anl.gov Sam Lang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: