axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAMPART-358) Possible NullPointerException in RampartEngine.isSecurityFault(RampartMessageData)
Date Wed, 14 Nov 2012 14:56:12 GMT

    [ https://issues.apache.org/jira/browse/RAMPART-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497141#comment-13497141
] 

Hudson commented on RAMPART-358:
--------------------------------

Integrated in rampart-1.6 #251 (See [https://builds.apache.org/job/rampart-1.6/251/])
    RAMPART-358: Merged r1377230 to the 1.6 branch (the change requires Axiom 1.2.14). (Revision
1409185)

     Result = SUCCESS
veithen : 
Files : 
* /axis/axis2/java/rampart/branches/1_6
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/main/java/org/apache/rampart/RampartEngine.java
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/main/java/org/apache/rampart/util/RampartUtil.java
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java/org
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java/org/apache
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java/org/apache/rampart
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java/org/apache/rampart/util
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/java/org/apache/rampart/util/RampartUtilTest.java
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache/rampart
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache/rampart/util
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache/rampart/util/soap11-invalid-fault.xml
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache/rampart/util/soap11-security-fault.xml
* /axis/axis2/java/rampart/branches/1_6/modules/rampart-core/src/test/resources/org/apache/rampart/util/soap12-security-fault.xml

                
> Possible NullPointerException in RampartEngine.isSecurityFault(RampartMessageData)
> ----------------------------------------------------------------------------------
>
>                 Key: RAMPART-358
>                 URL: https://issues.apache.org/jira/browse/RAMPART-358
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.6.2
>            Reporter: Filippo Ortolan
>            Assignee: Andreas Veithen
>             Fix For: 1.7.0, 1.6.3
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> in RampartEngine class I get a NullPointerException in line 369 (method: isSecurityFault).
Seems that this line:
> if (faultCode.getTextAsQName().getNamespaceURI().equals(WSConstants.WSSE_NS)) {
> 				return true;
> 			}
> throws the exception because getTextAsQName() can return null and this should be handled.
> Solution:
> QName faultCodeQName = faultCode.getTextAsQName();
> if (faultCodeQName == null) {
> // handle exception
>    return false; // ?
> } else {
>    if (faultCodeQName.getNamespaceURI().equals(WSConstants.WSSE_NS)) {
>       return true;
>    }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message