Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harvest's warning could be clearer #103

Open
rchenatjpl opened this issue Aug 28, 2022 · 0 comments
Open

Harvest's warning could be clearer #103

rchenatjpl opened this issue Aug 28, 2022 · 0 comments
Labels

Comments

@rchenatjpl
Copy link

Completely optional. It just took me a minute to understand this warning:

[INFO] Processing /home/pds4/test/issue2/no-host.lorenz_met_station_1.0.xml
[WARN] Could not find 'xmlns:XXX' definition for a schema listed in 'xsi:schemaLocation': badbadbad://pds.nasa.gov/pds4/ctli/v1

I suggest the second line be more like

[WARN] xsi:schemaLocation defines namespace badbadbad://pds.nasa.gov/pds4/ctli/v1 not listed earlier

[pds4@pdscloud-prod1 test]$ grep -r badbadbad issue2
issue2/no-host.lorenz_met_station_1.0.xml: xsi:schemaLocation="http://pds.nasa.gov/pds4/pds/v1 https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1F00.xsd badbadbad://pds.nasa.gov/pds4/ctli/v1 https://pds.nasa.gov/pds4/ctli/v1/PDS4_CTLI_1F00_1200.xsd">
[pds4@pdscloud-prod1 test]$
[pds4@pdscloud-prod1 test]$
[pds4@pdscloud-prod1 test]$
[pds4@pdscloud-prod1 test]$ /usr/local/build11/harvest-3.6.0/bin/harvest -c issue2.cfg
[SUMMARY] Reading configuration from /data/home/pds4/test/issue2.cfg
[SUMMARY] Output directory: /tmp/harvest/out
[SUMMARY] Elasticsearch URL: https://search-en-prod-di7dor7quy7qwv3husi2wt5tde.us-west-2.es.amazonaws.com:443, index: registry
[INFO] Connecting to Elasticsearch
[INFO] Loading PDS to ES data type mapping from /usr/local/build11/harvest-3.6.0/elastic/data-dic-types.cfg
[INFO] Processing directory: /home/pds4/test/issue2
[INFO] Processing /home/pds4/test/issue2/no-host.lorenz_met_station_1.0.xml
[WARN] Could not find 'xmlns:XXX' definition for a schema listed in 'xsi:schemaLocation': badbadbad://pds.nasa.gov/pds4/ctli/v1
[INFO] Wrote 1 product(s)
[SUMMARY] Summary:
[SUMMARY] Skipped files: 0
[SUMMARY] Loaded files: 1
[SUMMARY] Product_Context: 1
[SUMMARY] Failed files: 0
[SUMMARY] Package ID: fcef128c-e3f3-4c02-84f2-3c66bd42b3b2
[pds4@pdscloud-prod1 test]$

issue2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Development

No branches or pull requests

2 participants