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

Encode mp xml embedded in result of old Ingest file upload (addElementMonitored/{jobId})

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 3.1
    • Fix versions: None
    • Components: RESTful Interfaces

      Description

      The old Ingest endpoint "addElementMonitored/

      {jobId}" is still part of the r/3.x codebase.

      The endpoint contains a bug of not encoding the embedded mediapackage XML in the result HTML. The issue only manifests itself when an embedded XML value text contains special characters, such as an ampersand ("&"). For example, a series or event title "Cats & Dogs 101".

      The endpoint supports tracks and catalogs, but not attachments.
      
      

      * @param request
      * containing the file, the flavor and the MediaPackage to which it should be added
      * @return HTML that calls the UploadListener.uploadComplete javascript handler
      */
      @POST
      @Path("addElementMonitored/{jobId}

      ")
      @Produces(MediaType.TEXT_HTML)

      
      

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                karen "Failed to Retrieve User 557058:5fd3a1cd-1d76-4d2e-a52c-19497a9cf68e" (Inactive)
                Reporter:
                karen "Failed to Retrieve User 557058:5fd3a1cd-1d76-4d2e-a52c-19497a9cf68e" (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases