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

Changing URL relationship type in release editor does not clear attributes causing an internal server error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • Release editor
    • None

      Effectively the same problem as MBS-8053, but for somewhere else in the code, I assume.

      To reproduce:

      • Open the release editor, enter a title, select an artist and add at least one track
      • Add a URL, select "stream for free" as the type
      • Tick the "video" checkbox
      • Change the relationship type to "download for free"
      • Go to the edit tab and try to submit the edits

      Expected behaviour: The "video" attribute is cleared when changing the relationship type to one which doesn't support the attribute.
      Actual behaviour: The attribute remains, causing the following ISE when trying to submit:

      {
      attributes => [
      {
      type =>

      Unknown macro: { gid => "112054d5-e706-4dd8-99ea-09aabee36cd6" }

      }
      ],
      begin_date => {},
      end_date => {},
      ended => 0,
      entity0 => bless( {
      artist_credit_id => 1325760,
      barcode => bless(

      Unknown macro: { code => undef }

      , 'MusicBrainz::Server::Entity::Barcode' ),
      comment => "",
      edits_pending => 0,
      gid => "fa862d5e-dc71-4f91-a7f9-798516c96c67",
      id => 1439455,
      last_updated => bless( {
      formatter => undef,
      local_c =>

      Unknown macro: { day => 1, day_of_quarter => 62, day_of_week => 1, day_of_year => 335, hour => 9, minute => 51, month => 12, quarter => 4, second => 32, year => 2014 }

      ,
      local_rd_days => 735568,
      local_rd_secs => 35492,
      locale => bless(

      Unknown macro: { default_date_format_length => "medium", default_time_format_length => "medium", en_complete_name => "English United States", en_language => "English", en_territory => "United States", id => "en_US", native_complete_name => "English United States", native_language => "English", native_territory => "United States" }

      , 'DateTime::Locale::en_US' ),
      offset_modifier => 0,
      rd_nanosecs => 446415000,
      tz => bless(

      Unknown macro: { name => "UTC" }

      , 'DateTime::TimeZone::UTC' ),
      utc_rd_days => 735568,
      utc_rd_secs => 35492,
      utc_year => 2015
      }, 'DateTime' ),
      name => "foo",
      quality => 1,
      release_group_id => 1386124
      }, 'MusicBrainz::Server::Entity::Release' ),
      entity1 => bless( {
      id => 2554282,
      url => bless( do

      Unknown macro: {(my $o = "http}

      , 'URI::http' )
      }, 'MusicBrainz::Server::Entity::URL::YouTube' ),
      link_type => bless(

      Unknown macro: { attributes => [], child_order => 2, description => "This links a release to a page where it can be legally downloaded for free.", entity0_cardinality => 0, entity0_type => "release", entity1_cardinality => 0, entity1_type => "url", gid => "9896ecd0-6d29-482d-a21e-bd5d1b5e3425", has_dates => 1, id => 75, is_deprecated => 0, link_phrase => "download for free", long_link_phrase => "can be downloaded for free at", name => "download for free", orderable_direction => 0, parent_id => 73, priority => 0, reverse_link_phrase => "free download page for" }

      , 'MusicBrainz::Server::Entity::LinkType' )
      }

      Attribute 582 is unsupported for link type 75 at lib/MusicBrainz/Server/Edit/Relationship.pm line 27, <$fh> line 1.
      at lib/MusicBrainz/Server/Data/Edit.pm line 456.

            Unassigned Unassigned
            nikki nikki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package