-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
Internal Server Error
Oops, something went wrong!
Error:
Caught exception in MusicBrainz::Server::Controller::Series->edit "The edit could not be created.
POST: $VAR1 =
;
Exception:$VAR1 = 'Failed query:
\'
UPDATE l_release_group_series SET link_order = x.link_order::integer
FROM (VALUES (?, ?), (?, ?), (?, ?), (?, ?)) AS x (relationship, link_order)
WHERE id = x.relationship::integer\'
(30336 7 30325 8 26763 8 30335 8)
23505 DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "l_release_group_series_idx_uniq"
DETAIL: Key (entity0, entity1, link, link_order)=(1529055, 3435, 167111, 8) already exists. at lib/MusicBrainz/Server/Connector.pm line 42, line 3.
at lib/Sql.pm line 115, line 3.
Sql::catch
Try::Tiny::try(\'CODE(0x1bb7b450)\', \'Try::Tiny::Catch=REF(0x1bb1c750)\') called at lib/Sql.pm line 116
Sql::do(\'Sql=HASH(0x139df2f0)\', \'
x{a} UPDATE l_release_group_series SET link_order = x.lin...\', 30336, 7, 30325, 8, 26763, 8, 30335, ...) called at lib/MusicBrainz/Server/Data/Series.pm line 332
MusicBrainz::Server::Data::Series::automatically_reorder(\'MusicBrainz::Server::Data::Series=HASH(0x11785b58)\', 3435) called at lib/MusicBrainz/Server/Data/Relationship.pm line 594
MusicBrainz::Server::Data::Relationship::insert(\'MusicBrainz::Server::Data::Relationship=HASH(0x11671630)\', \'release_group\', \'series\', \'HASH(0x1bb0ff50)\') called at lib/MusicBrainz/Server/Edit/Relationship/Create.pm line 243
MusicBrainz::Server::Edit::Relationship::Create::insert(\'MusicBrainz::Server::Edit::Relationship::Create=HASH(0x1bb0e030)\') called at lib/MusicBrainz/Server/Data/Edit.pm line 512
MusicBrainz::Server::Data::Edit::create(\'MusicBrainz::Server::Data::Edit=HASH(0x108ae2e0)\', \'editor\', \'MusicBrainz::Server::Authentication::User=HASH(0x12ca6850)\', \'privileges\', 1, \'edit_type\', 90, \'entity1\', \'MusicBrainz::Server::Entity::Series=HASH(0x12eaa148)\', ...) called at lib/MusicBrainz/Server/Controller.pm line 88
MusicBrainz::Server::Controller::try {...}
() called at /usr/share/perl5/Try/Tiny.pm line 81
eval
Try::Tiny::try(\'CODE(0x1bb05b38)\', \'Try::Tiny::Catch=REF(0x175cea90)\') called at lib/MusicBrainz/Server/Controller.pm line 106
MusicBrainz::Server::Controller::_insert_edit(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Form::Series=HASH(0x153e8d50)\', \'edit_type\', 90, \'entity1_credit\', undef, \'link_type\', \'MusicBrainz::Server::Entity::LinkType=HASH(0x1bae6fa0)\', ...) called at lib/MusicBrainz/Server/Controller/Role/RelationshipEditor.pm line 74
MusicBrainz::Server::Controller::Role::RelationshipEditor::_ANON_() called at lib/MusicBrainz/Server/Data/Relationship.pm line 754
MusicBrainz::Server::Data::Relationship::_ANON_() called at lib/Sql.pm line 319
Sql::try {...}
() called at /usr/share/perl5/Try/Tiny.pm line 81
eval
Try::Tiny::try(\'CODE(0x1bb2ef90)\', \'Try::Tiny::Catch=REF(0x1bb623d0)\') called at lib/Sql.pm line 332
Sql::_auto_transaction(\'CODE(0x1bae72a0)\', \'Sql=HASH(0x139df2f0)\') called at lib/Sql.pm line 337
Sql::_run_in_transaction_one(\'CODE(0x1bae72a0)\', \'Sql=HASH(0x139df2f0)\') called at lib/Sql.pm line 351
Sql::run_in_transaction(\'CODE(0x1bae72a0)\', \'Sql=HASH(0x139df2f0)\') called at lib/MusicBrainz/Server/Data/Relationship.pm line 755
MusicBrainz::Server::Data::Relationship::lock_and_do(\'MusicBrainz::Server::Data::Relationship=HASH(0x11671630)\', \'release_group\', \'series\', \'CODE(0x1bb2f6e0)\') called at lib/MusicBrainz/Server/Controller/Role/RelationshipEditor.pm line 80
MusicBrainz::Server::Controller::Role::RelationshipEditor::try_and_insert(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Form::Series=HASH(0x153e8d50)\', \'entity1_credit\', undef, \'link_type\', \'MusicBrainz::Server::Entity::LinkType=HASH(0x1bae6fa0)\', \'attributes\', \'ARRAY(0x1bb05958)\', ...) called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 227
Moose::Meta::Role::_ANON_::SERIAL::33::edit_relationships(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Form::Series=HASH(0x153e8d50)\', \'ARRAY(0x1524f210)\', \'MusicBrainz::Server::Entity::Series=HASH(0x12eaa148)\') called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 127
MusicBrainz::Server::Controller::Role::EditRelationships::_ANON_(undef, \'MusicBrainz::Server::Form::Series=HASH(0x153e8d50)\') called at lib/MusicBrainz/Server/Controller.pm line 197
MusicBrainz::Server::Controller::_ANON_() called at lib/Sql.pm line 319
Sql::try {...}
() called at /usr/share/perl5/Try/Tiny.pm line 81
eval
Try::Tiny::try(\'CODE(0x175c9168)\', \'Try::Tiny::Catch=REF(0x171c5be8)\') called at lib/Sql.pm line 332
Sql::_auto_transaction(\'CODE(0x175c8f40)\', \'Sql=HASH(0x139df2f0)\') called at lib/Sql.pm line 337
Sql::_run_in_transaction_one(\'CODE(0x175c8f40)\', \'Sql=HASH(0x139df2f0)\') called at lib/Sql.pm line 351
Sql::run_in_transaction(\'CODE(0x175c8f40)\', \'Sql=HASH(0x139df2f0)\') called at lib/MusicBrainz/Server/Model/MB.pm line 19
MusicBrainz::Server::Model::MB::with_transaction(\'MusicBrainz::Server::Model::MB=HASH(0x1005ba30)\', \'CODE(0x175c8f40)\') called at lib/MusicBrainz/Server/Controller.pm line 205
MusicBrainz::Server::Controller::edit_action(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'form\', \'Series\', \'edit_rels\', 1, \'edit_args\', \'HASH(0x13a75ac0)\', \'redirect\', ...) called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 132
Class::MOP::Class:::around(\'CODE(0x782d630)\', \'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'form\', \'Series\', \'type\', 141, \'item\', \'MusicBrainz::Server::Entity::Series=HASH(0x12eaa148)\', ...) called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 164
MusicBrainz::Server::Controller::Series::_wrapped_edit_action(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'form\', \'Series\', \'type\', 141, \'item\', \'MusicBrainz::Server::Entity::Series=HASH(0x12eaa148)\', \'edit_args\', ...) called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 95
MusicBrainz::Server::Controller::Series::edit_action(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'form\', \'Series\', \'type\', 141, \'item\', \'MusicBrainz::Server::Entity::Series=HASH(0x12eaa148)\', \'edit_args\', ...) called at lib/MusicBrainz/Server/Controller/Role/Edit.pm line 49
Moose::Meta::Role::_ANON_::SERIAL::295::edit(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 44
MusicBrainz::Server::Controller::Series::_wrapped_edit(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 95
MusicBrainz::Server::Controller::Series::edit(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Action.pm line 305
Catalyst::Action::execute(\'Catalyst::Action=HASH(0x125398d8)\', \'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst.pm line 2008
eval {...}
called at /usr/share/perl5/Catalyst.pm line 2008
Catalyst::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125398d8)\') called at /usr/share/perl5/Catalyst/Plugin/StackTrace.pm line 93
Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125398d8)\') called at /usr/share/perl5/Catalyst/Action.pm line 300
Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0x125398d8)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/ActionChain.pm line 46
Catalyst::ActionChain::dispatch(\'Catalyst::ActionChain=HASH(0x1526b4f0)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Controller.pm line 161
Catalyst::Controller::_ACTION(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Action.pm line 305
Catalyst::Action::execute(\'Catalyst::Action=HASH(0x125292f8)\', \'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst.pm line 2008
eval
Catalyst::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125292f8)\') called at /usr/share/perl5/Catalyst/Plugin/StackTrace.pm line 93
Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125292f8)\') called at /usr/share/perl5/Catalyst/Action.pm line 300
Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0x125292f8)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 262
Catalyst::Dispatcher::_do_forward(\'Catalyst::Dispatcher=HASH(0x4f1ff90)\', \'forward\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'_ACTION\') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 242
Catalyst::Dispatcher::forward(\'Catalyst::Dispatcher=HASH(0x4f1ff90)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'_ACTION\') called at /usr/share/perl5/Catalyst.pm line 457
Catalyst::forward(\'MusicBrainz::Server=HASH(0x1339e440)\', \'_ACTION\') called at /usr/share/perl5/Catalyst/Controller.pm line 135
Catalyst::Controller::_DISPATCH(\'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Action.pm line 305
Catalyst::Action::execute(\'Catalyst::Action=HASH(0x125291a8)\', \'MusicBrainz::Server::Controller::Series=HASH(0x12213d58)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst.pm line 2008
eval {...}
called at /usr/share/perl5/Catalyst.pm line 2008
Catalyst::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125291a8)\') called at /usr/share/perl5/Catalyst/Plugin/StackTrace.pm line 93
Catalyst::Plugin::StackTrace::execute(\'MusicBrainz::Server=HASH(0x1339e440)\', \'MusicBrainz::Server::Controller::Series\', \'Catalyst::Action=HASH(0x125291a8)\') called at /usr/share/perl5/Catalyst/Action.pm line 300
Catalyst::Action::dispatch(\'Catalyst::Action=HASH(0x125291a8)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 262
Catalyst::Dispatcher::_do_forward(\'Catalyst::Dispatcher=HASH(0x4f1ff90)\', \'forward\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'/series/_DISPATCH\') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 242
Catalyst::Dispatcher::forward(\'Catalyst::Dispatcher=HASH(0x4f1ff90)\', \'MusicBrainz::Server=HASH(0x1339e440)\', \'/series/_DISPATCH\') called at /usr/share/perl5/Catalyst.pm line 457
Catalyst::forward(\'MusicBrainz::Server=HASH(0x1339e440)\', \'/series/_DISPATCH\') called at /usr/share/perl5/Catalyst/Dispatcher.pm line 107
Catalyst::Dispatcher::dispatch(\'Catalyst::Dispatcher=HASH(0x4f1ff90)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst.pm line 1954
Catalyst::dispatch(\'MusicBrainz::Server=HASH(0x1339e440)\') called at lib/MusicBrainz/Server.pm line 333
MusicBrainz::Server::_ANON_() called at lib/MusicBrainz/Server.pm line 307
MusicBrainz::Server::with_translations(\'MusicBrainz::Server=HASH(0x1339e440)\', \'CODE(0x12ca94a0)\') called at lib/MusicBrainz/Server.pm line 334
Class::MOP::Class:::around(\'CODE(0x4a0ff90)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 164
Class::MOP::Method::Wrapped::_ANON_(\'MusicBrainz::Server=HASH(0x1339e440)\') called at lib/MusicBrainz/Server.pm line 348
Class::MOP::Class:::around(\'CODE(0x121b9d70)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 164
Class::MOP::Method::Wrapped::_ANON_(\'MusicBrainz::Server=HASH(0x1339e440)\') called at lib/MusicBrainz/Server.pm line 388
Class::MOP::Class:::around(\'CODE(0x127dc1f8)\', \'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 164
Class::MOP::Method::Wrapped::_ANON_(\'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 29
MusicBrainz::Server::_wrapped_dispatch(\'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/lib/perl5/Class/MOP/Method/Wrapped.pm line 95
MusicBrainz::Server::dispatch(\'MusicBrainz::Server=HASH(0x1339e440)\') called at /usr/share/perl5/Catalyst.pm line 2345
Catalyst::try
eval {...}
called at /usr/share/perl5/Try/Tiny.pm line 72
Try::Tiny::try(\'CODE(0x137b0158)\', \'Try::Tiny::Catch=REF(0x12ca3a20)\') called at /usr/share/perl5/Catalyst.pm line 2354
Catalyst::handle_request(\'MusicBrainz::Server\', \'env\', \'HASH(0x14430870)\', \'response_cb\', \'CODE(0x12ca3a80)\') called at /usr/share/perl5/Catalyst/Plugin/AutoRestart.pm line 117
Catalyst::Plugin::AutoRestart::handle_request(\'MusicBrainz::Server\', \'env\', \'HASH(0x14430870)\', \'response_cb\', \'CODE(0x12ca3a80)\') called at /usr/share/perl5/Catalyst/Engine.pm line 796
Catalyst::Engine::_ANON_(\'CODE(0x12ca3a80)\') called at /usr/share/perl5/Plack/Middleware/HTTPExceptions.pm line 32
Plack::Middleware::HTTPExceptions::try
eval {...}
called at /usr/share/perl5/Try/Tiny.pm line 72
Try::Tiny::try(\'CODE(0x12ca3b88)\', \'Try::Tiny::Catch=REF(0x143b46b8)\') called at /usr/share/perl5/Plack/Middleware/HTTPExceptions.pm line 41
Plack::Middleware::HTTPExceptions::_ANON_(\'CODE(0x12ca38e8)\') called at /usr/share/perl5/Plack/Util.pm line 301
Plack::Util::_ANON_(\'CODE(0x12ca3690)\') called at /usr/share/perl5/Plack/Util.pm line 301
Plack::Util::_ANON_(\'CODE(0x12b5eb28)\') called at /usr/share/perl5/Plack/Util.pm line 301
Plack::Util::_ANON_(\'CODE(0x13cfbd20)\') called at /usr/share/perl5/Starlet/Server.pm line 373
Starlet::Server::handle_connection(\'Plack::Handler::Starlet=HASH(0x12b5e5a0)\', \'HASH(0x14f19678)\', \'IO::Socket::INET=GLOB(0x14425a60)\', \'CODE(0x12b1e628)\', \'\', \'\', \'\') called at /usr/share/perl5/Starlet/Server.pm line 185
Starlet::Server::accept_loop(\'Plack::Handler::Starlet=HASH(0x12b5e5a0)\', \'CODE(0x12b1e628)\', 129) called at /usr/share/perl5/Plack/Handler/Starlet.pm line 75
Plack::Handler::Starlet::run(\'Plack::Handler::Starlet=HASH(0x12b5e5a0)\', \'CODE(0x12b1e628)\') called at /usr/share/perl5/Plack/Loader.pm line 84
Plack::Loader::run(\'Plack::Loader=HASH(0x1e0e800)\', \'Plack::Handler::Starlet=HASH(0x12b5e5a0)\') called at /usr/share/perl5/Plack/Runner.pm line 277
Plack::Runner::run(\'Plack::Runner=HASH(0x1dfc8c0)\') called at /usr/bin/plackup line 10
';
at lib/MusicBrainz/Server/Controller.pm line 106.
at lib/Sql.pm line 332.
at lib/Sql.pm line 332."
Stack trace:
line 19 MusicBrainz::Server::Model::MB
line 205 MusicBrainz::Server::Controller
line 132 MusicBrainz::Server::Controller::Role::EditRelationships
line 49 MusicBrainz::Server::Controller::Role::Edit
line 333 MusicBrainz::Server
line 307 MusicBrainz::Server
line 334 MusicBrainz::Server
line 348 MusicBrainz::Server
line 388 MusicBrainz::Server
Request data:
$VAR1 = {
'query_parameters' => {},
'body_parameters' =>
};
Time: 2015-11-15 16:04:16 UTC
Host: lobe
URL: http://musicbrainz.org/series/34f3e11e-dfa4-43f1-b094-6228d5f0af4c/edit
- has related issue
-
MBS-8668 Adding duplicate entities to a series is still allowed
- Review Submitted