Test Case attachments

Dom Barker, modified 11 Years ago.

Test Case attachments

Youngling Posts: 5 Join Date: 9/6/12 Recent Posts
Hi Guys,

Getting a:

Error Message: #{bean.saveIndividualWrapper}: org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into K_ATTACHMENT_REF (VERSION, UUID, KL__ID) values (?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

Error when trying to save changes to replace an attachment on a test case.

Running:
3.6.10 - Build 143 (2012-08-27 10:26:45)

Create new test case
Add attachment to case
Save case
Return to Maintain test cases
Edit the test case just created
Remove the attachment just uploaded
Upload a new attachment
Save
->Get a Concurrent modification conflict
Save
Save again (without this step no attachment is saved if you return to Maintain test cases and go back into this case, also possibly an issue, but it does mean we can use this as a workaround as reattaching a new attachment works if we do this)
*Error occurs here*

Kind regards

Dom
thumbnail
Patrick Reilly, modified 11 Years ago.

RE: Test Case attachments

Padawan Posts: 71 Join Date: 2/23/11 Recent Posts
Hi Dom,

thanks for the bug report!

I have been able to reproduce this problem. It seems to only happen when trying to simultaniously add and remove attachments, so a workaround could be to remove the attachments to be deleted, save and then add the new attachments.

We hope to have this fixed for the next version of Klaros!

Thanks again!

Regards,
Patrick
thumbnail
Torsten Stolpmann, modified 11 Years ago.

RE: Test Case attachments

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Fixed with the 3.6.11 release.