You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Bernhard Roider (JIRA)" <ji...@apache.org> on 2007/08/07 16:59:59 UTC

[jira] Created: (RAMPART-66) SCTIssuer gets NPE if addRequestedUnattachedRef or addRequestedAttachedRef in SCTIssuerConfig is set to false

SCTIssuer gets NPE if addRequestedUnattachedRef or addRequestedAttachedRef in SCTIssuerConfig is set to false
-------------------------------------------------------------------------------------------------------------

                 Key: RAMPART-66
                 URL: https://issues.apache.org/jira/browse/RAMPART-66
             Project: Rampart
          Issue Type: Bug
          Components: rampart-trust
    Affects Versions: 1.1, 1.2, 1.3
         Environment: all
            Reporter: Bernhard Roider


if addRequestedUnattachedRef or addRequestedAttachedRef  in SCTIssuerConfig is set to false
the following lines could lead to a NPE:

sctToken.setUnattachedReference(reqAttachedRef.getFirstElement());
sctToken.setAttachedReference(reqAttachedRef.getFirstElement());

P.S.: a second bug is in the lines above. The unattachedReference gets a reqattachedRef. This should be
a reqUnattachedRef.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (RAMPART-66) SCTIssuer gets NPE if addRequestedUnattachedRef or addRequestedAttachedRef in SCTIssuerConfig is set to false

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruchith Udayanga Fernando resolved RAMPART-66.
----------------------------------------------

    Resolution: Fixed

Thanks for pointing these issues out!
Fixed in both trunk and 1.3 branch :
http://svn.apache.org/viewvc?view=rev&rev=563704

> SCTIssuer gets NPE if addRequestedUnattachedRef or addRequestedAttachedRef in SCTIssuerConfig is set to false
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-66
>                 URL: https://issues.apache.org/jira/browse/RAMPART-66
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-trust
>    Affects Versions: 1.1, 1.2, 1.3
>         Environment: all
>            Reporter: Bernhard Roider
>
> if addRequestedUnattachedRef or addRequestedAttachedRef  in SCTIssuerConfig is set to false
> the following lines could lead to a NPE:
> sctToken.setUnattachedReference(reqAttachedRef.getFirstElement());
> sctToken.setAttachedReference(reqAttachedRef.getFirstElement());
> P.S.: a second bug is in the lines above. The unattachedReference gets a reqattachedRef. This should be
> a reqUnattachedRef.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.