#2724 Listener should verify XML media type

pending-fixed
jsr48-client
5
2014-04-01
2014-02-17
No

The Java CIM Client's listener needs to make sure it is receiving an XML request by verifying the Content-Type, if present in the HTTP header, is either application/xml or text/xml. HTTP headers received from IBM's CIMOMs are as follows:

OpenPegasus-

HOST: 1.2.3.4:5999
CIMExportMethod: ExportIndication
Content-Type: application/xml; charset="utf-8"
content-length: 0000000971
CIMExport: MethodRequest
TE: chunked, trailers

SFCB-

CIMExport: MethodRequest
Connection: Keep-Alive, TE
Content-type: application/xml; charset="utf-8"
Expect: 100-continue
CIMExportMethod: ExportIndication
CIMProtocolVersion: 1.0
Content-Length: 1154
Host: 1.2.3.4:5999
Accept: */*
1 Attachments

Discussion

  • Dave Blaschke

    Dave Blaschke - 2014-02-18
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -12,8 +12,7 @@
     SFCB-
    
         CIMExport: MethodRequest
    -    Connection: Keep-Alive
    -    TE
    +    Connection: Keep-Alive, TE
         Content-type: application/xml; charset="utf-8"
         Expect: 100-continue
         CIMExportMethod: ExportIndication
    
     
  • Dave Blaschke

    Dave Blaschke - 2014-02-18
    • status: open --> open-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2014-02-18

    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 - 2014-03-03
    • status: open-fixed --> pending-fixed
     
  • Dave Blaschke

    Dave Blaschke - 2014-03-03

    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.

     

Log in to post a comment.