Project

General

Profile

bug #9238

pure entities in DerivateDTO.derivates may cause LIEs

Added by Andreas Kohlbecker about 2 months ago. Updated 17 days ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib-remote
Target version:
Start date:
10/02/2020
Due date:
% Done:

100%

Severity:
critical
Found in Version:

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

Related to Edit - task #9252: Harmonize SpecimenOrOberservationBase related DTOs Closed 10/14/2020

Associated revisions

Revision 4d6b5667 (diff)
Added by Andreas Kohlbecker about 2 months ago

ref #9238 quick fix at least for the test data in reference_int Glenodinium apiculatum

Revision e2334714 (diff)
Added by Andreas Kohlbecker about 2 months ago

ref #9238 replacing entitiy by SpecimenTypeDesignationDTO in DerivateDTO

Revision 1d9ed98e (diff)
Added by Andreas Kohlbecker about 2 months ago

ref #9238 extending SpecimenTypeDesignationDTO with more fields and associated DTOs, introducing ReferenceDTO, supressing unwanted and dangerous fields of RegistrationDTO

Revision ec3ca64c (diff)
Added by Andreas Kohlbecker about 2 months ago

ref #9238 removing quick fix allied in 4d6b5667 and adapting config for json serialization

History

#1 Updated by Andreas Kohlbecker about 2 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 about 2 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 about 2 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 17 days ago

  • Related to task #9252: Harmonize SpecimenOrOberservationBase related DTOs added

#5 Updated by Andreas Kohlbecker 17 days ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)