bug #9238
pure entities in DerivateDTO.derivates may cause LIEs
100%
Description
this request http://int.e-taxonomy.eu/cdmserver/integration_reference/portal/occurrence/89d36e79-3e80-4468-986e-411ca391452e/derivateHierarchy.json for example ends in a LazyInitializationException
The problem here is that the response object for the derivateHierarchy is a FieldUnitDTO which is not a clean DTO but contains the hierarchy as field derivates
which contain the specimenTypeDesignations
as cdm entitiy which brings the whole derivation graph.
Related issues
Associated revisions
ref #9238 quick fix at least for the test data in reference_int Glenodinium apiculatum
ref #9238 replacing entitiy by SpecimenTypeDesignationDTO in DerivateDTO
ref #9238 extending SpecimenTypeDesignationDTO with more fields and associated DTOs, introducing ReferenceDTO, supressing unwanted and dangerous fields of RegistrationDTO
ref #9238 removing quick fix allied in 4d6b5667 and adapting config for json serialization
History
#1 Updated by Andreas Kohlbecker 5 months ago
- Subject changed from portal/occurrence/{uuid}/derivateHierarchy service has great potential for LIEs to pure entities in DerivateDTO.derivates may cause LIEs
this issue is problematic also in the context of other controller methods where DerivateDTO is being involved.
Adapting the ticket subject accordingly.
#2 Updated by Andreas Kohlbecker 5 months ago
- % Done changed from 0 to 20
The introduction of the SpecimenTypeDesignationDTO causes a couple problems since this dto is quite incomplete so far.
#3 Updated by Andreas Kohlbecker 5 months ago
- Status changed from New to Resolved
- % Done changed from 20 to 50
this should be fully solved now. Ticket can be closed as long as no further problems are popping up during the testing.
#4 Updated by Andreas Kohlbecker 3 months ago
- Related to task #9252: Harmonize SpecimenOrOberservationBase related DTOs added
#5 Updated by Andreas Kohlbecker 3 months ago
- Status changed from Resolved to Closed
- % Done changed from 50 to 100