<html>
    <head>
      <base href="http://www.jacorb.org/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Null String encoding is not following strict IIOP"
   href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1020">1020</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Null String encoding is not following strict IIOP
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>JacORB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ORB
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jacorb-bugs@lists.spline.inf.fu-berlin.de
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david.shay@externe.bnpparibas.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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;
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>