Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006477 [Hessian] feature always 09-27-22 00:55 10-03-22 07:21
Reporter vj_msu View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.63
  Product Build
Summary 0006477: Hessian 4.0.66 Serialize Object with Calendar would fail on deserialization if references are used
Description If you try to serialize and de-serialize an object with a Calendar instance the de-serialization will fail if references are used. This is because the `Calendar` instance will be replaced with `CalendarHandle`. During de-serialization the index of referenced objects is wrong (real index + 1 for example) because during `Hessian2Output#replaceRef` the `_refCount` will be be unchanged although the refs size will be decreased.

<code>
private static class TestUser implements java.io.Serializable {
        private final String name;
        private final Calendar lastSeen;
    }
</code>

Sample Test File in Github Repo: https://github.com/MCMicS/hessian/blob/a1d0b50eca6c68d18439775f281278c2bc44e975/test/com/caucho/hessian/io/SerializerDeserializerTest.java#L14 [^]

maybe simlar to issues:
- http://bugs.caucho.com/view.php?id=4069 [^]
- http://bugs.caucho.com/view.php?id=4430 [^]
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0007103)
vj_msu
09-27-22 00:57

Will fail for all object with `writeReplace` methods where original instance will be replaced with other instances
 

- Issue History
Date Modified Username Field Change
09-27-22 00:55 vj_msu New Issue
09-27-22 00:56 vj_msu Issue Monitored: vj_msu
09-27-22 00:57 vj_msu Note Added: 0007103
10-03-22 07:21 EdgarWelch Note Added: 0007104
11-14-23 17:36 ferg Note Deleted: 0007104


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