Skip to content

Deleting self hosted assets fails #1248

@SHession

Description

@SHession

CP reported an issue with a MAM video returning 500 on DCR.

While investigating this, we noticed that the MAM video included a mix of Youtube and self hosted video assets.

MAM would not let us delete the self hosted video asset. The error returned was 415 Unsupported Media Type. This is because the request body of the delete was undefined instead of the expected data structure.

I suspect that the lookup here: media-atom-maker/public/video-ui/src/actions/VideoActions/deleteAsset.js at 88925ce5fc9b1c3dd293ff416efea5b2eb5511a7 · guardian/media-atom-maker only works for Youtube videos, but more investigation is required.

I also suspect that this would a be a problem even if the video didn’t have a mix of youtube and self hosted videos. So I’d start with just self hosted videos, but if you cannot reproduce then perhaps a youtube video is required.

NB- you will need add_self_hosted_asset permission in order to upload self hosted videos to test.

Taken from: https://trello.com/c/tW6HnSaw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions