Petals CDK

Potential NPE detected in "cdk-core" part ...

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 5.1.1
  • Fix Version/s: 5.1.2
  • Component/s: runtime
  • Security Level: Public
  • Description:
    Hide

    According to JBI specification (version 1.0; page 186/226) the "getContent()"
    methode of the "NormalizeMessage" class may return "null" value.
    But in the "SourceUtilImpl" class of package "ow2.petals.component.framework.util"
    this situation is not checked.
    In practice, A usecase based on bc-soap binding component that receives a SOAP
    message with an empthy body part (allowed according WS-I Basic profile 2.0 and
    other related specifications) will throw a NPE due to a NormalizeMessage with
    empty content.

    temp fix on branch version : see commit n° 16147=>16148, in tdejean's petals sandbox
    folder

    Show
    According to JBI specification (version 1.0; page 186/226) the "getContent()" methode of the "NormalizeMessage" class may return "null" value. But in the "SourceUtilImpl" class of package "ow2.petals.component.framework.util" this situation is not checked. In practice, A usecase based on bc-soap binding component that receives a SOAP message with an empthy body part (allowed according WS-I Basic profile 2.0 and other related specifications) will throw a NPE due to a NormalizeMessage with empty content. temp fix on branch version : see commit n° 16147=>16148, in tdejean's petals sandbox folder
  • Environment:
    all (?) . use soapui to generate soap message and send it to an internal petals service engine

People

Dates

  • Created:
    Tue, 26 Oct 2010 - 14:52:43 +0200
    Updated:
    Thu, 4 Nov 2010 - 14:26:23 +0100
    Resolved:
    Thu, 4 Nov 2010 - 14:26:23 +0100