r-geoflow / geoflow

Tools to Orchestrate Geospatial (Meta)Data Management Workflows and Manage FAIR Services
https://github.com/r-geoflow/geoflow/wiki
Other
41 stars 14 forks source link

Problem importing metadata into a geonetwork v4 sub-portal #268

Closed EmilieLerigoleur closed 2 years ago

EmilieLerigoleur commented 2 years ago

We are experimenting with importing metadata into the https://geo.driihm.fr/geonetwork/ohmi-tes/fre/catalog.search#/home sub-portal but it does not work. The source portal is https://geo.driihm.fr/geonetwork/. The version of Geonetwork is 4.2.0.

1/ In the json if we put "url": "https://geo.driihm.fr/geonetwork/", we obtain the followwing logs:

[geometa][INFO] Object 'ISOMetadata' is VALID according to ISO 19139 XML schemas! [geoflow][my-workflow][INFO] WORKFLOW PROGRESS : ACTION 'geometa-create-iso-19115' of ENTITY '7d71b52b-a58a-422c-80ca-d8f34157dee6' ... 50 % [geoflow][my-workflow][INFO] Executing Action 2: geonapi-publish-iso-19139 - for entity 7d71b52b-a58a-422c-80ca-d8f34157dee6 [geonapi][INFO] Getting user groups... Response [https://geo.driihm.fr/geonetwork//srv/api/groups] Date: 2022-06-28 11:46 Status: 200 Content-Type: application/json Size: 7.26 kB

[geonapi][INFO] Successfully fetched user groups! [geoflow][my-workflow][ERROR] Geonetwork: no group for id = 2 - Please check below the Geonetwork available groups id name 1 100 ohm-hv 2 101 ohm-vr 3 102 ohm-lm 4 103 ohmi-pbe 5 104 ohm-bmp 6 105 ohm-oya 7 106 ohmi-est 8 107 ohmi-nun 9 108 ohmi-tes 10 109 ohm-pdb 11 110 ohmi-pic 12 111 ohm-fes 13 112 ohm-lic [geoflow][my-workflow][INFO] Reset Geoserver API manager [geoflow][my-workflow][INFO] Reset Geonetwork API manager

How to specify id=9 and not id=2 chosen a priori by default?

2/ In the json if we put "url": https://geo.driihm.fr/geonetwork/ohmi-tes/fre/catalog.search#/home, we obtain the followwing logs:

[geometa][INFO] Object 'ISOMetadata' is VALID according to ISO 19139 XML schemas! [geoflow][my-workflow][INFO] WORKFLOW PROGRESS : ACTION 'geometa-create-iso-19115' of ENTITY '7d71b52b-a58a-422c-80ca-d8f34157dee6' ... 50 % [geoflow][my-workflow][INFO] Executing Action 2: geonapi-publish-iso-19139 - for entity 7d71b52b-a58a-422c-80ca-d8f34157dee6 [geonapi][INFO] Getting user groups... Response [https://geo.driihm.fr/geonetwork/ohmi-tes/fre/catalog.search#/home/srv/api/groups] Date: 2022-06-28 11:37 Status: 200 Content-Type: text/html;charset=utf-8 Size: 16.6 kB <!DOCTYPE html SYSTEM "html">

OHMi Téssékéré ... [geonapi][INFO] Successfully fetched user groups! [geoflow][my-workflow][INFO] Reset Geoserver API manager [geoflow][my-workflow][INFO] Reset Geonetwork API manager Thanks for helping us! NB: the XML metadata file is correctly created in the job directory
eblondel commented 2 years ago

the group is an option available in the Geonetwork 'geoapi' action. See geoflow::list_action_options("geonapi-publish-iso-19139"). You have to specify it as action option, where your action is defined within your configuration file.

EmilieLerigoleur commented 2 years ago

Thank you very much, it works :)