IBM Support

PM70685: EXCEPTION WHEN CALLING USERREGISTRY.GETUSERS(..) API WITH A SEARCH PATTERN LIKE "*"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In WebSphere Application Server Liberty Profile 8.5, when
    calling com.ibm.websphere.security.UserRegistry.getUsers
    (String, int) with a search pattern such as "*", a
    java.util.regex.PatternSyntaxException is returned.
    
    The same problem happens with
    com.ibm.websphere.security.UserRegistry.getGroups(String, int)
    API.
    

Local fix

  • A workaround is to change the search pattern from "*" to ".*"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A PatternSyntaxException is thrown      *
    *                      on Websphere Application Server         *
    *                      Liberty Profile,when using the star     *
    *                      (*) as a search Pattern for getUser     *
    *                      and getGroups methods.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A PatternSyntaxException is thrown when using the star (*) as
    the search Pattern on the User Registries. This exception is
    thrown when using the getUser and geGroups methods on the
    Websphere Application Server Liberty Profile.
    

Problem conclusion

  • The code has been updated so that Webpshere Application Server
    Liberty Profile can use the star (*) as a search pattern for
    the getUser and getGroups methods.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.0.1 Please refer to the Recommended Updates page
    for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • Replace the star (*) by a dot and star (.*).
    

Comments

APAR Information

  • APAR number

    PM70685

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-10

  • Closed date

    2012-10-10

  • Last modified date

    2012-10-10

  • 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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021