Commit 3c5ee83f authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Add infojson check

if missing or corrupted a new infojson will be created
parent f7a00431
Pipeline #300834 passed with stages
in 8 minutes and 11 seconds
......@@ -246,6 +246,10 @@ func getPhysStructure(physMeta types.PhysicalAttributes,
} else {
// get
imageInfo, err = helper.GetImageInfoFromInfoJsonInS3(product, infojsonkey)
if err != nil || imageInfo.Height == 0 {
log.Errorf("infojson seems corrupted or not available for %s/%s", product, infojsonkey)
imageInfo, err = helper.CreateImageInfoInS3(product, infojsonkey, imagekey, workID, product, fileAttr.Page)
}
}
// set dimensions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment