IBM Support

PK73126: SOCKS5 AUTHENTICATION FAILS Because of wrong encoding

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • Error Message:
    java.net.SocketException: SOCKS : authentication failed, General
    SOCKS server
    .
    Stack Trace:
    java.net.SocketException: SOCKS : authentication failed, General
    SOCKS server failure
        at
    java.net.SocksSocketImpl.authenticate(SocksSocketImpl.java:216)
        at
    java.net.SocksSocketImpl.connect(SocksSocketImpl.java:386)
        at java.net.Socket.connect(Socket.java:479)
        at java.net.Socket.connect(Socket.java:429)
        at java.net.Socket.<init>(Socket.java:336)
        at java.net.Socket.<init>(Socket.java:152)
    .
    This problem is seen on Java 142 on z/OS and not Java 5 and 6 on
    z/OS.
    
    
    Java 1.4.2 improperly expects arguments to the authenticate
    function in ISO-8859-1 rather than the correct platform
    encoding. (It is java's responsibility to convert the strings as
    appropriate.)
    
    Java 5.0 and 6 are not affected. (They correctly expect the
    input in platform encoding.)
    

Local fix

  • Users should be passing their credentials in native encoding,
    EBCDIC on z/OS, and Java should do the conversion from native
    encoding to ISO-8859-1.
    
    As a workaround users of SOCKS5 authentication can pass their
    credentials to Java in an ISO-8859-1 encoding, Until such time
    as there is a fix for this APAR.
    
    Java 5.0 and 6 are not affected by this issue and correctly
    interpret the input using platform encoding.
    

Problem summary

  • This problem has been fixed in Java 5 (and later) but will not
    be fixed in Java 142. In order to use SOCKS5 authentication with
    Java 142 on z/OS please pass username and password in ISO-8859-1
    encoding.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK73126

  • Reported component name

    JAVA(1.3/1.4 CO

  • Reported component ID

    5648C9800

  • Reported release

    42A

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2008-10-02

  • Closed date

    2010-03-19

  • Last modified date

    2010-03-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA(1.3/1.4 CO

  • Fixed component ID

    5648C9800

Applicable component levels

  • R42A PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.4.2","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022