Duplicate Attachements while in debug mode
------------------------------------------
Key: AXIS-2629
URL: https://issues.apache.org/jira/browse/AXIS-2629
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Reporter: Brian McDonald
Here are the mainling list links to the original bugs reported against axis 1.1:
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200305.mbox/[EMAIL
PROTECTED]
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200306.mbox/[EMAIL
PROTECTED]
This was the proposed solution:
http://marc.theaimsgroup.com/?l=axis-dev&m=105673824931414&w=2
This solution does not work (at least not any longer) because the hash used to
determine uniquenes of attachments is the hasCode on the DataHandler object
(AttachmentsImpl.createAttachmentPart). A new DataHandler object is created
each time seralize is called, so the DataHandler object will always be unique.
You need to check that the value object passed into the seralizer (which in
turn is passed into the Source subclass which is passed into the DataHandler
constructor is unique. This is difficult to do at the moment because the
original value object usually isn't stored in the Source object, but rather
it's resulting bytes are stored.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]