KamoCRM

Targeted conversion updates, so a detached ImgDat save cannot abort conversion

Fixkamo-shared-library
Shipped
5 ஆகஸ்ட், 2026 அன்று 8:02 PM UTC
Author
Kamo
Commit
bf84940

Conversion runs on a virtual thread against a DETACHED ImgDat. save() therefore merges an instance whose LAZY `images` collection is no longer the managed one, and Hibernate aborts with 'A collection with cascade=all-delete-orphan was no longer referenced by the owning entity instance' — every upload failed at the mark-converted step, before thumbnails were generated, so documents landed with isConverted=false and no preview. The catch block then hit the same error while trying to record the reason, which is why conversionError stayed null. Adds markConverted / markConvertedWithRendition / markConversionError alongside the markThumbAvailable this repository already had for the identical reason.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing