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

Release editor does not handle removed mediums correctly when reordering mediums

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-12-01
    • Component/s: Release editor
    • Labels:
      None

      Description

      To reproduce:

      • Edit a release with 1 medium, go to the tracklist tab
      • Add a second medium
      • Remove the first medium
      • Go to the edit note tab and attempt to submit the edits

      Expected behaviour: The new medium becomes medium 1, and since medium positions must be unique, the medium being removed becomes the last medium (in this case, medium 2).
      Actual behaviour: The release editor submits the edits to add and remove the mediums, but fails on the reorder mediums edit with "Bad Request: 400" (which is an internal server error behind the scenes) because it only tries to move the new medium to position 1, which it can't because the medium being removed is already position 1.

        Attachments

          Activity

            People

            • Assignee:
              bitmap Michael Wiencek
              Reporter:
              nikki nikki
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2014-12-01