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

Can't select position for cover art while adding it - ISE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: Cover Art Archive
    • Fix Version/s: Cover Art Archive
    • Component/s: None
    • Labels:
      None

      Description

      The image is added, but not in the position I asked for.

      Error:

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

      { 'add-cover-art.id' => '504727657', 'add-cover-art.type_id' => [ '2', '7' ], 'add-cover-art.position' => '1', 'add-cover-art.comment' => '', 'add-cover-art.edit_note' => '' }

      ;

      Exception:$VAR1 = 'Failed query:
      \'INSERT INTO cover_art_archive.cover_art (release, edit, ordering, id, comment)
      VALUES (?, ?, ?, ?, ?)\'
      (693455 16086446 1 504727657 )
      DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "cover_art_pkey"
      DETAIL: Key (id)=(504727657) already exists. at lib/Sql.pm line 103.

      at lib/Sql.pm line 109
      Sql::_ANON_(\'DBD::Pg::st execute failed: ERROR: duplicate key value viola...\') called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 100
      Try::Tiny::try(\'CODE(0xfcea3b8)\', \'Try::Tiny::Catch=REF(0xfcf0b78)\') called at lib/Sql.pm line 110
      Sql::do(\'Sql=HASH(0xd273100)\', \'INSERT INTO cover_art_archive.cover_art (release, edit, order...\', 693455, 16086446, 1, 504727657, \'\') called at lib/MusicBrainz/Server/Data/CoverArtArchive.pm line 125
      MusicBrainz::Server::Data::CoverArtArchive::insert_cover_art(\'MusicBrainz::Server::Data::CoverArtArchive=HASH(0xa9f9ac0)\', 693455, 16086446, 504727657, 1, \'ARRAY(0xdbaa840)\', \'\') called at lib/MusicBrainz/Server/Edit/Release/AddCoverArt.pm line 75
      MusicBrainz::Server::Edit::Release::AddCoverArt::insert(\'MusicBrainz::Server::Edit::Release::AddCoverArt=HASH(0xfc8bf98)\') called at lib/MusicBrainz/Server/Data/Edit.pm line 405
      MusicBrainz::Server::Data::Edit::_ANON_() called at lib/Sql.pm line 264
      Sql::_ANON_() called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 76
      eval

      {...} called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try(\'CODE(0xfcf0b00)\', \'Try::Tiny::Catch=REF(0xfcd1d90)\') called at lib/Sql.pm line 277
      Sql::_auto_transaction(\'CODE(0xfcde3b0)\', \'Sql=HASH(0xd273100)\') called at lib/Sql.pm line 282
      Sql::_run_in_transaction_one(\'CODE(0xfcde3b0)\', \'Sql=HASH(0xd273100)\') called at lib/Sql.pm line 296
      Sql::run_in_transaction(\'CODE(0xfcde3b0)\', \'Sql=HASH(0xd273100)\') called at lib/MusicBrainz/Server/Data/Edit.pm line 426
      MusicBrainz::Server::Data::Edit::create(\'MusicBrainz::Server::Data::Edit=HASH(0xac91be0)\', \'editor_id\', 326637, \'privileges\', 0, \'cover_art_types\', \'ARRAY(0xdbaa840)\', \'cover_art_id\', 504727657, ...) called at lib/MusicBrainz/Server/Controller.pm line 85
      MusicBrainz::Server::Controller::_ANON_() called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 76
      eval {...}

      called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try(\'CODE(0xdbaac60)\', \'Try::Tiny::Catch=REF(0xdb066d8)\') called at lib/MusicBrainz/Server/Controller.pm line 101
      MusicBrainz::Server::Controller::_insert_edit(\'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\', \'MusicBrainz::Server::Form::Release::AddCoverArt=HASH(0xd855bb8)\', \'edit_type\', 314, \'release\', \'MusicBrainz::Server::Entity::Release=HASH(0xd82ca48)\', \'cover_art_types\', \'ARRAY(0xdbaa840)\', ...) called at lib/MusicBrainz/Server/Controller/Release.pm line 443
      MusicBrainz::Server::Controller::Release::add_cover_art(\'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute(\'Catalyst::Action=HASH(0xc598db0)\', \'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1667
      eval

      {...} called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute(\'MusicBrainz::Server=HASH(0xd272f20)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xc598db0)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0xd272f20)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xc598db0)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0xc598db0)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/ActionChain.pm line 38
      Catalyst::ActionChain::dispatch(\'Catalyst::ActionChain=HASH(0xd882428)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Controller.pm line 125
      Catalyst::Controller::_ACTION(\'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute(\'Catalyst::Action=HASH(0xc594878)\', \'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1667
      eval {...}

      called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1667
      Catalyst::execute(\'MusicBrainz::Server=HASH(0xd272f20)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xc594878)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0xd272f20)\', \'MusicBrainz::Server::Controller::Release\', \'Catalyst::Action=HASH(0xc594878)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0xc594878)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward(\'Catalyst::Dispatcher=HASH(0x4295490)\', \'forward\', \'MusicBrainz::Server=HASH(0xd272f20)\', \'_ACTION\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward(\'Catalyst::Dispatcher=HASH(0x4295490)\', \'MusicBrainz::Server=HASH(0xd272f20)\', \'_ACTION\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 342
      Catalyst::forward(\'MusicBrainz::Server=HASH(0xd272f20)\', \'_ACTION\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Controller.pm line 99
      Catalyst::Controller::_DISPATCH(\'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Action.pm line 65
      Catalyst::Action::execute(\'Catalyst::Action=HASH(0xc5941a0)\', \'MusicBrainz::Server::Controller::Release=HASH(0xc1f2a30)\', \'MusicBrainz::Server=HASH(0xd272f20)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1667
      eval

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

      called at /home/musicbrainz/perl5/lib/perl5/Try/Tiny.pm line 67
      Try::Tiny::try(\'CODE(0xc7b71a0)\', \'Try::Tiny::Catch=REF(0xd87bb58)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst.pm line 1969
      Catalyst::handle_request(\'MusicBrainz::Server\', \'env\', \'HASH(0xc7e5878)\') called at /home/musicbrainz/perl5/lib/perl5/Catalyst/Engine.pm line 856
      Catalyst::Engine::_ANON_(\'CODE(0xc7bf5b8)\') called at /home/musicbrainz/perl5/lib/perl5/Plack/Handler/FCGI.pm line 134
      Plack::Handler::FCGI::run(\'Plack::Handler::FCGI=HASH(0x22c0928)\', \'CODE(0xc75ebd8)\') called at /home/musicbrainz/perl5/lib/perl5/Plack/Loader.pm line 88
      Plack::Loader::run(\'Plack::Loader=HASH(0x2295e28)\', \'Plack::Handler::FCGI=HASH(0x22c0928)\') called at /home/musicbrainz/perl5/lib/perl5/Plack/Runner.pm line 263
      Plack::Runner::run(\'Plack::Runner=HASH(0x208ba78)\') called at /home/musicbrainz/perl5/bin/plackup line 10
      at lib/Sql.pm line 277
      ';
      at lib/MusicBrainz/Server/Controller.pm line 101"
      Stack trace:
      line 97 MusicBrainz::Server::Controller
      line 101 MusicBrainz::Server::Controller
      line 443 MusicBrainz::Server::Controller::Release
      line 264 MusicBrainz::Server
      Request data:

      $VAR1 = {
      'query_parameters' => {},
      'body_parameters' =>

      { 'add-cover-art.id' => '504727657', 'add-cover-art.type_id' => [ '2', '7' ], 'add-cover-art.edit_note' => '', 'add-cover-art.comment' => '', 'add-cover-art.position' => '1' }

      };

      URL: http://test.musicbrainz.org/release/5e0fa610-ec47-4c2d-a92a-08cf842b76e2/add-cover-art

        Attachments

          Activity

            People

            • Assignee:
              warp Kuno Woudt
              Reporter:
              reosarevok Nicolás Tamargo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Cover Art Archive