Uploaded image for project: 'Vnfsdk'
  1. Vnfsdk
  2. VNFSDK-520

validate: csar-validate-r130206 failed with csar files generated on linux machine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • Frankfurt Release
    • None

      running 'oclip --product onap-dublin csar-validate-r130206 --csar /tmp/output11.csar' with csar files generated on linux machine would fail because of signature match error.

       However, csar files generated on windows machines is fine.

      The error is caused by how we recreate the manifest file during signature verification, https://git.onap.org/vnfsdk/validation/tree/csarvalidation/src/main/java/org/onap/cvc/csar/cc/sol004/VTPValidateCSARR130206.java?id=d20bea49fb797bc5a530d7ac854e5e8d3034785f#n265, it treats the manifest file always containing windows style newline. We should differentiate different file format of the manifest file between windows style, linux style and old mac style, and take that into consideration during recreating manifest file.

            lianhaolu lianhaolu
            lianhaolu lianhaolu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: