#2670 NAME attribute not required by DOM parser

Code_Cleanup
closed-fixed
jsr48-client
5
2013-12-13
2013-09-25
No

The DOM parser does not consider the NAME or CLASSNAME attribute required despite what is in DSP0203:

This has the potential of leading to IllegalArgumentExceptions when creating CIM objects without names or, even worse, null pointer exceptions within the DOM parser.

1 Attachments

Related

Bugs: #2694

Discussion

  • Dave Blaschke

    Dave Blaschke - 2013-09-25

    It should be noted that the SAX parser DOES consider these attributes mandatory:

        String name = pAttribs.getValue("NAME");
        if (name == null) throw new SAXException("NAME attribute not found!");
    
     
  • Dave Blaschke

    Dave Blaschke - 2013-09-25

    Patch sent for community review. During a 2 week period any exploiter may comment on the patch, request changes or turn it down completely (with good reason). For the time being the patch is part of the "Experimental" branch in CVS.

     
  • Dave Blaschke

    Dave Blaschke - 2013-09-25
    • status: open --> open-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-10-09
    • status: open-fixed --> pending-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-10-09

    The community review is completed and we received no substantial criticism. Therefore the patch has been approved and merged into the "HEAD" branch. The next release will pick it up.

     
  • Dave Blaschke

    Dave Blaschke - 2013-12-13
    • status: pending-fixed --> closed-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2013-12-13

    The patch was picked up by release 2.2.5 and will be closed.

     

Log in to post a comment.