Uploaded image for project: 'Opencast'
  1. MH-9581

Workflow properties and dcterms for /ingest/addMediaPackage

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 1.4.0
    • Fix versions: 1.4.0
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Trying to Ingest something like this:
      curl -# -f --digest -u USER:PASSWD -H "X-Requested-Auth: Digest" 'http://localhost:8080/ingest/addMediaPackage/WebM-FLV-HQ' -F 'flavor=presentation/source' -F 'title=test-new-ingest-via-curl' -F 'presentationType=screen' -F 'presenterType=camera' -F 'scaleFullsize=true' -F "BODY=@test.mkv"

      …will result in a incorrect DublinCore catalog as scaleFullsize, etc. will be included into the DC catalog even though they are not dcterms.

      Furthermore, using something like “-F 'scaleFullsize=true'“ on /ingest/{wdID} whould result in scaleFullsize to be used as configuration property for the workflow.

      Thus it would make sense for the addMediaPackage method to check if the form fields are part of the dublincore terms and only then include them in the DC catalog. The other parameters could then be used as configuration properties for the workflow.

      So if you take the curl commandline from above as example, “title” would be included in the DC catalog as it is a dublincore term, but presentationType, presenterType and scaleFullsize are not and thus whould be used as workflow configuration property.

      It is quite easy to fix it this way. A patch for this is attached.
      Show
      Trying to Ingest something like this: curl -# -f --digest -u USER:PASSWD -H "X-Requested-Auth: Digest" ' http://localhost:8080/ingest/addMediaPackage/WebM-FLV-HQ' -F 'flavor=presentation/source' -F 'title=test-new-ingest-via-curl' -F 'presentationType=screen' -F 'presenterType=camera' -F 'scaleFullsize=true' -F "BODY=@test.mkv" …will result in a incorrect DublinCore catalog as scaleFullsize, etc. will be included into the DC catalog even though they are not dcterms. Furthermore, using something like “-F 'scaleFullsize=true'“ on /ingest/{wdID} whould result in scaleFullsize to be used as configuration property for the workflow. Thus it would make sense for the addMediaPackage method to check if the form fields are part of the dublincore terms and only then include them in the DC catalog. The other parameters could then be used as configuration properties for the workflow. So if you take the curl commandline from above as example, “title” would be included in the DC catalog as it is a dublincore term, but presentationType, presenterType and scaleFullsize are not and thus whould be used as workflow configuration property. It is quite easy to fix it this way. A patch for this is attached.

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              lkiesow Lars Kiesow
              Reporter:
              lkiesow Lars Kiesow
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases