[Bug 1020] New: Null String encoding is not following strict IIOP
[email protected] Fri, 04 Sep 2015 08:57:08 +0000
| Newsgroups | gmane.comp.corba.jacorb.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
http://www.jacorb.org/bugzilla/show_bug.cgi?id=1020
Bug ID: 1020
Summary: Null String encoding is not following strict IIOP
Product: JacORB
Version: 3.5
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P5
Component: ORB
Assignee: [email protected]
Reporter: [email protected]
When encoding zero length String, Jacorb is creating a String of length one
with the terminating zero character.
However, when you switch on the null String encoding
(jacorb.interop.null_string_encoding=on), it generates a zero length String,
that can break the server ORB which can not unmarshall it.
in CDROutputStream, encoding of a zero length stream:
if (valueLength == 0)
{
// Blank string; just write size and terminator. Don't need to
// align here as these methods will do it for us.
write_long( 1 );
write_octet( (byte)0 );
}
null string encoding:
if (nullStringEncoding)
{
write_long(0);
return;
}
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
jacorb-bugs mailing list
[email protected]
https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-bugs