cancel
Showing results for 
Search instead for 
Did you mean: 

Create Attachment has no reset on Inputstream

turael
Champ in-the-making
Champ in-the-making
Hello friends,

I found something weired. I save some Attachments to activiti, I write some custom protocol (about that user action) to another database and at the end I complete that usertask.
In my own protocol are the attachements which I saved in activiti before and if I try to read my protocol, all the attachments has 0 bytes - in activiti everything is fine.
I didnt found a reset on my Inputstream behind the createAttachment Method of TaskServiceImpl - is that correct? or is the reset only missing?

I think there should be a reset in the CreateAttachmentCmd - or maybe in the IoUtil.readInputStream?
Hope someone can explain me that situation Smiley Happy

best wishes

turael
1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

Not sure I understand what you are asking.
Please provide a unit test to demonstrate.

Thanks,

Greg