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

Internal Server Error when changing cover art from Other to nothing (unknown)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • None
    • Cover art
    • None

      In response to nikki's comment on http://musicbrainz.org/edit/17498373 I tried changing (as an auto-edit) the cover type to nothing:

      Internal Server Error

      Oops, something went wrong!

      Error:

      Caught exception in MusicBrainz::Server::Controller::Release->edit_cover_art "The edit could not be created.
      POST: $VAR1 =

      { 'edit-cover-art.comment' => 'unknown part', 'edit-cover-art.type_id' => '', 'edit-cover-art.as_auto_editor' => '1', 'edit-cover-art.edit_note' => 'Edit #17498373' }

      ;

      Exception:$VAR1 = "Could not create MusicBrainz::Server::Edit::Release::EditCoverArt edit

      \$VAR1 = {
      'artwork_id' => '858718290',
      'new_comment' => 'unknown part',
      'release' => bless( {
      'latest_annotation' => bless( {
      'changelog' => '',
      'editor_id' => 220174,
      'creation_date' => bless( {
      'local_rd_secs' => 47347,
      'local_rd_days' => 733076,
      'rd_nanosecs' => 382213000,
      'locale' => bless(

      { 'default_time_format_length' => 'medium', 'native_territory' => 'United States', 'native_language' => 'English', 'native_complete_name' => 'English United States', 'en_language' => 'English', 'id' => 'en_US', 'default_date_format_length' => 'medium', 'en_complete_name' => 'English United States', 'en_territory' => 'United States' }

      , 'DateTime::Locale::en_US' ),
      'local_c' =>

      { 'hour' => 13, 'second' => 7, 'month' => 2, 'quarter' => 1, 'day_of_year' => 35, 'day_of_quarter' => 35, 'minute' => 9, 'day' => 4, 'day_of_week' => 1, 'year' => 2008 }

      ,
      'utc_rd_secs' => 47347,
      'formatter' => undef,
      'tz' => bless(

      { 'name' => 'UTC' }

      , 'DateTime::TimeZone::UTC' ),
      'utc_year' => 2009,
      'utc_rd_days' => 733076,
      'offset_modifier' => 0
      }, 'DateTime' ),
      'text' => '',
      'id' => 322103
      }, 'MusicBrainz::Server::Entity::Annotation' ),
      'status' => bless(

      { 'name' => 'Official', 'id' => 1 }

      , 'MusicBrainz::Server::Entity::ReleaseStatus' ),
      'release_group' => bless( {
      'last_updated' => bless( {
      'local_rd_secs' => 74820,
      'local_rd_days' => 733551,
      'rd_nanosecs' => 490177000,
      'locale' => \$VAR1->

      {'release'}{'latest_annotation'}{'creation_date'}{'locale'},
      'local_c' => { 'hour' => 20, 'second' => 0, 'month' => 5, 'quarter' => 2, 'day_of_year' => 144, 'day_of_quarter' => 54, 'minute' => 47, 'day' => 24, 'day_of_week' => 7, 'year' => 2009 },
      'utc_rd_secs' => 74820,
      'formatter' => undef,
      'tz' => bless( { 'name' => 'UTC' }, 'DateTime::TimeZone::UTC' ),
      'utc_year' => 2010,
      'utc_rd_days' => 733551,
      'offset_modifier' => 0
      }, 'DateTime' ),
      'artist_credit_id' => 138350,
      'relationships' => [],
      'name' => \"\\x{767c}\\x{71d2}\",
      'release_count' => 1,
      'edits_pending' => 0,
      'first_release_date' => bless( { 'month' => 8, 'day' => 30, 'year' => 2002 }, 'MusicBrainz::Server::Entity::PartialDate' ),
      'type_id' => 1,
      'type' => bless( { 'name' => 'Album', 'id' => 1 }, 'MusicBrainz::Server::Entity::ReleaseGroupType' ),
      'id' => 440785,
      'gid' => 'f2472417-a1b9-38af-8e03-573d9a248468'
      }, 'MusicBrainz::Server::Entity::ReleaseGroup' ),
      'date' => bless( { 'month' => 8, 'day' => 30, 'year' => 2002 }, 'MusicBrainz::Server::Entity::PartialDate' ),
      'relationships' => [],
      'edits_pending' => 1,
      'release_group_id' => 440785,
      'mediums' => [
      bless( {
      'format_id' => 1,
      'release_id' => 350950,
      'position' => 1,
      'release' => \$VAR1->{'release'}

      ,
      'edits_pending' => 0,
      'tracklist' => bless(

      { 'track_count' => 10, 'id' => 1252344 }

      , 'MusicBrainz::Server::Entity::Tracklist' ),
      'format' => bless(

      { 'name' => 'CD', 'id' => 1, 'has_discids' => 1, 'year' => 1982, 'child_order' => 0 }

      , 'MusicBrainz::Server::Entity::MediumFormat' ),
      'id' => 350950,
      'tracklist_id' => 1252344
      }, 'MusicBrainz::Server::Entity::Medium' )
      ],
      'country_id' => 205,
      'id' => 350950,
      'labels' => [
      bless( {
      'release_id' => 350950,
      'catalog_number' => '50466-0406-2',
      'label_id' => 7198,
      'label' => bless( {
      'country_id' => 205,
      'end_date' => bless( {}, 'MusicBrainz::Server::Entity::PartialDate' ),
      'name' => 'Warner Music Taiwan',
      'begin_date' => bless( {}, 'MusicBrainz::Server::Entity::PartialDate' ),
      'edits_pending' => 0,
      'id' => 7198,
      'sort_name' => 'Warner Music Taiwan',
      'gid' => 'de51a23a-02b1-4737-aa3f-bf1483a765a1'
      }, 'MusicBrainz::Server::Entity::Label' ),
      'id' => 144958
      }, 'MusicBrainz::Server::Entity::ReleaseLabel' )
      ],
      'script_id' => 94,
      'quality' => '1',
      'status_id' => 1,
      'country' => bless(

      { 'iso_code' => 'TW', 'name' => 'Taiwan', 'id' => 205 }

      , 'MusicBrainz::Server::Entity::Country' ),
      'script' => bless(

      { 'frequency' => 4, 'iso_code' => 'Hant', 'name' => 'Han (Traditional variant)', 'iso_number' => '502', 'id' => 94 }

      , 'MusicBrainz::Server::Entity::Script' ),
      'last_updated' => bless( {
      'local_rd_secs' => 26711,
      'local_rd_days' => 734627,
      'rd_nanosecs' => 119930000,
      'locale' => \$VAR1->

      {'release'} {'latest_annotation'} {'creation_date'} {'locale'}

      ,
      'local_c' =>

      { 'hour' => 7, 'second' => 11, 'month' => 5, 'quarter' => 2, 'day_of_year' => 125, 'day_of_quarter' => 34, 'minute' => 25, 'day' => 4, 'day_of_week' => 5, 'year' => 2012 }

      ,
      'utc_rd_secs' => 26711,
      'formatter' => undef,
      'tz' => bless(

      { 'name' => 'UTC' }

      , 'DateTime::TimeZone::UTC' ),
      'utc_year' => 2013,
      'utc_rd_days' => 734627,
      'offset_modifier' => 0
      }, 'DateTime' ),
      'language' => bless(

      { 'iso_code_2' => 'zh', 'frequency' => 2, 'iso_code_3t' => 'zho', 'name' => 'Chinese', 'id' => 76, 'iso_code_3b' => 'chi' }

      , 'MusicBrainz::Server::Entity::Language' ),
      'artist_credit_id' => 138350,
      'name' => \"
      x

      {767c}\\x{71d2}\",
      'artist_credit' => bless( {
      'names' => [
      bless( {
      'join_phrase' => '',
      'artist' => bless( {
      'comment' => undef,
      'name' => \"\\x{5f35}\\x{60e0}\\x{59b9}\",
      'id' => 138350,
      'sort_name' => 'A-Mei',
      'gid' => 'aeacef89-e4f3-415e-ac9b-0864f438e6a3'
      }, 'MusicBrainz::Server::Entity::Artist' ),
      'artist_id' => 138350,
      'name' => \"
      x{5f35}\\x{60e0}\\x{59b9}\"
      }, 'MusicBrainz::Server::Entity::ArtistCreditName' )
      ],
      'id' => '138350',
      'artist_count' => 1
      }, 'MusicBrainz::Server::Entity::ArtistCredit' ),
      'barcode' => bless( { 'code' => '5050466040626' }, 'MusicBrainz::Server::Entity::Barcode' ),
      'language_id' => 76,
      'cover_art_presence' => 'present',
      'gid' => 'e02657f2-5497-4009-a4ab-ba9ef8b4d093'
      }, 'MusicBrainz::Server::Entity::Release' ),
      'new_types' => [
      ''
      ],
      'old_types' => [
      8
      ],
      'old_comment' => 'unknown part'
      };


      Attribute (data) does not pass the type constraint because: Validation failed for 'MooseX::Types::Structured::Dict[entity,MooseX::Types::Structured::Dict[id,Int,name,Str,mbid,Str],id,Int,old,MooseX::Types::Structured::Dict[types,MooseX::Types::Structured::Optional[ArrayRef[Int]],comment,MooseX::Types::Structured::Optional[Str]],new,MooseX::Types::Structured::Dict[types,MooseX::Types::Structured::Optional[ArrayRef[Int]],comment,MooseX::Types::Structured::Optional[Str]]]' with value { entity: { id: 350950, mbid: \"e02657f2-5497-4009-a4ab-ba9ef8b4d093\", name: \"\x{767c}

      \x

      {71d2}

      \" }, id: 858718290, new:

      { types: ARRAY(0xd4c7930) }

      , old:

      { types: ARRAY(0xd565448) }

      } at accessor MusicBrainz::Server::Edit::Release::EditCoverArt::data (defined at lib/MusicBrainz/Server/Edit/Release/EditCoverArt.pm line 36) line 4
      MusicBrainz::Server::Edit::Release::EditCoverArt::data('MusicBrainz::Server::Edit::Release::EditCoverArt=HASH(0xf67db48)', 'HASH(0xf6c4b28)') called at lib/MusicBrainz/Server/Edit/Release/EditCoverArt.pm line 63
      MusicBrainz::Server::Edit::Release::EditCoverArt::initialize('MusicBrainz::Server::Edit::Release::EditCoverArt=HASH(0xf67db48)', 'artwork_id', 858718290, 'new_comment', 'unknown part', 'release', 'MusicBrainz::Server::Entity::Release=HASH(0xd179ac8)', 'new_types', 'ARRAY(0xd4c7930)', 'old_types', 'ARRAY(0xd565448)', 'old_comment', 'unknown part') called at lib/MusicBrainz/Server/Data/Edit.pm line 350
      MusicBrainz::Server::Data::Edit::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval

      {...} called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xf67dba8)', 'Try::Tiny::Catch=REF(0xf6deda8)') called at lib/MusicBrainz/Server/Data/Edit.pm line 360
      MusicBrainz::Server::Data::Edit::create('MusicBrainz::Server::Data::Edit=HASH(0xabe6a10)', 'editor_id', 220174, 'privileges', 1, 'artwork_id', 858718290, 'new_comment', 'unknown part', 'new_types', 'ARRAY(0xd4c7930)', 'release', 'MusicBrainz::Server::Entity::Release=HASH(0xd179ac8)', 'edit_type', 316, 'old_types', 'ARRAY(0xd565448)', 'old_comment', 'unknown part') called at lib/MusicBrainz/Server/Controller.pm line 85
      MusicBrainz::Server::Controller::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xd565730)', 'Try::Tiny::Catch=REF(0xd563c78)') called at lib/MusicBrainz/Server/Controller.pm line 101
      MusicBrainz::Server::Controller::_insert_edit('MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Form::Release::EditCoverArt=HASH(0xd1ce840)', 'edit_type', 316, 'release', 'MusicBrainz::Server::Entity::Release=HASH(0xd179ac8)', 'artwork_id', 858718290, 'old_types', 'ARRAY(0xd565448)', 'old_comment', 'unknown part', 'new_types', 'ARRAY(0xd4c7930)', 'new_comment', 'unknown part') called at lib/MusicBrainz/Server/Controller/Release.pm line 673
      MusicBrainz::Server::Controller::Release::edit_cover_art('MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc4cc5d8)', 'MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst.pm line 1667
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4cc5d8)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4cc5d8)') called at lib/MusicBrainz/Server.pm line 316
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4cc5d8)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc4cc5d8)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst/ActionChain.pm line 38
      Catalyst::ActionChain::dispatch('Catalyst::ActionChain=HASH(0xcd613b8)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst/Controller.pm line 125
      Catalyst::Controller::_ACTION('MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc4c61c0)', 'MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst.pm line 1667
      eval {...}

      called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c61c0)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c61c0)') called at lib/MusicBrainz/Server.pm line 316
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c61c0)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc4c61c0)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x42903f0)', 'forward', 'MusicBrainz::Server=HASH(0xcb16a30)', '_ACTION') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x42903f0)', 'MusicBrainz::Server=HASH(0xcb16a30)', '_ACTION') called at local/lib/perl5/Catalyst.pm line 342
      Catalyst::forward('MusicBrainz::Server=HASH(0xcb16a30)', '_ACTION') called at local/lib/perl5/Catalyst/Controller.pm line 99
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0xc4c5ae8)', 'MusicBrainz::Server::Controller::Release=HASH(0xc1291d0)', 'MusicBrainz::Server=HASH(0xcb16a30)', 858718290) called at local/lib/perl5/Catalyst.pm line 1667
      eval

      {...} called at local/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c5ae8)') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c5ae8)') called at lib/MusicBrainz/Server.pm line 316
      MusicBrainz::Server::execute('MusicBrainz::Server=HASH(0xcb16a30)', 'MusicBrainz::Server::Controller::Release', 'Catalyst::Action=HASH(0xc4c5ae8)') called at local/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0xc4c5ae8)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x42903f0)', 'forward', 'MusicBrainz::Server=HASH(0xcb16a30)', '/release/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x42903f0)', 'MusicBrainz::Server=HASH(0xcb16a30)', '/release/_DISPATCH') called at local/lib/perl5/Catalyst.pm line 342
      Catalyst::forward('MusicBrainz::Server=HASH(0xcb16a30)', '/release/_DISPATCH') called at local/lib/perl5/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x42903f0)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst.pm line 1613
      Catalyst::dispatch('MusicBrainz::Server=HASH(0xcb16a30)') called at lib/MusicBrainz/Server.pm line 280
      Class::MOP::Class:::around('CODE(0x3e46ea0)', 'MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0xcb16a30)') called at local/lib/perl5/Catalyst.pm line 1963
      Catalyst::_ANON_() called at local/lib/perl5/Try/Tiny.pm line 76
      eval {...}

      called at local/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try('CODE(0xc6f6fb8)', 'Try::Tiny::Catch=REF(0xcd55570)') called at local/lib/perl5/Catalyst.pm line 1969
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc6f7348)') called at lib/Catalyst/Plugin/AutoRestart.pm line 119
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0xc6f7348)') called at local/lib/perl5/Catalyst/Engine.pm line 856
      Catalyst::Engine::_ANON_('CODE(0xc6f7270)') called at local/lib/perl5/Plack/Handler/FCGI.pm line 134
      Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x22e1a30)', 'CODE(0xc6921d0)') called at local/lib/perl5/Plack/Loader.pm line 88
      Plack::Loader::run('Plack::Loader=HASH(0x22aae00)', 'Plack::Handler::FCGI=HASH(0x22e1a30)') called at local/lib/perl5/Plack/Runner.pm line 263
      Plack::Runner::run('Plack::Runner=HASH(0x20ad808)') called at local/bin/plackup line 10
      at lib/MusicBrainz/Server/Data/Edit.pm line 360
      ";
      at lib/MusicBrainz/Server/Controller.pm line 101"

      Stack trace:
      line 97 MusicBrainz::Server::Controller
      line 101 MusicBrainz::Server::Controller
      line 673 MusicBrainz::Server::Controller::Release
      line 316 MusicBrainz::Server
      line 316 MusicBrainz::Server
      line 316 MusicBrainz::Server
      line 280 MusicBrainz::Server

      Request data:
      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' =>

      { 'edit-cover-art.comment' => 'unknown part', 'edit-cover-art.type_id' => '', 'edit-cover-art.as_auto_editor' => '1', 'edit-cover-art.edit_note' => 'Edit #17498373' }

      };

            Unassigned Unassigned
            foolip Philip Jägenstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package