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

Content type pds4+xml does not namespace tags in <pds_api:meta> with pds_api #93

Closed
al-niessner opened this issue Feb 17, 2022 · 0 comments · Fixed by #94
Closed

Content type pds4+xml does not namespace tags in <pds_api:meta> with pds_api #93

al-niessner opened this issue Feb 17, 2022 · 0 comments · Fixed by #94
Assignees
Labels
bug Something isn't working needs:triage

Comments

@al-niessner
Copy link
Contributor

🐛 Describe the bug

The desire is to have pds_api namespace prefix all of the tags within meta instead of how it is:

  <pds_api:meta>
    <node_name>PSA</pds_api:node_name>
    <label_file>
      <file_name>ns_inst.xml</pds_api:file_name>
      <file_ref>/var/local/harvest/archive/document/ns_inst.xml</pds_api:file_ref>
      <creation_date>2022-01-24T20:08:23Z</pds_api:creation_date>
      <file_size>3589</pds_api:file_size>
      <md5_checksum>a8d09cca0a01728db50c15052c2736cf</pds_api:md5_checksum>
    </label_file>
    <data_files>
      <data_files>
        <file_name>ns_inst.pdf</pds_api:file_name>
        <file_ref>/var/local/harvest/archive/document/ns_inst.pdf</pds_api:file_ref>
        <creation_date>2022-01-24T20:08:23Z</pds_api:creation_date>
        <file_size>138172</pds_api:file_size>
        <md5_checksum>8103f20c13a3c321dac4a193aba19d16</pds_api:md5_checksum>
        <mime_type>application/pdf</pds_api:mime_type>
      </data_files>
    </data_files>
  </pds_api:meta>

📜 To Reproduce

Steps to reproduce the behavior:
$ curl --location --request GET 'http://localhost:8080/products/urn:nasa:pds:izenberg_pdart14_meap:document:ns_inst::1.0' --header 'Accept: application/pds4+xml' | xmllint --format -

🕵️ Expected behavior

  <pds_api:meta>
    <pds_api:node_name>PSA</pds_api:node_name>
    <pds_api:label_file>
      <pds_api:file_name>ns_inst.xml</pds_api:file_name>
      <pds_api:file_ref>/var/local/harvest/archive/document/ns_inst.xml</pds_api:file_ref>
      <pds_api:creation_date>2022-01-24T20:08:23Z</pds_api:creation_date>
      <pds_api:file_size>3589</pds_api:file_size>
      <pds_api:md5_checksum>a8d09cca0a01728db50c15052c2736cf</pds_api:md5_checksum>
    </pds_api:label_file>
    <pds_api:data_files>
      <pds_api:data_files>
        <pds_api:file_name>ns_inst.pdf</pds_api:file_name>
        <pds_api:file_ref>/var/local/harvest/archive/document/ns_inst.pdf</pds_api:file_ref>
        <pds_api:creation_date>2022-01-24T20:08:23Z</pds_api:creation_date>
        <pds_api:file_size>138172</pds_api:file_size>
        <pds_api:md5_checksum>8103f20c13a3c321dac4a193aba19d16</pds_api:md5_checksum>
        <pds_api:mime_type>application/pdf</pds_api:mime_type>
      </pds_api:data_files>
    </pds_api:data_files>
  </pds_api:meta>

🦄 Related requirements

⚙️ Engineering Details

@al-niessner al-niessner added bug Something isn't working needs:triage labels Feb 17, 2022
tloubrieu-jpl added a commit that referenced this issue Feb 23, 2022
issue #93: add pds_api namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants