Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002823 [Hessian] minor always 08-05-08 10:23 08-13-08 15:50
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.1 Product Version
  Product Build
Summary 0002823: hessian 2 vector length
Description (rep by Niclas Olofsson)


x6e is followed by the int production. So a length of 0 would be

  x6e x90

Or

  x6e I(cap-i) b3 b2 b1 b0

The int production encodes the number of bytes.

The java implementation uses this in Hessian2Output.

        if (length < 0) {
        } else if (length < 0x100) {
            _buffer[_offset++] = (byte) (LENGTH_BYTE);
            _buffer[_offset++] = (byte) (length);
        } else {
            _buffer[_offset++] = (byte) ('l');
            _buffer[_offset++] = (byte) (length >> 24);
            _buffer[_offset++] = (byte) (length >> 16);
            _buffer[_offset++] = (byte) (length >> 8);
            _buffer[_offset++] = (byte) (length);
        }

That has to be a bug, right? Also, all examples about this is wrong in
the spec .. but the grammar spec in the beginning of the spec is
correct. However, using that encoding will not work with the server.

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003328)
ferg
08-13-08 15:50

hessian/3bh-
 

- Issue History
Date Modified Username Field Change
08-05-08 10:23 ferg New Issue
08-13-08 15:50 ferg Note Added: 0003328
08-13-08 15:50 ferg Assigned To  => ferg
08-13-08 15:50 ferg Status new => closed
08-13-08 15:50 ferg Resolution open => fixed
08-13-08 15:50 ferg Fixed in Version  => 3.2.1


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker