Retraction of elements distributed via download does not work when stream security is enabled

Steps to reproduce

Steps to reproduce:
1. Enable stream security
2. Try to retract a MediaPackage previously distributed (it is irrelevant whether or not the stream security was enabled when the distribution happened).

Actual Results:
The package is removed from the search list, but the files are not deleted. The message "Element <element_id>@<mp_id> has already been removed or has never been distributed for publication channel engage-player" is printed in the logs once per each element retracted.

Expected Results:
The elements should be retracted correctly, independently from the stream security being activated or not

Workaround (if any):
There is no workaround.

This bug comes from the way the Distribution Download Service calculates the file paths corresponding to the distributed URLs --it takes the whole URL, removes the protocol and host prefixes, and appends it to the downloads root directory. In particular, it does not bother to remove possible fragments or query parameters that the URI may contain --as it happens when the stream security is enabled.

I've included 2.0.1 in the "Fix versions" field, but this of course can be updated to 2.0.2 when the release is out.


Sven Stauber
October 21, 2016, 12:20 PM

We use stream security and retraction works. Probably, this was fixed a while ago. I therefore close this issue.

Lars Kiesow
December 7, 2015, 1:14 PM

Removed fix versions 1.6.3 and 2.1 since stream security is part of neither branch.

Adam McKenzie
September 28, 2015, 9:51 PM

I have fixed the issue with retraction with stream security. The issue was that the query string parameters were included in the filename when checking for the file's existence which included the stream security parameters. I have changed the matterhorn-distribution-service-download, matterhorn-distribution-service-streaming and matterhorn-distribution-service-streaming-wowza to get the filename without the query string parameters and now it retracts successfully.

Fixed in the branch: f/MH-10729-stream-security-one-commit
With git hash: 8dbdff414c5255a295be2e5be1290c1d13707304

Fixed in the branch: f/MH-10729-stream-security-1.6.x-one-commit
With git hash: 62b59a5d781ea20cd0dc4fcc1d435a92a6675ed6

Cannot Reproduce
Your pinned fields
Click on the next to a field label to start pinning.


Sven Stauber


Rubén Pérez


Non Functioning