Opened 5 years ago

Closed 5 years ago

#1904 closed enhancement (fixed)

Petascope_Log warn instead of throwing exception if metadata is malformed

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.7
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

e.g: add metadata as array as the example below in ingredient file, then request DescribeCoverage, it will throw an exception.

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of petascope.core.gml.metadata.model.LocalMetadata: no String-argument c
   "global": {
            "resolution": "'1'",
            "slices": []
          }

Hence, to make request still can return result of existing coverages, it will log it with warn level instead.

Change History (1)

comment:1 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.