NASA-PDS / operations

Tickets for the PDSEN Operations Team
Other
5 stars 1 forks source link

Test validate on OL8 #430

Closed tloubrieu-jpl closed 9 months ago

tloubrieu-jpl commented 9 months ago

💡 Description

Must also include the update of log4j for pds4-jparser to get rid of a vulnerability.

jordanpadams commented 9 months ago

@c-suh can confirm, but tested on ol8 successfully (note ERRORS are because of bad data, not bad validate execution)

[pds@pdscloud-gamma-ol8 ~]$ validate --target nssdca-deliveries/400/*.xml

PDS Validate Tool Report

Configuration:
   Version                       3.3.0
   Date                          2023-09-27T19:10:56Z

Parameters:
   Targets                       [file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_aip_v1.0.xml, file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_sip_v1.0.xml, file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_aip_v1.0.xml, file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_sip_v1.0.xml]
   Severity Level                WARNING
   Recurse Directories           true
   File Filters Used             [*.xml, *.XML]
   Data Content Validation       on
   Product Level Validation      on
   Max Errors                    100000
   Registered Contexts File      /usr/local/applications/validate/resources/registered_context_products.json

Product Level Validation Results

  FAIL: file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_aip_v1.0.xml
    Begin Content Validation: file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_transfer_manifest_v1.0.tab
      ERROR  [error.table.field_value_data_type_mismatch]   data object transfer manifest or index 1, record 3, field 2: Value does not match its data type 'ASCII_File_Specification_Name': The directory spec '/document/../' does not match the pattern '/?([A-Za-z0-9][A-Za-z0-9_-]*[A-Za-z0-9]/?|[A-Za-z0-9][^-_]/?)*'
      ERROR  [error.table.field_value_data_type_mismatch]   data object transfer manifest or index 1, record 14, field 2: Value does not match its data type 'ASCII_File_Specification_Name': The directory spec '/document/../catalog/' does not match the pattern '/?([A-Za-z0-9][A-Za-z0-9_-]*[A-Za-z0-9]/?|[A-Za-z0-9][^-_]/?)*'
    End Content Validation: file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_transfer_manifest_v1.0.tab
        1 product validation(s) completed

  PASS: file:/data/home/pds/nssdca-deliveries/400/vo_irtm_v1.0_20230525_sip_v1.0.xml
        2 product validation(s) completed

  FAIL: file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_aip_v1.0.xml
    Begin Content Validation: file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_transfer_manifest_v1.0.tab
      ERROR  [error.table.field_value_data_type_mismatch]   data object transfer manifest or index 1, record 5, field 2: Value does not match its data type 'ASCII_File_Specification_Name': The directory spec '/document/../catalog/' does not match the pattern '/?([A-Za-z0-9][A-Za-z0-9_-]*[A-Za-z0-9]/?|[A-Za-z0-9][^-_]/?)*'
      ERROR  [error.table.field_value_data_type_mismatch]   data object transfer manifest or index 1, record 15, field 2: Value does not match its data type 'ASCII_File_Specification_Name': The directory spec '/document/../' does not match the pattern '/?([A-Za-z0-9][A-Za-z0-9_-]*[A-Za-z0-9]/?|[A-Za-z0-9][^-_]/?)*'
    End Content Validation: file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_transfer_manifest_v1.0.tab
        3 product validation(s) completed

  PASS: file:/data/home/pds/nssdca-deliveries/400/vo_mawd_v1.0_20230525_sip_v1.0.xml
        4 product validation(s) completed

Summary:

  4 error(s)
  0 warning(s)

  Product Validation Summary:
    2          product(s) passed
    2          product(s) failed
    0          product(s) skipped

  Referential Integrity Check Summary:
    0          check(s) passed
    0          check(s) failed
    0          check(s) skipped

  Message Types:
    4            error.table.field_value_data_type_mismatch

End of Report
Completed execution in 6056 ms
c-suh commented 9 months ago

@jordanpadams confirmed - I processed a single NSSDCA submission yesterday, and validate 3.3.0 ran without issue.