-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
Internal server error on https://beta.musicbrainz.org/instrument/826a3a61-75ce-4620-9890-241f118d99e9/alias/6366/edit
Referrer: https://beta.musicbrainz.org/instrument/826a3a61-75ce-4620-9890-241f118d99e9/alias/6366/edit
When I try to edit an alias to another language (and also change the sortname,) but I kept it the primary flag because it is (another, but incorrect alias with that language and set as primary also exists), I get an ISE:
The edit could not be created. Exception (string): Failed query:
'UPDATE instrument_alias SET locale = ?, sort_name = ? WHERE id = ?'
(ja mijuwizu 6366)
23505 DBD::Pg::st execute failed: ERROR: duplicate key value violates unique constraint "instrument_alias_idx_primary"
DETAIL: Key (instrument, locale)=(876, ja) already exists. [for Statement "UPDATE instrument_alias SET locale = ?, sort_name = ? WHERE id = ?" with ParamValues: 1='ja', 2='mijuwizu', 3='6366']
Sql::catch
{...} (MusicBrainz::Server::Exceptions::DatabaseError=HASH(0x564acbd5bc88)) called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 123Try::Tiny::try(CODE(0x564acb8a8da8), Try::Tiny::Catch=REF(0x564acbd7d280)) called at lib/Sql.pm line 124
Sql::do(Sql=HASH(0x564acb8da338), "UPDATE instrument_alias SET locale = ?, sort_name = ? WHERE i"..., "ja", "mijuwizu", 6366) called at lib/Sql.pm line 210
Sql::update_row(Sql=HASH(0x564acb8da338), "instrument_alias", HASH(0x564abac77ab0), HASH(0x564acaef3a68)) called at lib/MusicBrainz/Server/Data/Alias.pm line 281
MusicBrainz::Server::Data::Alias::update(Moose::Meta::Class::_ANON_::SERIAL::95=HASH(0x564acb79b8e8), 6366, HASH(0x564acadc16b8)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 56
MusicBrainz::Server::Data::Alias::wrapped_update(Moose::Meta::Class::ANON_::SERIAL::95=HASH(0x564acb79b8e8), 6366, HASH(0x564acadc16b8)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 97
MusicBrainz::Server::Data::Alias::update(Moose::Meta::Class::_ANON_::SERIAL::95=HASH(0x564acb79b8e8), 6366, HASH(0x564acadc16b8)) called at lib/MusicBrainz/Server/Edit/Alias/Edit.pm line 154
MusicBrainz::Server::Edit::Alias::Edit::accept(MusicBrainz::Server::Edit::Instrument::EditAlias=HASH(0x564acbdb9ae8)) called at lib/MusicBrainz/Server/Data/Edit.pm line 781
MusicBrainz::Server::Data::Edit::try {...}
() called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 100
eval
Try::Tiny::try(CODE(0x564acb8e79f8), Try::Tiny::Catch=REF(0x564acb9fdcd0)) called at lib/MusicBrainz/Server/Data/Edit.pm line 816
MusicBrainz::Server::Data::Edit::_do_accept(MusicBrainz::Server::Data::Edit=HASH(0x564ac3240ce8), MusicBrainz::Server::Edit::Instrument::EditAlias=HASH(0x564acbdb9ae8)) called at lib/MusicBrainz/Server/Data/Edit.pm line 855
MusicBrainz::Server::Data::Edit::_ANON_(MusicBrainz::Server::Edit::Instrument::EditAlias=HASH(0x564acbdb9ae8)) called at lib/MusicBrainz/Server/Data/Edit.pm line 878
MusicBrainz::Server::Data::Edit::_close(MusicBrainz::Server::Data::Edit=HASH(0x564ac3240ce8), MusicBrainz::Server::Edit::Instrument::EditAlias=HASH(0x564acbdb9ae8), CODE(0x564ab4c0e090)) called at lib/MusicBrainz/Server/Data/Edit.pm line 855
MusicBrainz::Server::Data::Edit::accept(MusicBrainz::Server::Data::Edit=HASH(0x564ac3240ce8), MusicBrainz::Server::Edit::Instrument::EditAlias=HASH(0x564acbdb9ae8)) called at lib/MusicBrainz/Server/Data/Edit.pm line 622
MusicBrainz::Server::Data::Edit::create(MusicBrainz::Server::Data::Edit=HASH(0x564ac3240ce8), "editor", MusicBrainz::Server::Authentication::User=HASH(0x564acc4ff8a0), "privileges", 25, "end_date", HASH(0x564acb9fef88), "entity", ...) called at lib/MusicBrainz/Server/Controller.pm line 71
MusicBrainz::Server::Controller::try {...}
() called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 102
eval
Try::Tiny::try(CODE(0x564acbd44c10), Try::Tiny::Catch=REF(0x564acc6507f8)) called at lib/MusicBrainz/Server/Controller.pm line 86
MusicBrainz::Server::Controller::_insert_edit(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610), MusicBrainz::Server::Form::Alias=HASH(0x564acb939008), "edit_type", 138, "name", "\x{30df}\x{30b8}\x{30e5}\x{30a6}\x{30a3}\x{30ba}", "locale", ...) called at lib/MusicBrainz/Server/Controller.pm line 176
MusicBrainz::Server::Controller::_ANON_() called at lib/Sql.pm line 344
Sql::try {...}
() called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 102
eval
Try::Tiny::try(CODE(0x564acba02798), Try::Tiny::Catch=REF(0x564acc6853c0)) called at lib/Sql.pm line 356
Sql::_auto_transaction(CODE(0x564acb85e5e8), Sql=HASH(0x564acb8da338)) called at lib/Sql.pm line 362
Sql::_run_in_transaction_one(CODE(0x564acb85e5e8), Sql=HASH(0x564acb8da338)) called at lib/Sql.pm line 377
Sql::run_in_transaction(CODE(0x564acb85e5e8), Sql=HASH(0x564acb8da338)) called at lib/MusicBrainz/Server/Model/MB.pm line 20
MusicBrainz::Server::Model::MB::with_transaction(MusicBrainz::Server::Model::MB=HASH(0x564ac2be40c8), CODE(0x564acb85e5e8)) called at lib/MusicBrainz/Server/Controller.pm line 195
MusicBrainz::Server::Controller::edit_action(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610), "form_args", HASH(0x564acc6dffd8), "on_creation", CODE(0x564acc6aac10), "edit_args", HASH(0x564acc610d38), ...) called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 298
Class::MOP::Class:::around(CODE(0x564ab9fb35d8), MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610), "form", "Alias", "form_args", HASH(0x564acc6dffd8), "item", ...) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 166
MusicBrainz::Server::Controller::Instrument::_wrapped_edit_action(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610), "form", "Alias", "form_args", HASH(0x564acc6dffd8), "item", MusicBrainz::Server::Entity::InstrumentAlias=HASH(0x564acc6a9b38), ...) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 97
MusicBrainz::Server::Controller::Instrument::edit_action(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610), "form", "Alias", "form_args", HASH(0x564acc6dffd8), "item", MusicBrainz::Server::Entity::InstrumentAlias=HASH(0x564acc6a9b38), ...) called at lib/MusicBrainz/Server/Controller/Role/Alias.pm line 189
MusicBrainz::Server::Controller::Role::Alias::edit_alias(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 44
MusicBrainz::Server::Controller::Instrument::_wrapped_edit_alias(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 97
MusicBrainz::Server::Controller::Instrument::edit_alias(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 374
Catalyst::Action::execute(Catalyst::Action=HASH(0x564ac530eeb0), MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2067
eval {...}
called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2067
Catalyst::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac530eeb0)) called at lib/Catalyst/Plugin/ErrorInfo.pm line 34
Catalyst::Plugin::ErrorInfo::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac530eeb0)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 368
Catalyst::Action::dispatch(Catalyst::Action=HASH(0x564ac530eeb0), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/ActionChain.pm line 74
Catalyst::ActionChain::_dispatch_chain_actions(Catalyst::ActionChain=HASH(0x564acb85ad40), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/ActionChain.pm line 43
Catalyst::ActionChain::dispatch(Catalyst::ActionChain=HASH(0x564acb85ad40), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Controller.pm line 170
Catalyst::Controller::_ACTION(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 374
Catalyst::Action::execute(Catalyst::Action=HASH(0x564ac5308740), MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2067
eval
Catalyst::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac5308740)) called at lib/Catalyst/Plugin/ErrorInfo.pm line 34
Catalyst::Plugin::ErrorInfo::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac5308740)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 368
Catalyst::Action::dispatch(Catalyst::Action=HASH(0x564ac5308740), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Dispatcher.pm line 261
Catalyst::Dispatcher::_do_forward(Catalyst::Dispatcher=HASH(0x564ab8fa5330), "forward", MusicBrainz::Server=HASH(0x564acb7ce610), "_ACTION") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Dispatcher.pm line 241
Catalyst::Dispatcher::forward(Catalyst::Dispatcher=HASH(0x564ab8fa5330), MusicBrainz::Server=HASH(0x564acb7ce610), "_ACTION") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 489
Catalyst::forward(MusicBrainz::Server=HASH(0x564acb7ce610), "_ACTION") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Controller.pm line 134
Catalyst::Controller::_DISPATCH(MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 374
Catalyst::Action::execute(Catalyst::Action=HASH(0x564ac53029a0), MusicBrainz::Server::Controller::Instrument=HASH(0x564ac50accd8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2067
eval {...}
called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2067
Catalyst::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac53029a0)) called at lib/Catalyst/Plugin/ErrorInfo.pm line 34
Catalyst::Plugin::ErrorInfo::execute(MusicBrainz::Server=HASH(0x564acb7ce610), "MusicBrainz::Server::Controller::Instrument", Catalyst::Action=HASH(0x564ac53029a0)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Action.pm line 368
Catalyst::Action::dispatch(Catalyst::Action=HASH(0x564ac53029a0), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Dispatcher.pm line 261
Catalyst::Dispatcher::_do_forward(Catalyst::Dispatcher=HASH(0x564ab8fa5330), "forward", MusicBrainz::Server=HASH(0x564acb7ce610), "/instrument/_DISPATCH") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Dispatcher.pm line 241
Catalyst::Dispatcher::forward(Catalyst::Dispatcher=HASH(0x564ab8fa5330), MusicBrainz::Server=HASH(0x564acb7ce610), "/instrument/_DISPATCH") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 489
Catalyst::forward(MusicBrainz::Server=HASH(0x564acb7ce610), "/instrument/_DISPATCH") called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Dispatcher.pm line 107
Catalyst::Dispatcher::dispatch(Catalyst::Dispatcher=HASH(0x564ab8fa5330), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2013
Catalyst::dispatch(MusicBrainz::Server=HASH(0x564acb7ce610)) called at lib/MusicBrainz/Server.pm line 400
MusicBrainz::Server::_ANON_() called at lib/MusicBrainz/Server.pm line 365
MusicBrainz::Server::with_translations(MusicBrainz::Server=HASH(0x564acb7ce610), CODE(0x564acb4f8398)) called at lib/MusicBrainz/Server.pm line 401
Class::MOP::Class:::around(CODE(0x564ab8669840), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 166
Class::MOP::Method::Wrapped::_ANON_(MusicBrainz::Server=HASH(0x564acb7ce610)) called at lib/MusicBrainz/Server.pm line 415
Class::MOP::Class:::around(CODE(0x564ac56540d8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 166
Class::MOP::Method::Wrapped::_ANON_(MusicBrainz::Server=HASH(0x564acb7ce610)) called at lib/MusicBrainz/Server.pm line 522
Class::MOP::Class:::around(CODE(0x564ac56543a8), MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 166
Class::MOP::Method::Wrapped::_ANON_(MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 35
MusicBrainz::Server::_wrapped_dispatch(MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 97
MusicBrainz::Server::dispatch(MusicBrainz::Server=HASH(0x564acb7ce610)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2419
Catalyst::try
eval {...}
called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 93
Try::Tiny::try(CODE(0x564acb8e0020), Try::Tiny::Catch=REF(0x564ac643cb70)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst.pm line 2428
Catalyst::handle_request("MusicBrainz::Server", "env", HASH(0x564ac583e818), "response_cb", CODE(0x564acaa7d600)) called at /home/musicbrainz/carton-local/lib/perl5/Catalyst/Engine.pm line 807
Catalyst::Engine::_ANON_(CODE(0x564acaa7d600)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Middleware/HTTPExceptions.pm line 32
Plack::Middleware::HTTPExceptions::try
eval {...}
called at /home/musicbrainz/carton-local/lib/perl5/Try/Tiny.pm line 93
Try::Tiny::try(CODE(0x564acacd2af0), Try::Tiny::Catch=REF(0x564acbdee850)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Middleware/HTTPExceptions.pm line 41
Plack::Middleware::HTTPExceptions::_ANON_(CODE(0x564ac5803570)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Util.pm line 339
Plack::Util::_ANON_(CODE(0x564acb881b60)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Util.pm line 339
Plack::Util::_ANON_(CODE(0x564acb85b2b0)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Util.pm line 339
Plack::Util::_ANON_(CODE(0x564acb76cc80)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Util.pm line 339
Plack::Util::_ANON_(CODE(0x564acb72ab88)) called at /home/musicbrainz/carton-local/lib/perl5/Starlet/Server.pm line 377
Starlet::Server::handle_connection(Plack::Handler::Starlet=HASH(0x564ac485d7f8), HASH(0x564ac583e818), IO::Socket::INET=GLOB(0x564acb9b1550), CODE(0x564ac56b72c8), "", "", "") called at /home/musicbrainz/carton-local/lib/perl5/Starlet/Server.pm line 190
Starlet::Server::accept_loop(Plack::Handler::Starlet=HASH(0x564ac485d7f8), CODE(0x564ac56b72c8), 69) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Handler/Starlet.pm line 80
Plack::Handler::Starlet::run(Plack::Handler::Starlet=HASH(0x564ac485d7f8), CODE(0x564ac56b72c8)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Loader.pm line 84
Plack::Loader::run(Plack::Loader=HASH(0x564ab1cbd638), Plack::Handler::Starlet=HASH(0x564ac485d7f8)) called at /home/musicbrainz/carton-local/lib/perl5/Plack/Runner.pm line 279
Plack::Runner::run(Plack::Runner=HASH(0x564ab1c91940)) called at /home/musicbrainz/carton-local/bin/plackup line 7
at lib/MusicBrainz/Server/Controller.pm line 86.
at lib/Sql.pm line 356. at lib/MusicBrainz/Server/Model/MB.pm line 20
MusicBrainz::Server::Model::MB::with_transaction(?, ?) called at lib/MusicBrainz/Server/Controller.pm line 195
MusicBrainz::Server::Controller::edit_action(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 298
MusicBrainz::Server::Controller::Instrument::edit_action(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) called at lib/MusicBrainz/Server/Controller/Role/Alias.pm line 189
Catalyst::dispatch called at lib/MusicBrainz/Server.pm line 400
MusicBrainz::Server::_ANON_ at lib/MusicBrainz/Server.pm line 365
MusicBrainz::Server::with_translations(?, ?) called at lib/MusicBrainz/Server.pm line 401
Class::MOP::Method::Wrapped::_ANON_ called at lib/MusicBrainz/Server.pm line 415
Class::MOP::Method::Wrapped::_ANON_ called at lib/MusicBrainz/Server.pm line 522
Date and time: 2024-04-29T18:36:46.560Z
Host: f255b82af60c
Interface language: en
URL: https://beta.musicbrainz.org/instrument/826a3a61-75ce-4620-9890-241f118d99e9/alias/6366/edit
Request data:
{
"body_parameters":
,
"query_parameters": {}
}