[ 
https://issues.apache.org/jira/browse/WSS-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908848#action_12908848
 ] 

Beth Ayres commented on WSS-243:
--------------------------------

I am using the standard WSS4J Base64 implementation.  I am not free to choose 
another implementation in this situation.  Here is the stack.  It is in this 
decode function that the problem occurs.

Thread [Thread-6] (Suspended (breakpoint at line 281 in Base64))        
        Base64.decode(String) line: 281 
        UsernameToken.doPasswordDigest(String, String, String) line: 478        
        UsernameToken.setPassword(String) line: 449     
        WSSecUsernameToken.prepare(Document) line: 171  
        WSSecUsernameToken.build(Document, WSSecHeader) line: 226       
        UsernameTokenAction.execute(WSHandler, int, Document, RequestData) 
line: 58     
        Wss4jHandler(WSHandler).doSenderAction(int, Document, RequestData, 
Vector, boolean) line: 202   
        Wss4jHandler.doSenderAction(int, Document, RequestData, Vector, 
boolean) line: 177      
        Wss4jSecurityInterceptor.secureMessage(SoapMessage, MessageContext) 
line: 496   
        
Wss4jSecurityInterceptor(AbstractWsSecurityInterceptor).handleRequest(MessageContext)
 line: 188 
        WebServiceTemplate.doSendAndReceive(MessageContext, 
WebServiceConnection, WebServiceMessageCallback, WebServiceMessageExtractor) 
line: 539      
        WebServiceTemplate.sendAndReceive(String, WebServiceMessageCallback, 
WebServiceMessageExtractor) line: 499      
        WebServiceTemplate.doSendAndReceive(String, Transformer, Source, 
WebServiceMessageCallback, SourceExtractor) line: 454  
        WebServiceTemplate.sendSourceAndReceiveToResult(String, Source, 
WebServiceMessageCallback, Result) line: 400    
        WebServiceTemplate.sendSourceAndReceiveToResult(Source, 
WebServiceMessageCallback, Result) line: 391    
        SoapThread.run() line: 433      


> Can't use Password Digest on Z/OS
> ---------------------------------
>
>                 Key: WSS-243
>                 URL: https://issues.apache.org/jira/browse/WSS-243
>             Project: WSS4J
>          Issue Type: Bug
>          Components: WSS4J Core
>    Affects Versions: 1.5.8
>         Environment: Z/OS
>            Reporter: Beth Ayres
>            Assignee: Ruchith Udayanga Fernando
>
> Base64.decode doesn't account for EBCDIC encoding.
> line 281:          byte[] base64Data = encoded.getBytes();
> results in an array of garbage.
> Then, line 307:          b1 = base64Alphabet[base64Data[dataIndex++]];
> causes an ArrayIndexOutOfBoundsException.
> The result is that the PasswordDigest is blank.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscr...@ws.apache.org
For additional commands, e-mail: wss4j-dev-h...@ws.apache.org

Reply via email to