Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349811 - XmlSerializationUtils.deserialize(String) doesn't work
Summary: XmlSerializationUtils.deserialize(String) doesn't work
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Smila (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Peter Wissel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-20 09:01 EDT by thomas menzel CLA
Modified: 2022-07-07 11:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomas menzel CLA 2011-06-20 09:01:17 EDT
the root problem is that the .(de)serialize(byte[]) introduces another wrapper object that is part of the serialized bytes[] and expect that also to be there when deserializing.

this has the effect the a serialize2string() cant be fed into desrialize(String) which makes no sense at all...
Comment 1 thomas menzel CLA 2011-06-20 09:41:48 EDT
so far i have impel'ed a simple workaround that doesnt cover the attachments.

imo the API should look and behave like this:
- by default attachments are not serialized/deserialized - we still put their names in as it is now the case when using searialize2string()
- there are overloads to also do this with attachments. in that case they are contained as base64 with in the XML. i know this is verbose but this makes most sense and what users would expect.

for internal use we could also provide the better performing serialization that is in place ATM (rev 1128).
Comment 2 Igor Novakovic CLA 2011-07-01 04:14:21 EDT
Since Thomas provided the workaround I reduced the severity to minor.
Comment 3 Andreas Weber CLA 2014-11-11 04:56:48 EST
set to WONTFIX cause workaround seems to be sufficient.
Comment 4 Andreas Weber CLA 2015-03-19 06:59:27 EDT
closed