bug #9213
closedspecimen views 'compressed table' and 'derivate tree' fail when no fieldunits exists
100%
Description
Former Subject portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager
At least for this request the web service returns no entires in the pager even if 8 specimens are found by other means in the data portal code compose_cdm_taxon_page_specimens($taxon)
http://api.cybertaxonomy.org/cichorieae/portal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/associatedFieldUnits.json?pageNumber=0&pageSize=50 --> new URL: http://api.cybertaxonomy.org/cichorieae/portal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/associatedRootUnits.json?pageNumber=0&pageSize=50(expecting 8 fieldunits in this case, see http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/specimensOrObservationsCount.json)
this is critical since it breaks existing portals which are using the compressed COMPRESSED SPECIMEN DERIVATE TABLE
same problem with http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/fieldUnitDTOs.json --> new URL http://api.cybertaxonomy.org/cichorieae/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/rootUnitDTOs.json
there is no error in the server log
Related issues
Updated by Andreas Kohlbecker about 3 years ago
- Subject changed from portal/taxon/{taxon_uuid}/associatedFieldUnits returns empty pager to portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager
- Description updated (diff)
Updated by Andreas Kohlbecker about 3 years ago
taxon/85176c77-e4b6-4899-a08b-e257ab09350a/fieldUnitDTOs
seems to be broken due to problems in the method FieldUnitDTO findFieldUnitDTO(DerivateDTO derivedUnitDTO, Collection<FieldUnitDTO> fieldUnits,
which seems quite inconsistent: It returns only one FielsUnitDTO but internally the method attempts find multiple FieldUnits in order to add them to the
HashMap<UUID, DerivateDTO> alreadyCollectedSpecimen)Collection<FieldUnitDTO> fieldUnits
but none FieldUnits are actually found.
Updated by Andreas Kohlbecker about 3 years ago
- Tags set to specimen
- Subject changed from portal/taxon/{taxon_uuid}/associatedFieldUnits and taxon/{uuid}/fieldUnitDTOs.json return empty pager to specimen views 'compressed table' and 'derivate tree' fail when no fieldunits exists
- Description updated (diff)
- Category changed from cdmlib-remote to cdm-dataportal
The real problem for the missing specimen information in the portal for Lactuca serriola in the Cichoriae portal is that the Specimens don't have an assocciated field unit. Both specimens views compressed table and derivate tree expect that a FieldUnit always exists.
(--> Changing the ticket subject accordingly .....)
Updated by Andreas Kohlbecker about 3 years ago
- Related to feature request #7704: Dataportal specimen table should be able to show DerivedUnits without a FieldUnit added
Updated by Andreas Kohlbecker over 2 years ago
- Target version changed from Release 5.18 to Release 5.19
Updated by Andreas Kohlbecker over 2 years ago
- Target version changed from Release 5.19 to Release 5.21
Updated by Andreas Müller over 2 years ago
- Target version changed from Release 5.21 to Release 5.22
Updated by Andreas Kohlbecker over 2 years ago
- Related to bug #9395: DerivedUnit.collectFieldUnits() and findFieldUnitDTOByAssociatedTaxon() and findByAccessionNumber() in OccurrenceService to return all root units added
Updated by Andreas Kohlbecker over 2 years ago
- Status changed from New to Closed
- Target version changed from Release 5.22 to Release 5.19
- % Done changed from 0 to 100
this is already solved, see http://cichorieae.e-taxonomy.net/portal/cdm_dataportal/taxon/85176c77-e4b6-4899-a08b-e257ab09350a/specimens