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

If you submit an empty list of barcodes you can get a nasty SQL stacktrace

XMLWordPrintable

      i.e
      url:http://test.musicbrainz.org/ws/2/release/?client=Clientname
      body:<?xml version="1.0" encoding="UTF-8" standalone="yes"?><metadata xmlns:ns2="http://musicbrainz.org/ns/ext#-2.0" xmlns="http://musicbrainz.org/ns/mmd-2.0#"><release-list/></metadata>

      Of course you shouldn't be doing this in the first place but if you do should ber handled better

      Gives:
      <?xml version="1.0" encoding="UTF-8"?><error><text>This edit could not be successfully created: Failed query:
      'UPDATE release SET edits_pending = edits_pending + ? WHERE id IN ()'
      (1)
      DBD::Pg::st execute failed: ERROR: syntax error at or near ")"
      LINE 1: ...lease SET edits_pending = edits_pending + '1' WHERE id IN ()
      ^ at /home/musicbrainz/musicbrainz-server/script/../lib/Sql.pm line 103.

      at /home/musicbrainz/musicbrainz-server/script/../lib/Sql.pm line 109

            acid2 Oliver Charles
            ijabz Paul Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                NGS - Release Candidate 2