Skip to content

Handle ambiguous sticker names and values #2166

@h7x4

Description

@h7x4

There is an edgecase for stickers with names and values containing =, making the server output hard to parse.

$ nc localhost 6600
OK MPD 0.24.0
sticker set playlist TestPlaylist "test=1" "value=2"
OK
sticker list playlist TestPlaylist
sticker: test=1=value=2
OK

First solution that comes to mind would be to wrap the name and value in quotes, but then you could maybe put "=" inside your string or something (I guess we could escape quotes as well?). Not sure what the best solution is here. Newlines maybe?

I feel like this is in the grey area of being a bug, considering it's up to the client developer to choose sensible tag names. But one client might interfere with another, so maybe it should be considered so.

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