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

Changing cover art type from "other" to unset causes Internal Server Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Schema change, 2012-05-15
    • None
    • None
    • None
    • Firefox 12.0
      Windows 7 x64

      Tried to change image type ( http://musicbrainz.org/release/4d65a72e-267e-3049-90cc-1b6952020e11/edit-cover-art/842255015 ) and got the following Internal Server Error:

      Error:
      
      Caught exception in MusicBrainz::Server::Controller::Release->edit_cover_art "The edit could not be created.
      POST: $VAR1 = {
                'edit-cover-art.comment' => 'inner tray',
                'edit-cover-art.type_id' => '',
                'edit-cover-art.as_auto_editor' => '1',
                'edit-cover-art.edit_note' => ''
              };
      
      Exception:$VAR1 = 'Could not create MusicBrainz::Server::Edit::Release::EditCoverArt edit
      
      $VAR1 = {
                \'artwork_id\' => \'842255015\',
                \'new_comment\' => \'inner tray\',
                \'release\' => bless( {
                                      \'packaging_id\' => 1,
                                      \'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\' => 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\' => 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\' => 259,
                                                                  \'relationships\' => [
                                                                                       bless( {
                                                                                                \'link\' => bless( {
                                                                                                                   \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'type_id\' => 284,
                                                                                                                   \'type\' => bless( {
                                                                                                                                      \'entity0_type\' => \'release_group\',
                                                                                                                                      \'priority\' => 0,
                                                                                                                                      \'name\' => \'allmusic\',
                                                                                                                                      \'description\' => \'This relationship links an artist, release group, work or recording to its corresponding page on allmusic. (Details)\',
                                                                                                                                      \'parent_id\' => 96,
                                                                                                                                      \'short_link_phrase\' => \'has an Allmusic page at\',
                                                                                                                                      \'link_phrase\' => \'Allmusic\',
                                                                                                                                      \'entity1_type\' => \'url\',
                                                                                                                                      \'id\' => 284,
                                                                                                                                      \'reverse_link_phrase\' => \'Allmusic page for\',
                                                                                                                                      \'gid\' => \'a50a1d20-2b20-4d2c-9a29-eb771dd78386\',
                                                                                                                                      \'child_order\' => 0
                                                                                                                                    }, \'MusicBrainz::Server::Entity::LinkType\' ),
                                                                                                                   \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'id\' => 28614
                                                                                                                 }, \'MusicBrainz::Server::Entity::Link\' ),
                                                                                                \'last_updated\' => bless( {
                                                                                                                           \'local_rd_secs\' => 14409,
                                                                                                                           \'local_rd_days\' => 734508,
                                                                                                                           \'rd_nanosecs\' => 446294000,
                                                                                                                           \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'},
                                                                                                                           \'local_c\' => {
                                                                                                                                          \'hour\' => 4,
                                                                                                                                          \'second\' => 9,
                                                                                                                                          \'month\' => 1,
                                                                                                                                          \'quarter\' => 1,
                                                                                                                                          \'day_of_year\' => 6,
                                                                                                                                          \'day_of_quarter\' => 6,
                                                                                                                                          \'minute\' => 0,
                                                                                                                                          \'day\' => 6,
                                                                                                                                          \'day_of_week\' => 5,
                                                                                                                                          \'year\' => 2012
                                                                                                                                        },
                                                                                                                           \'utc_rd_secs\' => 14409,
                                                                                                                           \'formatter\' => undef,
                                                                                                                           \'tz\' => bless( {
                                                                                                                                            \'name\' => \'UTC\'
                                                                                                                                          }, \'DateTime::TimeZone::UTC\' ),
                                                                                                                           \'utc_year\' => 2013,
                                                                                                                           \'utc_rd_days\' => 734508,
                                                                                                                           \'offset_modifier\' => 0
                                                                                                                         }, \'DateTime\' ),
                                                                                                \'entity1_id\' => 1060639,
                                                                                                \'entity0_id\' => 36786,
                                                                                                \'edits_pending\' => 0,
                                                                                                \'direction\' => \'1\',
                                                                                                \'link_id\' => 28614,
                                                                                                \'entity1\' => bless( {
                                                                                                                      \'reference_count\' => 0,
                                                                                                                      \'url\' => bless( do{\\(my $o = \'http://allmusic.com/album/r503127\')}, \'URI::http\' ),
                                                                                                                      \'id\' => 1060639,
                                                                                                                      \'edits_pending\' => 0,
                                                                                                                      \'gid\' => \'00e28b4f-7d8a-455c-8d80-aabbbc382b58\'
                                                                                                                    }, \'MusicBrainz::Server::Entity::URL::Allmusic\' ),
                                                                                                \'entity0\' => $VAR1->{\'release\'}{\'release_group\'},
                                                                                                \'id\' => 111355
                                                                                              }, \'MusicBrainz::Server::Entity::Relationship\' ),
                                                                                       bless( {
                                                                                                \'link\' => bless( {
                                                                                                                   \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'type_id\' => 89,
                                                                                                                   \'type\' => bless( {
                                                                                                                                      \'entity0_type\' => \'release_group\',
                                                                                                                                      \'priority\' => 0,
                                                                                                                                      \'name\' => \'wikipedia\',
                                                                                                                                      \'description\' => \'Points to the Wikipedia page for this album. (Details)\',
                                                                                                                                      \'parent_id\' => 96,
                                                                                                                                      \'short_link_phrase\' => \'has a Wikipedia page at\',
                                                                                                                                      \'link_phrase\' => \'Wikipedia\',
                                                                                                                                      \'entity1_type\' => \'url\',
                                                                                                                                      \'id\' => 89,
                                                                                                                                      \'reverse_link_phrase\' => \'Wikipedia page for\',
                                                                                                                                      \'gid\' => \'6578f0e9-1ace-4095-9de8-6e517ddb1ceb\',
                                                                                                                                      \'child_order\' => 0
                                                                                                                                    }, \'MusicBrainz::Server::Entity::LinkType\' ),
                                                                                                                   \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'id\' => 6303
                                                                                                                 }, \'MusicBrainz::Server::Entity::Link\' ),
                                                                                                \'last_updated\' => bless( {
                                                                                                                           \'local_rd_secs\' => 59512,
                                                                                                                           \'local_rd_days\' => 734273,
                                                                                                                           \'rd_nanosecs\' => 155025000,
                                                                                                                           \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'},
                                                                                                                           \'local_c\' => {
                                                                                                                                          \'hour\' => 16,
                                                                                                                                          \'second\' => 52,
                                                                                                                                          \'month\' => 5,
                                                                                                                                          \'quarter\' => 2,
                                                                                                                                          \'day_of_year\' => 136,
                                                                                                                                          \'day_of_quarter\' => 46,
                                                                                                                                          \'minute\' => 31,
                                                                                                                                          \'day\' => 16,
                                                                                                                                          \'day_of_week\' => 1,
                                                                                                                                          \'year\' => 2011
                                                                                                                                        },
                                                                                                                           \'utc_rd_secs\' => 59512,
                                                                                                                           \'formatter\' => undef,
                                                                                                                           \'tz\' => bless( {
                                                                                                                                            \'name\' => \'UTC\'
                                                                                                                                          }, \'DateTime::TimeZone::UTC\' ),
                                                                                                                           \'utc_year\' => 2012,
                                                                                                                           \'utc_rd_days\' => 734273,
                                                                                                                           \'offset_modifier\' => 0
                                                                                                                         }, \'DateTime\' ),
                                                                                                \'entity1_id\' => 248424,
                                                                                                \'entity0_id\' => 36786,
                                                                                                \'edits_pending\' => 0,
                                                                                                \'direction\' => \'1\',
                                                                                                \'link_id\' => 6303,
                                                                                                \'entity1\' => bless( {
                                                                                                                      \'reference_count\' => 2,
                                                                                                                      \'url\' => bless( do{\\(my $o = \'http://en.wikipedia.org/wiki/Two_Worlds_(ATB_album)\')}, \'URI::http\' ),
                                                                                                                      \'id\' => 248424,
                                                                                                                      \'edits_pending\' => 0,
                                                                                                                      \'description\' => \'\',
                                                                                                                      \'gid\' => \'8b24f662-f7e3-4420-a36f-6adcb5b90dfa\'
                                                                                                                    }, \'MusicBrainz::Server::Entity::URL::Wikipedia\' ),
                                                                                                \'entity0\' => $VAR1->{\'release\'}{\'release_group\'},
                                                                                                \'id\' => 5841
                                                                                              }, \'MusicBrainz::Server::Entity::Relationship\' ),
                                                                                       bless( {
                                                                                                \'link\' => bless( {
                                                                                                                   \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'type_id\' => 93,
                                                                                                                   \'type\' => bless( {
                                                                                                                                      \'entity0_type\' => \'release_group\',
                                                                                                                                      \'priority\' => 0,
                                                                                                                                      \'name\' => \'lyrics\',
                                                                                                                                      \'description\' => \'Use this relationship to link to lyrics hosted by lyrics.wikia.com, directlyrics.com, lyricstatus.com or kasi-time.com ONLY! (Details)\',
                                                                                                                                      \'short_link_phrase\' => \'has lyrics available at\',
                                                                                                                                      \'link_phrase\' => \'lyrics page\',
                                                                                                                                      \'entity1_type\' => \'url\',
                                                                                                                                      \'id\' => 93,
                                                                                                                                      \'reverse_link_phrase\' => \'lyrics page for\',
                                                                                                                                      \'gid\' => \'156344d3-da8b-40c6-8b10-7b1c22727124\',
                                                                                                                                      \'child_order\' => 0
                                                                                                                                    }, \'MusicBrainz::Server::Entity::LinkType\' ),
                                                                                                                   \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'id\' => 6314
                                                                                                                 }, \'MusicBrainz::Server::Entity::Link\' ),
                                                                                                \'last_updated\' => bless( {
                                                                                                                           \'local_rd_secs\' => 14409,
                                                                                                                           \'local_rd_days\' => 734508,
                                                                                                                           \'rd_nanosecs\' => 464587000,
                                                                                                                           \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'},
                                                                                                                           \'local_c\' => {
                                                                                                                                          \'hour\' => 4,
                                                                                                                                          \'second\' => 9,
                                                                                                                                          \'month\' => 1,
                                                                                                                                          \'quarter\' => 1,
                                                                                                                                          \'day_of_year\' => 6,
                                                                                                                                          \'day_of_quarter\' => 6,
                                                                                                                                          \'minute\' => 0,
                                                                                                                                          \'day\' => 6,
                                                                                                                                          \'day_of_week\' => 5,
                                                                                                                                          \'year\' => 2012
                                                                                                                                        },
                                                                                                                           \'utc_rd_secs\' => 14409,
                                                                                                                           \'formatter\' => undef,
                                                                                                                           \'tz\' => bless( {
                                                                                                                                            \'name\' => \'UTC\'
                                                                                                                                          }, \'DateTime::TimeZone::UTC\' ),
                                                                                                                           \'utc_year\' => 2013,
                                                                                                                           \'utc_rd_days\' => 734508,
                                                                                                                           \'offset_modifier\' => 0
                                                                                                                         }, \'DateTime\' ),
                                                                                                \'entity1_id\' => 1060642,
                                                                                                \'entity0_id\' => 36786,
                                                                                                \'edits_pending\' => 0,
                                                                                                \'direction\' => \'1\',
                                                                                                \'link_id\' => 6314,
                                                                                                \'entity1\' => bless( {
                                                                                                                      \'reference_count\' => 0,
                                                                                                                      \'url\' => bless( do{\\(my $o = \'http://lyrics.wikia.com/ATB:Two_Worlds_(2000)\')}, \'URI::http\' ),
                                                                                                                      \'id\' => 1060642,
                                                                                                                      \'edits_pending\' => 0,
                                                                                                                      \'gid\' => \'c6087478-6a07-43e0-9a66-4d039de7ffee\'
                                                                                                                    }, \'MusicBrainz::Server::Entity::URL::LyricWiki\' ),
                                                                                                \'entity0\' => $VAR1->{\'release\'}{\'release_group\'},
                                                                                                \'id\' => 111356
                                                                                              }, \'MusicBrainz::Server::Entity::Relationship\' ),
                                                                                       bless( {
                                                                                                \'link\' => bless( {
                                                                                                                   \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'type_id\' => 90,
                                                                                                                   \'type\' => bless( {
                                                                                                                                      \'entity0_type\' => \'release_group\',
                                                                                                                                      \'priority\' => 0,
                                                                                                                                      \'name\' => \'discogs\',
                                                                                                                                      \'description\' => \'Points to the Discogs page for this album. Always use the domain www.discogs.com and no genre subdomains. (Details)\',
                                                                                                                                      \'parent_id\' => 96,
                                                                                                                                      \'short_link_phrase\' => \'has a Discogs page at\',
                                                                                                                                      \'link_phrase\' => \'Discogs\',
                                                                                                                                      \'entity1_type\' => \'url\',
                                                                                                                                      \'id\' => 90,
                                                                                                                                      \'reverse_link_phrase\' => \'Discogs page for\',
                                                                                                                                      \'gid\' => \'99e550f3-5ab4-3110-b5b9-fe01d970b126\',
                                                                                                                                      \'child_order\' => 1
                                                                                                                                    }, \'MusicBrainz::Server::Entity::LinkType\' ),
                                                                                                                   \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                                                   \'id\' => 6309
                                                                                                                 }, \'MusicBrainz::Server::Entity::Link\' ),
                                                                                                \'last_updated\' => bless( {
                                                                                                                           \'local_rd_secs\' => 46809,
                                                                                                                           \'local_rd_days\' => 734474,
                                                                                                                           \'rd_nanosecs\' => 637362000,
                                                                                                                           \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'},
                                                                                                                           \'local_c\' => {
                                                                                                                                          \'hour\' => 13,
                                                                                                                                          \'second\' => 9,
                                                                                                                                          \'month\' => 12,
                                                                                                                                          \'quarter\' => 4,
                                                                                                                                          \'day_of_year\' => 337,
                                                                                                                                          \'day_of_quarter\' => 64,
                                                                                                                                          \'minute\' => 0,
                                                                                                                                          \'day\' => 3,
                                                                                                                                          \'day_of_week\' => 6,
                                                                                                                                          \'year\' => 2011
                                                                                                                                        },
                                                                                                                           \'utc_rd_secs\' => 46809,
                                                                                                                           \'formatter\' => undef,
                                                                                                                           \'tz\' => bless( {
                                                                                                                                            \'name\' => \'UTC\'
                                                                                                                                          }, \'DateTime::TimeZone::UTC\' ),
                                                                                                                           \'utc_year\' => 2012,
                                                                                                                           \'utc_rd_days\' => 734474,
                                                                                                                           \'offset_modifier\' => 0
                                                                                                                         }, \'DateTime\' ),
                                                                                                \'entity1_id\' => 994177,
                                                                                                \'entity0_id\' => 36786,
                                                                                                \'edits_pending\' => 0,
                                                                                                \'direction\' => \'1\',
                                                                                                \'link_id\' => 6309,
                                                                                                \'entity1\' => bless( {
                                                                                                                      \'reference_count\' => 0,
                                                                                                                      \'url\' => bless( do{\\(my $o = \'http://www.discogs.com/master/23011\')}, \'URI::http\' ),
                                                                                                                      \'id\' => 994177,
                                                                                                                      \'edits_pending\' => 0,
                                                                                                                      \'gid\' => \'98c52da5-b722-4d88-8c00-e2f94139c106\'
                                                                                                                    }, \'MusicBrainz::Server::Entity::URL::Discogs\' ),
                                                                                                \'entity0\' => $VAR1->{\'release\'}{\'release_group\'},
                                                                                                \'id\' => 69030
                                                                                              }, \'MusicBrainz::Server::Entity::Relationship\' )
                                                                                     ],
                                                                  \'name\' => \'Two Worlds\',
                                                                  \'release_count\' => 14,
                                                                  \'edits_pending\' => 0,
                                                                  \'first_release_date\' => bless( {
                                                                                                   \'month\' => 11,
                                                                                                   \'day\' => 2,
                                                                                                   \'year\' => 2000
                                                                                                 }, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                  \'type_id\' => 1,
                                                                  \'type\' => bless( {
                                                                                     \'name\' => \'Album\',
                                                                                     \'id\' => 1
                                                                                   }, \'MusicBrainz::Server::Entity::ReleaseGroupType\' ),
                                                                  \'id\' => 36786,
                                                                  \'gid\' => \'2228f3d9-51d8-3e1a-bcbd-e22f8ffac3dd\'
                                                                }, \'MusicBrainz::Server::Entity::ReleaseGroup\' ),
                                      \'cover_art_url\' => \'http://ecx.images-amazon.com/images/I/31E41N6YBNL.jpg\',
                                      \'date\' => bless( {
                                                         \'month\' => 11,
                                                         \'day\' => 6,
                                                         \'year\' => 2000
                                                       }, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                      \'relationships\' => [
                                                           bless( {
                                                                    \'link\' => bless( {
                                                                                       \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ),
                                                                                       \'type_id\' => 77,
                                                                                       \'type\' => bless( {
                                                                                                          \'entity0_type\' => \'release\',
                                                                                                          \'priority\' => 0,
                                                                                                          \'name\' => \'amazon asin\',
                                                                                                          \'description\' => \'This link type is used for Amazon ASINs. This allows users to link to the Amazon pages to show the right cover art if MusicBrainz does not have the right ASIN link already. 
      
      Paste any URL to any Amazon product page that contains an Amazon ASIN and the ASIN will be parsed from that URL. (Details)\', \'parent_id\' => 81, \'short_link_phrase\' => \'has Amazon ASIN\', \'link_phrase\' => \'ASIN\', \'entity1_type\' => \'url\', \'id\' => 77, \'reverse_link_phrase\' => \'ASIN\', \'gid\' => \'4f2e710d-166c-480c-a293-2e2c8d658d87\', \'child_order\' => 0 }, \'MusicBrainz::Server::Entity::LinkType\' ), \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'id\' => 6300 }, \'MusicBrainz::Server::Entity::Link\' ), \'last_updated\' => bless( { \'local_rd_secs\' => 43247, \'local_rd_days\' => 734473, \'rd_nanosecs\' => 93831000, \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'}, \'local_c\' => { \'hour\' => 12, \'second\' => 47, \'month\' => 12, \'quarter\' => 4, \'day_of_year\' => 336, \'day_of_quarter\' => 63, \'minute\' => 0, \'day\' => 2, \'day_of_week\' => 5, \'year\' => 2011 }, \'utc_rd_secs\' => 43247, \'formatter\' => undef, \'tz\' => bless( { \'name\' => \'UTC\' }, \'DateTime::TimeZone::UTC\' ), \'utc_year\' => 2012, \'utc_rd_days\' => 734473, \'offset_modifier\' => 0 }, \'DateTime\' ), \'entity1_id\' => 914039, \'entity0_id\' => 405327, \'edits_pending\' => 0, \'direction\' => \'1\', \'link_id\' => 6300, \'entity1\' => bless( { \'reference_count\' => 0, \'url\' => bless( do{\\(my $o = \'http://www.amazon.de/gp/product/B000050X33\')}, \'URI::http\' ), \'id\' => 914039, \'edits_pending\' => 0, \'gid\' => \'c7bfb044-a02c-430a-940a-1362868fb859\' }, \'MusicBrainz::Server::Entity::URL::ASIN\' ), \'entity0\' => $VAR1->{\'release\'}, \'id\' => 653069 }, \'MusicBrainz::Server::Entity::Relationship\' ), bless( { \'link\' => bless( { \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'type_id\' => 76, \'type\' => bless( { \'entity0_type\' => \'release\', \'priority\' => 0, \'name\' => \'discogs\', \'description\' => \'Points to the Discogs page for this album. Always use the domain www.discogs.com and no genre subdomains. (Details)\', \'parent_id\' => 82, \'short_link_phrase\' => \'has a Discogs page at\', \'link_phrase\' => \'Discogs\', \'entity1_type\' => \'url\', \'id\' => 76, \'reverse_link_phrase\' => \'Discogs page for\', \'gid\' => \'4a78823c-1c53-4176-a5f3-58026c76f2bc\', \'child_order\' => 1 }, \'MusicBrainz::Server::Entity::LinkType\' ), \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'id\' => 6301 }, \'MusicBrainz::Server::Entity::Link\' ), \'last_updated\' => bless( { \'local_rd_secs\' => 36010, \'local_rd_days\' => 734457, \'rd_nanosecs\' => 203132000, \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'}, \'local_c\' => { \'hour\' => 10, \'second\' => 10, \'month\' => 11, \'quarter\' => 4, \'day_of_year\' => 320, \'day_of_quarter\' => 47, \'minute\' => 0, \'day\' => 16, \'day_of_week\' => 3, \'year\' => 2011 }, \'utc_rd_secs\' => 36010, \'formatter\' => undef, \'tz\' => bless( { \'name\' => \'UTC\' }, \'DateTime::TimeZone::UTC\' ), \'utc_year\' => 2012, \'utc_rd_days\' => 734457, \'offset_modifier\' => 0 }, \'DateTime\' ), \'entity1_id\' => 398261, \'entity0_id\' => 405327, \'edits_pending\' => 0, \'direction\' => \'1\', \'link_id\' => 6301, \'entity1\' => bless( { \'reference_count\' => 2, \'url\' => bless( do{\\(my $o = \'http://www.discogs.com/release/17529\')}, \'URI::http\' ), \'id\' => 398261, \'edits_pending\' => 0, \'description\' => \'\', \'gid\' => \'7e8cb488-b4e4-4946-8c00-b642cf91e10d\' }, \'MusicBrainz::Server::Entity::URL::Discogs\' ), \'entity0\' => $VAR1->{\'release\'}, \'id\' => 84682 }, \'MusicBrainz::Server::Entity::Relationship\' ) ], \'edits_pending\' => 1, \'release_group_id\' => 36786, \'mediums\' => [ bless( { \'format_id\' => 1, \'release_id\' => 405327, \'position\' => 1, \'name\' => \'The World of Movement\', \'release\' => $VAR1->{\'release\'}, \'edits_pending\' => 0, \'tracklist\' => bless( { \'track_count\' => 11, \'id\' => 1214380 }, \'MusicBrainz::Server::Entity::Tracklist\' ), \'format\' => bless( { \'name\' => \'CD\', \'has_discids\' => \'1\', \'id\' => 1, \'child_order\' => 0, \'year\' => 1982 }, \'MusicBrainz::Server::Entity::MediumFormat\' ), \'id\' => 405327, \'tracklist_id\' => 1214380 }, \'MusicBrainz::Server::Entity::Medium\' ), bless( { \'format_id\' => 1, \'release_id\' => 405327, \'position\' => 2, \'name\' => \'The Relaxing World\', \'release\' => $VAR1->{\'release\'}, \'edits_pending\' => 0, \'tracklist\' => bless( { \'track_count\' => 9, \'id\' => 1214379 }, \'MusicBrainz::Server::Entity::Tracklist\' ), \'format\' => $VAR1->{\'release\'}{\'mediums\'}[0]{\'format\'}, \'id\' => 405328, \'tracklist_id\' => 1214379 }, \'MusicBrainz::Server::Entity::Medium\' ) ], \'packaging\' => bless( { \'name\' => \'Jewel Case\', \'id\' => 1 }, \'MusicBrainz::Server::Entity::ReleasePackaging\' ), \'country_id\' => 81, \'info_url\' => \'http://www.amazon.de/gp/product/B000050X33\', \'id\' => 405327, \'labels\' => [ bless( { \'release_id\' => 405327, \'catalog_number\' => \'159449-2\', \'label_id\' => 3905, \'label\' => bless( { \'last_updated\' => bless( { \'local_rd_secs\' => 18007, \'local_rd_days\' => 734349, \'locale\' => bless( { \'native_language\' => \'English\', \'native_territory\' => \'United States\', \'default_time_format_length\' => \'medium\', \'native_complete_name\' => \'English United States\', \'en_language\' => \'English\', \'id\' => \'en_US\', \'default_date_format_length\' => \'medium\', \'en_territory\' => \'United States\', \'en_complete_name\' => \'English United States\' }, \'DateTime::Locale::en_US\' ), \'rd_nanosecs\' => 590560000, \'utc_rd_secs\' => 18007, \'local_c\' => { \'hour\' => 5, \'second\' => 7, \'month\' => 7, \'quarter\' => 3, \'day_of_year\' => 212, \'day_of_quarter\' => 31, \'minute\' => 0, \'day\' => 31, \'day_of_week\' => 7, \'year\' => 2011 }, \'formatter\' => undef, \'utc_year\' => 2012, \'tz\' => bless( { \'name\' => \'UTC\' }, \'DateTime::TimeZone::UTC\' ), \'offset_modifier\' => 0, \'utc_rd_days\' => 734349 }, \'DateTime\' ), \'label_code\' => 6748, \'name\' => \'Urban\', \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'edits_pending\' => 0, \'country_id\' => 81, \'comment\' => \'German techno later rap/r&b division of Universal\', \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'type_id\' => 4, \'id\' => 3905, \'sort_name\' => \'Urban\', \'gid\' => \'fcbb1055-4bd4-4f94-9b02-4740aedea493\' }, \'MusicBrainz::Server::Entity::Label\' ), \'id\' => 628899 }, \'MusicBrainz::Server::Entity::ReleaseLabel\' ), bless( { \'release_id\' => 405327, \'catalog_number\' => \'Kontor122\', \'label_id\' => 3176, \'label\' => bless( { \'last_updated\' => bless( { \'local_rd_secs\' => 28858, \'local_rd_days\' => 734324, \'locale\' => bless( { \'native_language\' => \'English\', \'native_territory\' => \'United States\', \'default_time_format_length\' => \'medium\', \'native_complete_name\' => \'English United States\', \'en_language\' => \'English\', \'id\' => \'en_US\', \'default_date_format_length\' => \'medium\', \'en_territory\' => \'United States\', \'en_complete_name\' => \'English United States\' }, \'DateTime::Locale::en_US\' ), \'rd_nanosecs\' => 765013000, \'utc_rd_secs\' => 28858, \'local_c\' => { \'hour\' => 8, \'second\' => 58, \'month\' => 7, \'quarter\' => 3, \'day_of_year\' => 187, \'day_of_quarter\' => 6, \'minute\' => 0, \'day\' => 6, \'day_of_week\' => 3, \'year\' => 2011 }, \'formatter\' => undef, \'utc_year\' => 2012, \'tz\' => bless( { \'name\' => \'UTC\' }, \'DateTime::TimeZone::UTC\' ), \'offset_modifier\' => 0, \'utc_rd_days\' => 734324 }, \'DateTime\' ), \'label_code\' => 2182, \'name\' => \'Kontor Records\', \'begin_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'edits_pending\' => 0, \'ipi_code\' => \'00576868678\', \'country_id\' => 81, \'end_date\' => bless( {}, \'MusicBrainz::Server::Entity::PartialDate\' ), \'id\' => 3176, \'sort_name\' => \'Kontor Records\', \'gid\' => \'80a56767-52fd-4a44-9fbd-fc85f7af3763\' }, \'MusicBrainz::Server::Entity::Label\' ), \'id\' => 543704 }, \'MusicBrainz::Server::Entity::ReleaseLabel\' ) ], \'script_id\' => 28, \'quality\' => \'1\', \'status_id\' => 1, \'country\' => bless( { \'iso_code\' => \'DE\', \'name\' => \'Germany\', \'id\' => 81 }, \'MusicBrainz::Server::Entity::Country\' ), \'script\' => bless( { \'frequency\' => 4, \'iso_code\' => \'Latn\', \'iso_number\' => \'215\', \'name\' => \'Latin\', \'id\' => 28 }, \'MusicBrainz::Server::Entity::Script\' ), \'last_updated\' => bless( { \'local_rd_secs\' => 52641, \'local_rd_days\' => 734625, \'rd_nanosecs\' => 227646000, \'locale\' => $VAR1->{\'release\'}{\'release_group\'}{\'last_updated\'}{\'locale\'}, \'local_c\' => { \'hour\' => 14, \'second\' => 21, \'month\' => 5, \'quarter\' => 2, \'day_of_year\' => 123, \'day_of_quarter\' => 32, \'minute\' => 37, \'day\' => 2, \'day_of_week\' => 3, \'year\' => 2012 }, \'utc_rd_secs\' => 52641, \'formatter\' => undef, \'tz\' => bless( { \'name\' => \'UTC\' }, \'DateTime::TimeZone::UTC\' ), \'utc_year\' => 2013, \'utc_rd_days\' => 734625, \'offset_modifier\' => 0 }, \'DateTime\' ), \'language\' => bless( { \'frequency\' => 2, \'iso_code_2\' => \'en\', \'iso_code_3t\' => \'eng\', \'name\' => \'English\', \'id\' => 120, \'iso_code_3b\' => \'eng\' }, \'MusicBrainz::Server::Entity::Language\' ), \'artist_credit_id\' => 259, \'name\' => \'Two Worlds\', \'artist_credit\' => bless( { \'names\' => [ bless( { \'join_phrase\' => \'\', \'artist\' => bless( { \'comment\' => undef, \'name\' => \'ATB\', \'id\' => 259, \'sort_name\' => \'ATB\', \'gid\' => \'22a096ef-c70d-4d70-ae19-4fc2412d4986\' }, \'MusicBrainz::Server::Entity::Artist\' ), \'artist_id\' => 259, \'name\' => \'ATB\' }, \'MusicBrainz::Server::Entity::ArtistCreditName\' ) ], \'id\' => \'259\', \'artist_count\' => 1 }, \'MusicBrainz::Server::Entity::ArtistCredit\' ), \'barcode\' => bless( { \'code\' => \'601215944921\' }, \'MusicBrainz::Server::Entity::Barcode\' ), \'amazon_asin\' => \'B000050X33\', \'language_id\' => 120, \'cover_art_presence\' => \'present\', \'gid\' => \'4d65a72e-267e-3049-90cc-1b6952020e11\' }, \'MusicBrainz::Server::Entity::Release\' ), \'new_types\' => [ \'\' ], \'old_types\' => [ 8 ], \'old_comment\' => \'inner tray\' }; 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: 405327, mbid: "4d65a72e-267e-3049-90cc-1b6952020e11", name: "Two Worlds" }, id: 842255015, new: { types: ARRAY(0xc0aafc8) }, old: { types: ARRAY(0xc146ea0) } } 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(0xe26e980)\', \'HASH(0xe2b56c0)\') called at lib/MusicBrainz/Server/Edit/Release/EditCoverArt.pm line 63 MusicBrainz::Server::Edit::Release::EditCoverArt::initialize(\'MusicBrainz::Server::Edit::Release::EditCoverArt=HASH(0xe26e980)\', \'artwork_id\', 842255015, \'new_comment\', \'inner tray\', \'release\', \'MusicBrainz::Server::Entity::Release=HASH(0xbc74b50)\', \'new_types\', \'ARRAY(0xc0aafc8)\', \'old_types\', \'ARRAY(0xc146ea0)\', \'old_comment\', \'inner tray\') 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(0xe26e9e0)\', \'Try::Tiny::Catch=REF(0xe2d1a60)\') called at lib/MusicBrainz/Server/Data/Edit.pm line 360 MusicBrainz::Server::Data::Edit::create(\'MusicBrainz::Server::Data::Edit=HASH(0x9677750)\', \'editor_id\', 495807, \'privileges\', 1, \'artwork_id\', 842255015, \'new_comment\', \'inner tray\', \'new_types\', \'ARRAY(0xc0aafc8)\', \'release\', \'MusicBrainz::Server::Entity::Release=HASH(0xbc74b50)\', \'edit_type\', 316, \'old_types\', \'ARRAY(0xc146ea0)\', \'old_comment\', \'inner tray\') 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(0xc147188)\', \'Try::Tiny::Catch=REF(0xc103288)\') called at lib/MusicBrainz/Server/Controller.pm line 101 MusicBrainz::Server::Controller::_insert_edit(\'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Form::Release::EditCoverArt=HASH(0xbd91ef8)\', \'edit_type\', 316, \'release\', \'MusicBrainz::Server::Entity::Release=HASH(0xbc74b50)\', \'artwork_id\', 842255015, \'old_types\', \'ARRAY(0xc146ea0)\', \'old_comment\', \'inner tray\', \'new_types\', \'ARRAY(0xc0aafc8)\', \'new_comment\', \'inner tray\') called at lib/MusicBrainz/Server/Controller/Release.pm line 673 MusicBrainz::Server::Controller::Release::edit_cover_art(\'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute(\'Catalyst::Action=HASH(0xadfa170)\', \'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst.pm line 1667 eval {...} called at local/lib/perl5/Catalyst.pm line 1667 Catalyst::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xadfa170)\') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94 Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xadfa170)\') called at lib/MusicBrainz/Server.pm line 316 MusicBrainz::Server::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xadfa170)\') called at local/lib/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0xadfa170)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') called at local/lib/perl5/Catalyst/ActionChain.pm line 38 Catalyst::ActionChain::dispatch(\'Catalyst::ActionChain=HASH(0xb882008)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') called at local/lib/perl5/Catalyst/Controller.pm line 125 Catalyst::Controller::_ACTION(\'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute(\'Catalyst::Action=HASH(0xaf56d20)\', \'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst.pm line 1667 eval {...} called at local/lib/perl5/Catalyst.pm line 1667 Catalyst::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56d20)\') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94 Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56d20)\') called at lib/MusicBrainz/Server.pm line 316 MusicBrainz::Server::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56d20)\') called at local/lib/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0xaf56d20)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257 Catalyst::Dispatcher::_do_forward(\'Catalyst::Dispatcher=HASH(0x2f5bfb0)\', \'forward\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', \'_ACTION\') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237 Catalyst::Dispatcher::forward(\'Catalyst::Dispatcher=HASH(0x2f5bfb0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', \'_ACTION\') called at local/lib/perl5/Catalyst.pm line 342 Catalyst::forward(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'_ACTION\') called at local/lib/perl5/Catalyst/Controller.pm line 99 Catalyst::Controller::_DISPATCH(\'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst/Action.pm line 65 Catalyst::Action::execute(\'Catalyst::Action=HASH(0xaf56648)\', \'MusicBrainz::Server::Controller::Release=HASH(0xabb58e0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', 842255015) called at local/lib/perl5/Catalyst.pm line 1667 eval {...} called at local/lib/perl5/Catalyst.pm line 1667 Catalyst::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56648)\') called at local/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94 Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56648)\') called at lib/MusicBrainz/Server.pm line 316 MusicBrainz::Server::execute(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xaf56648)\') called at local/lib/perl5/Catalyst/Action.pm line 60 Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0xaf56648)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') called at local/lib/perl5/Catalyst/Dispatcher.pm line 257 Catalyst::Dispatcher::_do_forward(\'Catalyst::Dispatcher=HASH(0x2f5bfb0)\', \'forward\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', \'/release/_DISPATCH\') called at local/lib/perl5/Catalyst/Dispatcher.pm line 237 Catalyst::Dispatcher::forward(\'Catalyst::Dispatcher=HASH(0x2f5bfb0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\', \'/release/_DISPATCH\') called at local/lib/perl5/Catalyst.pm line 342 Catalyst::forward(\'MusicBrainz::Server=HASH(0xb6f10f8)\', \'/release/_DISPATCH\') called at local/lib/perl5/Catalyst/Dispatcher.pm line 105 Catalyst::Dispatcher::dispatch(\'Catalyst::Dispatcher=HASH(0x2f5bfb0)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') called at local/lib/perl5/Catalyst.pm line 1613 Catalyst::dispatch(\'MusicBrainz::Server=HASH(0xb6f10f8)\') called at lib/MusicBrainz/Server.pm line 280 Class::MOP::Class:::around(\'CODE(0x28ded20)\', \'MusicBrainz::Server=HASH(0xb6f10f8)\') 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(0xb6f10f8)\') called at local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91 MusicBrainz::Server::dispatch(\'MusicBrainz::Server=HASH(0xb6f10f8)\') 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(0xb1a2390)\', \'Try::Tiny::Catch=REF(0xb87d7e0)\') called at local/lib/perl5/Catalyst.pm line 1969 Catalyst::handle_request(\'MusicBrainz::Server\', \'env\', \'HASH(0x39ea028)\') called at lib/Catalyst/Plugin/AutoRestart.pm line 119 Catalyst::Plugin::AutoRestart::handle_request(\'MusicBrainz::Server\', \'env\', \'HASH(0x39ea028)\') called at local/lib/perl5/Catalyst/Engine.pm line 856 Catalyst::Engine::__ANON__(\'CODE(0xb188478)\') called at local/lib/perl5/Plack/Handler/FCGI.pm line 134 Plack::Handler::FCGI::run(\'Plack::Handler::FCGI=HASH(0xd72a30)\', \'CODE(0xb0f5d18)\') called at local/lib/perl5/Plack/Loader.pm line 88 Plack::Loader::run(\'Plack::Loader=HASH(0xd3be00)\', \'Plack::Handler::FCGI=HASH(0xd72a30)\') called at local/lib/perl5/Plack/Runner.pm line 263 Plack::Runner::run(\'Plack::Runner=HASH(0xb3e808)\') 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' => 'inner tray',
                                       'edit-cover-art.type_id' => '',
                                       'edit-cover-art.as_auto_editor' => '1',
                                       'edit-cover-art.edit_note' => ''
                                     }
              };
                  
      
      URL: http://musicbrainz.org/release/4d65a72e-267e-3049-90cc-1b6952020e11/edit-cover-art/842255015 
      

            acid2 Oliver Charles
            sults MS
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                Schema change, 2012-05-15