Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-555

CAS-Curator MetadataResource REST endpoint updateMetadata deletes product met instead of updating

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.6
    • 0.6
    • curator
    • None

    Description

      The trunk build of CAS-Curator (rev. 1440737) seems to break the MetadataResource.updateMetadata method by deleting product met instead of updating it.

      I built a trunk build of cas-curator webapp and deployed to a local tomcat. Next, I pointed the curator to my local cas-filemgr. From this point, following the CAS-Curator REST API directions for updating a product's metadata [1], I attempted to invoke a sample call to update a metadata field. This step had two consequences: (1) the product's metadata was not updated, and critically (2) the product was actually deleted!

      Reproducibility steps:
      1. Build latest trunk build (rev. 1440737) of curator
      2. Deploy to tomcat with an active filemgr catalog (containing data)
      3. Invoke the following Unix command to update the metadata for a given product: curl --data "id=<YOUR_PRODUCT_ID>&metadata.<METADATA_KEY_NAME>=<METADATA_KEY_VALUE>" http://localhost:8080/curator/services/metadata/update
      4. Watch to see the product met actually being deleted instead of updated

      I will attach the stack trace (seen from step 4) to this bug report.


      [1] https://cwiki.apache.org/OODT/cas-curator-rest-api.html

      Attachments

        1. OODT-555-stacktrace.txt
          8 kB
          Rishi Verma

        Activity

          People

            cinquini Luca Cinquini
            riverma Rishi Verma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: