API tag submission should not accept tags with commas

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2026-01-19
    • Affects Version/s: None
    • Component/s: Web service
    • None

      Tags in MusicBrainz are generally comma-separated, and most of our code does not allow adding (or editing) tags with commas in them. The API POST method though will happily take this:

      {{ <user-tag-list>
      <user-tag vote="withdraw"><name>wait, really</name></user-tag>
      </user-tag-list>}}

      And submit a "wait, really" tag with a comma. This later causes issues when trying to edit it through the website (MBS-8697).

      The API should probably block tags with commas in them and return something like "Commas are not allowed in tags. To submit multiple tags, send multiple <user-tag> elements".

            Assignee:
            Nicolás Tamargo
            Reporter:
            Nicolás Tamargo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2026-01-19