Menu

#2558 SFCB should reject empty <VALUE> in most instances

pending-fixed
sfcb (1090)
5
2012-12-13
2012-10-30
No

According to DSP0201:

5.2.3.1 - VALUE
The VALUE element is used to define a single (non-array), non-reference, non-NULL CIM property value,
CIM qualifier value, CIM method return value, or CIM method parameter value.

Currently, SFCB allows for empty VALUE elements, giving them a CMPI_goodValue state. The spec allows for empty VALUE elements for the string type (the value becomes a zero-length string), but not for scalar types. The current implementation in SFCB, causes a problem, since both empty and 0 for a scalar type are the same.

The CIMType or ParamType attribute of the parent (or grandparent) tag can be checked for the type of VALUE.

Discussion

  • Chris Buccella

    Chris Buccella - 2012-12-12

    patch for 1.3

     
  • Chris Buccella

    Chris Buccella - 2012-12-13

    committed to HEAD

     
  • Chris Buccella

    Chris Buccella - 2012-12-13
    • status: open --> pending-fixed
     
  • Chris Buccella

    Chris Buccella - 2012-12-13

    pushed to git master

     

Log in to post a comment.