CancelTarget problem when unmarshalling

Brent Putman putmanb at georgetown.edu
Tue Feb 4 14:04:35 EST 2014


On 2/4/14 6:55 AM, Massimiliano Masi wrote:
> Hi All, 
>
> I just downloaded the 2.6.1 version of opensaml. I am implementing a
> WS-Trust cancel target, but I have troubles unmarshalling it. This code: 
>
>
> ct.setUnknownXMLObject(ass);
>

I took a quick look.  It's a bug.  This method in CancelTargetImpl isn't
assigning the argument to the appropriate variable:

public void setUnknownXMLObject(XMLObject unknownObject) {
    prepareForAssignment(unknownChild, unknownObject);
}


This was contributed code and it's not very well tested (nor widely used).

You can easily fix locally if you're building OpenSAML (at least
java-openws) from source. It should be:

    unknownChild = prepareForAssignment(unknownChild, unknownObject);



Also, please open a bug report so it will get fixed.

Thanks,
Brent



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20140204/d015dd51/attachment.html 


More information about the dev mailing list