Skip to content

Release Actions input is not sanitized into query option release_mbid #214

@hasezoey

Description

@hasezoey

For a while now i have always wondered why my Tampermonkey script (Enhanced Cover Art) was not working when going via Release Actions instead of first searching in Release lookup and then clicking on the "Musicbrainz entry already exists" button.
Turns out when using a link as a input, Release Actions does not parse and add the actual mbid to the query option, but the full input. Example:

The input to both fields is
https://musicbrainz.org/release/dd094950-5442-4326-9f91-a3acf6a47b6f.

When going via Release Actions, the resulting url is:

https://harmony.pulsewidth.org.uk/release/actions?release_mbid=https%3A%2F%2Fmusicbrainz.org%2Frelease%2Fdd094950-5442-4326-9f91-a3acf6a47b6f

When going via Release Lookup and then clicking on Existing Musicbrainz entry, the resulting url is:

https://harmony.pulsewidth.org.uk/release/actions?release_mbid=dd094950-5442-4326-9f91-a3acf6a47b6f

Guessing by the behavior of Release lookup and the query option name, even though harmony works with either, i think it is intended to be sanitized.

Harmony v2026.3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightwebWeb interface

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions