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

Release merge might discard some or all release events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2014-02-17
    • None
    • Edit system
    • None

      While working on MBS-7190, I noticed that the code for merging release events contains another serious bug. If the source releases both have a release event for a common country, all release events from the merge target will be discarded. If in addition there is a reason to take at least one other release event from the target (because it has a more complete date), all release events from both sides will be discarded.

      First case:

      • release A: UK 2013, Germany 2013
      • release B: France 2013, Germany 2013
      • result of merging into B: UK 2013, Germany 2013

      Second case:

      • release A: UK 2013, Germany 2013, Italy 2013
      • release B: France 2013, Germany 2013, Italy 2013-04
      • result of merging into B: no release events

      I'd expect the first case at least to be not that uncommon, yet I couldn't find a ticket, so either my expectation is wrong or nobody noticed the bug before. It is present since the (re)introduction of multiple release events.

      Fix to be submitted this evening.

            chirlu Ulrich Klauer
            chirlu Ulrich Klauer
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2014-02-17