IBM Support

PQ25655: WRONG PROTOCOL RETURNED WITH SERLVET USING HTTPSERVLETREQUEST GETSCHEME METHOD

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • User has written servlet which should return the protocol
    of the request (http or https or ftp), however when running
    under SSL connection, the servlet returns 'http' instead
    of 'https'.
    Cust servlet:
      public static String getURI(HttpServletRequest req)
      {
       String scheme = req.getScheme();  //returns http always
       String name = req.getServerName();
       return scheme+"://+name;
      }
    From the Java API documentation available for javax.servlet.http
    package which contains HttpServletRequest
    (ref: http://jserv.javasoft.com/products/java-server/documentati
     on/webserver1.1/apidoc/javax.servlet.http.HttpServletResponse.h
     tml) link to the ServletRequest which it is extended from
    the getScheme() indicates it should return 'http', 'https', or
    'ftp'.
    Recreation servlet forwarded to L3(LP).
    Note: also tested with WAS 2.0 on NT and same failure
          occurred.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of SSL with ServletExpress on      *
    *                 OS/390.                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: The java function getScheme() returns   *
    *                      http as the type of request instead of  *
    *                      https when the request is sent to a     *
    *                      servlet over an SSL connection.         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Whenever an OS/390 webserver with ServletExpress and SSL
    enabled is started, method getScheme returns http as the
    request scheme value instead of the expected value of https.
    

Problem conclusion

Temporary fix

Comments

  • This problem is fixed in the WebSphere Application Server
    releases.
    

APAR Information

  • APAR number

    PQ25655

  • Reported component name

    DGW/WAS OS/390

  • Reported component ID

    5697D4300

  • Reported release

    100

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    1999-04-01

  • Closed date

    1999-10-14

  • Last modified date

    1999-10-14

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

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

Fix information

Applicable component levels

  • R100 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"100","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"100","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
14 October 1999