Commit 7f99e0dd authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Correct S3 key construction

parent 8a7f41d3
Pipeline #298937 passed with stages
in 10 minutes and 57 seconds
......@@ -225,12 +225,14 @@ func getPhysStructure(physMeta types.PhysicalAttributes,
esPhys.Phys = physMeta.ID
esPhys.PageHRef = fileAttr.Href
key := fmt.Sprintf(config.InfoJsonKeyPattern, workID, fileAttr.Page)
pageDimension, err := helper.GetImageDimensionFromS3(product, key)
if err == nil {
esPhys.PageHeight = pageDimension.Height
esPhys.PageWidth = pageDimension.Width
if ccontext != "olahds" {
key := fmt.Sprintf(config.InfoJsonKeyPattern, workID, fileAttr.Page)
pageDimension, err := helper.GetImageDimensionFromS3(product, key)
if err == nil {
esPhys.PageHeight = pageDimension.Height
esPhys.PageWidth = pageDimension.Width
}
}
esPhys.Log = llog
......
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