Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
metsimporter
Commits
3c5ee83f
Commit
3c5ee83f
authored
Jun 03, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
indexer/index/elasticsearch.go
View file @
3c5ee83f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment