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

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.

1 2 3 4 5 6 7 * @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)

Steps to reproduce

None

Status

Assignee

Former user

Reporter

Former user

Criticality

None

Tags (folksonomy)

None

Components

Affects versions

3.1

Priority

Minor