Menu

#2167 Local intf client abort abnormally on enum filter syntax err

Stability
closed-fixed
sfcc (103)
5
2011-06-04
2011-03-15
No

Local interface using SFCC exit abnormally when enumerate filter query contains syntax errors. With the same syntax errors, the CIM-XML interface does not exit abnormally but return a valid error response.

Try the following query with syntax errors:
"SELET * FROM Cim_ComputerSystem"
"SELECT FROM Cim_ComputerSystem"
"SELECT * FRM Cim_ComputerSystem"

Upon review of the code, the SFCC execQuery function calls "abort" when getFromClassList function fails. Abort causes the client application to exit abnormally.

Our proposed fix is to check the status from call to parseQuery and return the appropriate error response (instead of abort). The fix provides similar behavior to the XML interface.

Discussion

  • Michael Chase-Salerno

    • assigned_to: buccella --> mchasal
     
  • Michael Chase-Salerno

    CVS committed patch

     
  • Michael Chase-Salerno

    committed to CVS HEAD and git master

     
  • Michael Chase-Salerno

    • status: open --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 60 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.