PQ56852: GETREMOTEUSER() METHOD CALL RETURNS NULL

 A fix may be available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
When calling the method getRemoteUser() in WebSphere Application
Server V4.0.1 for z/0S and OS/390, a null value is returned.
According to the servlet 2.2 API, this method should return
the userid entered when the user logged in.
Local fix
call the method getUserPrincipal().getName()
Problem summary
****************************************************************
* USERS AFFECTED: All Users of the WebSphere Application       *
*                 Server Version V4.0.1 for z/OS and OS/390    *
*                 may be affected.                             *
****************************************************************
* PROBLEM DESCRIPTION: getRemoteUser() method returns null.    *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When the getRemoteUser() method is called in WebSphere
Application Server Version V4.0.1 for z/OS and OS/390, a null
value is always returned. Per the Servlet 2.2 Specification,
getRemoteUser()in class HttpServletRequest should return the
login ID of the user making this request, if the user has been
authenticated, or null if the user has not been authenticated.
Problem conclusion
The getRemoteUser() method for HttpServletRequest class is
changed to return the proper value.
 If the user is not authenticated, then null is returned.
 If the user is authenticated, then the login id is returned,
  except when the login id is the System Default ID.
 If the user is authenticated and the login id is the System
  Default ID, null is returned. The System Default ID is
  optionally defined by the WebAuth.UnauthenticatedUserSurrogate
  property in the webcontainer.conf file. If the property is not
  defined, then the id of the Web server is used as the System
  Default ID.

This change affects COMPID 5655A9800 R401 for z/OS and OS/390.
The code changes are stored in CMVC under defect PQ56852.

401Y
EJSJWCWC

* Cross Reference between External and Internal Names
Temporary fix Comments
APAR information
APAR number PQ56852
Reported component name WEBSPHERE OS/39
Reported component ID 5655A9800
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-01-18
Closed date 2002-04-12
Last modified date 2002-05-02

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
EJSJWCWC          

Fix information
Fixed component name WEBSPHERE OS/39
Fixed component ID 5655A9800

Applicable component levels
R401 PSY UQ65118    UP02/04/26 P F204

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ56852
IBM Group: Software Group
Modified date: May 2, 2002