Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-11940

/ws/2/tag return 500 code for invalid requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021-09-20
    • Component/s: Web service
    • Labels:
      None

      Description

      If post non valid data to `/ws/2/tag` it return 502 (Bad Gateway) error html page, instead of 400 (Bad Request) or something like it

      Example of data
      ```
      curl -X POST --digest -u 'login:password' -H'Content-Type: application/xml; charset=utf-8' --data 'random trash' https://musicbrainz.org/ws/2/tag?client=some.app-0.0.0
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bitmap Michael Wiencek
              Reporter:
              MrClon MrClon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2021-09-20