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

Internal error on creating a work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • Edit system
    • None

      I'm trying to add the normal work - a song, with a name, a normal human lyricist/translator with a date of that relationship, plus a [traditional] special artist composer without any more attributes. However, I persistently end up with:

      Internal Server Error
      Oops, something went wrong!

      Error:

      Caught exception in MusicBrainz::Server::Controller::Work->create "The edit could not be created.
      POST: $VAR1 = {
      'edit-work.rel.0.period.begin_date.month' => '',
      'edit-work.type_id' => '17',
      'edit-work.attributes.0.value' => '',
      'edit-work.rel.0.backward' => '1',
      'edit-work.rel.1.backward' => '1',
      'edit-work.rel.0.period.begin_date.day' => '',
      'edit-work.rel.0.target' => '62b76d70-3fcd-46f2-9d73-a53099c557ef',
      'edit-work.rel.0.period.end_date.month' => '',
      'edit-work.comment' => '',
      'edit-work.rel.0.attributes.0.type.gid' => 'ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1',
      'edit-work.rel.0.period.end_date.day' => '',
      'edit-work.url.0.backward' => '1',
      'edit-work.rel.1.attributes.0.type.gid' => 'ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1',
      'edit-work.iswcs.0' => '',
      'edit-work.rel.0.period.begin_date.year' => '1868',
      'edit-work.url.0.link_type_id' => '279',
      'edit-work.url.0.text' => 'http://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%B3%D0%B4%D0%B0_%D1%8F_%D0%BD%D0%B0_%D0%BF%D0%BE%D1%87%D1%82%D0%B5_%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%BB_%D1%8F%D0%BC%D1%89%D0%B8%D0%BA%D0%BE%D0%BC',
      'edit-work.rel.1.target' => '9be7f096-97ec-4615-8957-8d40b5dcbc41',
      'edit-work.edit_note' => 'https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%B3%D0%B4%D0%B0_%D1%8F_%D0%BD%D0%B0_%D0%BF%D0%BE%D1%87%D1%82%D0%B5_%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%BB_%D1%8F%D0%BC%D1%89%D0%B8%D0%BA%D0%BE%D0%BC',
      'edit-work.name' => "\x

      {41a}\x{43e}\x{433}\x{434}\x{430} \x{44f} \x{43d}\x{430} \x{43f}\x{43e}\x{447}\x{442}\x{435} \x{441}\x{43b}\x{443}\x{436}\x{438}\x{43b} \x{44f}\x{43c}\x{449}\x{438}\x{43a}\x{43e}\x{43c}",
      'edit-work.language_id' => '353',
      'edit-work.rel.1.link_type_id' => '168',
      'edit-work.attributes.0.type_id' => '',
      'edit-work.rel.0.link_type_id' => '165',
      'edit-work.rel.0.period.end_date.year' => '1868'
      };

      Exception:$VAR1 = 'Could not create MusicBrainz::Server::Edit::Relationship::Create edit

      {
      attributes => [
      {
      type => {
      gid => "ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1",
      id => 517,
      name => "translated",
      root => { gid => "ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1", id => 517, name => "translated" }
      }
      }
      ],
      ended => 0,
      entity0 => bless( {
      begin_date => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
      comment => "Special Purpose Artist",
      edits_pending => 0,
      end_date => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
      ended => 0,
      gid => "9be7f096-97ec-4615-8957-8d40b5dcbc41",
      id => 762646,
      ipi_codes => [],
      isni_codes => [],
      last_updated => bless( {
      formatter => undef,
      local_c => { day => 3, day_of_quarter => 33, day_of_week => 6, day_of_year => 123, hour => 18, minute => 0, month => 5, quarter => 2, second => 23, year => 2014 },
      local_rd_days => 735356,
      local_rd_secs => 64823,
      locale => bless( { 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 => 444182000,
      tz => bless( { name => "UTC" }, \'DateTime::TimeZone::UTC\' ),
      utc_rd_days => 735356,
      utc_rd_secs => 64823,
      utc_year => 2015
      }, \'DateTime\' ),
      name => "[traditional]",
      sort_name => "[traditional]",
      type_id => 3
      }, \'MusicBrainz::Server::Entity::Artist\' ),
      entity1 => bless( {
      artists => [],
      attributes => [],
      comment => "",
      edits_pending => 0,
      gid => "36b0c154-959f-43a6-a939-810ee072d119",
      id => 12781657,
      iswcs => [],
      language_id => 353,
      last_updated => bless( {
      formatter => undef,
      local_c => { day => 21, day_of_quarter => 52, day_of_week => 5, day_of_year => 325, hour => 5, minute => 58, month => 11, quarter => 4, second => 37, year => 2014 },
      local_rd_days => 735558,
      local_rd_secs => 21517,
      locale => bless( { 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 => 502948000,
      tz => bless( { name => "UTC" }, \'DateTime::TimeZone::UTC\' ),
      utc_rd_days => 735558,
      utc_rd_secs => 21517,
      utc_year => 2015
      }, \'DateTime\' ),
      name => "
      x{41a}


      x

      {43e}\\x{433}\\x{434}
      x{430}
      x{44f} \\x{43d}
      x{430} \\x{43f}
      x{43e}


      x

      {447}\\x{442}
      x{435} \\x{441}
      x{43b}\\x{443}\\x{436}\\x{438}
      x{43b}
      x{44f}
      x{43c}\\x{449}\\x{438}\\x{43a}\\x{43e}
      x{43c}",
      type_id => 17,
      writers => []
      }, \'MusicBrainz::Server::Entity::Work\' ),
      link_order => 0,
      link_type => bless( {
      attributes => [
      bless( { max => 1, min => 0, type_id => 1 }, \'MusicBrainz::Server::Entity::LinkTypeAttribute\' )
      ],
      child_order => 0,
      description => "Indicates the composer for this work, i.e. the artist who wrote the music (not necessarily the lyrics).",
      entity0_cardinality => 1,
      entity0_type => "artist",
      entity1_cardinality => 0,
      entity1_type => "work",
      gid => "d59d99ea-23d4-4a80-b066-edca32ee158f",
      has_dates => 1,
      id => 168,
      is_deprecated => 0,
      link_phrase => "{additional:additionally} composed",
      long_link_phrase => "{additional:additionally} composed",
      name => "composer",
      orderable_direction => 0,
      parent_id => 167,
      priority => 0,
      reverse_link_phrase => "{additional} composer"
      }, \'MusicBrainz::Server::Entity::LinkType\' )
      }


      Attribute 517 is unsupported for link type 168 at lib/MusicBrainz/Server/Edit/Relationship.pm line 27, line 3.
      at lib/MusicBrainz/Server/Data/Edit.pm line 456
      ';
      at lib/MusicBrainz/Server/Controller.pm line 104
      at lib/Sql.pm line 330
      at lib/Sql.pm line 330"
      Stack trace:
      line 19 MusicBrainz::Server::Model::MB
      line 203 MusicBrainz::Server::Controller
      line 135 MusicBrainz::Server::Controller::Role::EditRelationships
      line 88 MusicBrainz::Server::Controller::Role::Create
      line 329 MusicBrainz::Server
      line 303 MusicBrainz::Server
      line 330 MusicBrainz::Server
      line 344 MusicBrainz::Server
      line 389 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' => {
      'edit-work.rel.0.period.begin_date.month' => '',
      'edit-work.rel.1.backward' => '1',
      'edit-work.rel.0.backward' => '1',
      'edit-work.attributes.0.value' => '',
      'edit-work.type_id' => '17',
      'edit-work.rel.0.period.begin_date.day' => '',
      'edit-work.rel.0.target' => '62b76d70-3fcd-46f2-9d73-a53099c557ef',
      'edit-work.rel.0.period.end_date.month' => '',
      'edit-work.rel.0.attributes.0.type.gid' => 'ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1',
      'edit-work.comment' => '',
      'edit-work.rel.0.period.end_date.day' => '',
      'edit-work.url.0.backward' => '1',
      'edit-work.rel.1.attributes.0.type.gid' => 'ed11fcb1-5a18-4e1d-b12c-633ed19c8ee1',
      'edit-work.iswcs.0' => '',
      'edit-work.rel.0.period.begin_date.year' => '1868',
      'edit-work.url.0.link_type_id' => '279',
      'edit-work.url.0.text' => 'http://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%B3%D0%B4%D0%B0_%D1%8F_%D0%BD%D0%B0_%D0%BF%D0%BE%D1%87%D1%82%D0%B5_%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%BB_%D1%8F%D0%BC%D1%89%D0%B8%D0%BA%D0%BE%D0%BC',
      'edit-work.rel.1.target' => '9be7f096-97ec-4615-8957-8d40b5dcbc41',
      'edit-work.edit_note' => 'https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%B3%D0%B4%D0%B0_%D1%8F_%D0%BD%D0%B0_%D0%BF%D0%BE%D1%87%D1%82%D0%B5_%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%BB_%D1%8F%D0%BC%D1%89%D0%B8%D0%BA%D0%BE%D0%BC',
      'edit-work.language_id' => '353',
      'edit-work.name' => "\x{41a}\x{43e}\x{433}\x{434}\x{430} \x{44f} \x{43d}\x{430} \x{43f}\x{43e}\x{447}

      \x

      {442}

      \x

      {435}

      \x

      {441}

      \x

      {43b}\x{443}\x{436}\x{438}\x{43b}

      \x

      {44f}

      \x

      {43c}\x{449}\x{438}\x{43a}\x{43e}\x{43c}

      ",
      'edit-work.rel.1.link_type_id' => '168',
      'edit-work.attributes.0.type_id' => '',
      'edit-work.rel.0.link_type_id' => '165',
      'edit-work.rel.0.period.end_date.year' => '1868'
      }
      };

      Time: 2014-11-21 05:58:38 UTC

      Host: pingu

      URL: http://musicbrainz.org/work/create

      We're terribly sorry for this problem. Please wait a few minutes and repeat your request — the problem may go away.

      If the problem persists, please report a bug and include any error message that is shown above.

      Please be sure to include the stack trace and request data shown above!

            Unassigned Unassigned
            greycat Mikhail Yakshin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package