Bug 1036819

Summary: [GSS] (6.2.x) Backport JacORB #904 CDRInputStream.read_string should handle 0 string size gracefully
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Shaun Appleton <sappleto>
Component: IIOPAssignee: Stefan Guilhen <sguilhen>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bmaxwell, cdewolf, cdolphy, myarboro, ncross, nziakova, rdickens, vtunka
Target Milestone: CR3   
Target Release: EAP 6.2.1   
Hardware: Unspecified   
OS: Unspecified   
URL: https://c.na7.visual.force.com/apex/Case_View?id=500A000000GZgBUIA1
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The function CDRInputStream.read_string mishandles an empty string, incorrectly caculating this as a length of zero (0), resulting in a marshall exception. The handling of empty strings has been corrected so that CDRInputStream.read_string now returns an empty string, avoiding the error which occurred previously.
Story Points: ---
Clone Of:
: 1052237 (view as bug list) Environment:
Last Closed: 2014-02-24 20:16:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1052237    
Bug Blocks: 1037716    

Description Shaun Appleton 2013-12-02 16:53:23 UTC
Backport  http://www.jacorb.org/bugzilla/show_bug.cgi?id=904
to jacorb in EAP 6.1.1  ie to jacorb-2.3.2-redhat-4.jar

See similar bz for EAP 6.0.0 https://bugzilla.redhat.com/show_bug.cgi?id=1036044

Comment 1 Nick Cross 2013-12-03 17:02:32 UTC
Backpatched with SHA b1debdd79b07d10307fcacb6f4934ce9ed2d8958

Comment 3 Vaclav Tunka 2014-01-28 15:52:23 UTC
This should be solved by 1037716. @Nick can you please confirm?

Comment 4 Nick Cross 2014-01-28 22:53:56 UTC
Yes this should be.

Comment 5 Russell Dickenson 2014-02-03 05:15:48 UTC
********
NEEDINFO
********

As this ticket fixes a customer issue, it needs to be noted in the JBoss EAP 6.2.1 Release Notes document. After reading through the history of this and related tickets, I have drafted some text. Please review it and confirm whether or not it is accurate.

Comment 6 Nick Cross 2014-02-03 09:13:26 UTC
"A QoS was added to allow CDRInputStream.read_string to interoperate with those ORBs that do not encode empty strings correctly."

Comment 7 Nikoleta Hlavickova 2014-02-04 11:45:49 UTC
Verified with EAP 6.2.1.CP.CR3.1