IBM Support

PK72757; 6.1.0.19: SRVE0216E: post body contains less bytes than specified

Download


Abstract

The parameters of POST request might not be accessable with the specific security configuration.

Download Description

PK72757 resolves the following problem:

ERROR DESCRIPTION:

When an application accesses the http parameters of POST request, the following error might be caught.

SRVE0133E: An error occurred while parsing parameters. java.io.IOException: SRVE0216E: post body contains less bytes than specified by content-length is thrown when the security components reads the request with getInputStream() and not setting back the raw un-encoded post data.

This condition might happen when "Use available authentication data when an unprotected URI is accessed" checkbox is checked. This panel can be reached by navigating the admin console as follows:


1. Click Security > Secure administration and applications.
2. Under Authentication, expand Web security and click General settings.

USERS AFFECTED:
All users of IBM WebSphere Application Server V6.1 on Windows/Solaris/AIX/HP/Linux.

PROBLEM DESCRIPTION:
When "Use available authentication data when an unprotected URI is accessed" checkbox in Web security - General settings panel of Administrative Console is checked, a POST request towards unprotected URI may not be processed properly. When this condition occurs, the following error message is logged: SRVE0133E: An error occurred while parsing parameters. java.io.IOException: SRVE0216E: post body contains less bytes than specified by content-length

The cause of the issue is that WebContainer code doesn't restore byte stream which contains POST parameter once the data was taken by the security code.

RECOMMENDATION:

PROBLEM CONCLUSION:
With this fix, the http parameters of the POST requests are preserved.

The fix for this APAR is currently targeted for inclusion in Fix Pack 6.1.0.23 and 7.0.0.3.

Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

Please download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"8010","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK72757/readme.txt"}]
On
[{"DNLabel":"6.1.0.17-WS-WAS-IFPK72757","DNDate":"10/27/2008","DNLang":"US English","DNSize":"47132","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=6.1.0.17-WS-WAS-IFPK72757&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK72757/6.1.0.17-WS-WAS-IFPK72757.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK72757/6.1.0.17-WS-WAS-IFPK72757.pak"},{"DNLabel":"6.1.0.21-WS-WAS-IFPK72757","DNDate":"12/11/2008","DNLang":"US English","DNSize":"47562","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=6.1.0.21-WS-WAS-IFPK72757&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK72757/6.1.0.21-WS-WAS-IFPK72757.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK72757/6.1.0.21-WS-WAS-IFPK72757.pak"},{"DNLabel":"7.0.0.0-WS-WAS-IFPK72757","DNDate":"12/11/2008","DNLang":"US English","DNSize":"70159","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.0-WS-WAS-IFPK72757&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK72757/7.0.0.0-WS-WAS-IFPK72757.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK72757/7.0.0.0-WS-WAS-IFPK72757.pak"},{"DNLabel":"7.0.0.1-WS-WAS-IFPK72757","DNDate":"12/11/2008","DNLang":"US English","DNSize":"71888","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.1-WS-WAS-IFPK72757&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK72757/7.0.0.1-WS-WAS-IFPK72757.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK72757/7.0.0.1-WS-WAS-IFPK72757.pak"}]

Technical Support

Contact IBM Support using SR (http://www-306.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV(U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Security","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.1;7.0;6.1.0.21;6.1.0.19;6.1.0.17","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24021045