-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
None
-
None
-
None
Prior to STYLE-2189 I used a "part of" artist-series relationship to link the founder to its music competition in https://musicbrainz.org/edit/83173493
Today I tried to switch to a "founder" artist-series relationship and got an internal server error.
The problem is the start and end dates were kept. I had to remove them manually and uncheck the ended checkbox to do the edit without error in https://musicbrainz.org/edit/102532006
Switching to "founder" artist-series relationship should automatically remove the dates
OR
the "founder" artist-series relationship should allow dates like the "founder" artist-place relationship and the "founder" artist-label relationship.
Side note 1: the relationship now has an order!? "(order: 1)" which it didnt have before (or at least it wasn't displayed) and I can't remove it.
Adding a founder normally doesnt give order (like in https://musicbrainz.org/edit/93927505 )
Side note 2: for consistency artist-series and artist-place/artist-label relationships should have the same text, one is "founded / founded by" while the others are "founded / founders"
Side note 3: in the relationship type selector "founder" artist-series relationship is still located under "event artists", it should be one level higher next to "part of".
Internal server error on https://musicbrainz.org/artist/9dfc644b-b341-4ad9-adba-232c9ce76ace/edit
Referrer: https://musicbrainz.org/artist/9dfc644b-b341-4ad9-adba-232c9ce76ace/edit
Internal Server Error
Oops, something went wrong!
Error:
The edit could not be created. Exception (MusicBrainz::Server::Exceptions::DatabaseError): P0001 DBD::Pg::st execute failed: ERROR: Attempt to add dates to a relationship type that does not support dates.
CONTEXT: PL/pgSQL function check_has_dates() line 12 at RAISE [for Statement "INSERT INTO link (begin_date_month,end_date_month,begin_date_year,attribute_count,begin_date_day,end_date_year,ended,end_date_day,link_type) VALUES (?,?,?,?,?,?,?,?,?) RETURNING id" with ParamValues: 1=undef, 2=undef, 3='1971', 4='0', 5=undef, 6='2001', 7='1', 8=undef, 9='1004'] at lib/MusicBrainz/Server/Controller.pm line 83.
at lib/Sql.pm line 348. at lib/MusicBrainz/Server/Model/MB.pm line 20
MusicBrainz::Server::Model::MB::with_transaction(?, ?) called at lib/MusicBrainz/Server/Controller.pm line 192
MusicBrainz::Server::Controller::edit_action(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) called at lib/MusicBrainz/Server/Controller/Role/EditRelationships.pm line 378
MusicBrainz::Server::Controller::Artist::edit_action(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) called at lib/MusicBrainz/Server/Controller/Role/Edit.pm line 70
MusicBrainz::Server::Controller::Role::Edit::_ANON_::SERIAL::199::edit(?, ?) called at lib/MusicBrainz/Server/Controller/Artist.pm line 751
Catalyst::dispatch called at lib/MusicBrainz/Server.pm line 391
MusicBrainz::Server::_ANON_ at lib/MusicBrainz/Server.pm line 356
MusicBrainz::Server::with_translations(?, ?) called at lib/MusicBrainz/Server.pm line 392
Class::MOP::Method::Wrapped::_ANON_ called at lib/MusicBrainz/Server.pm line 406
Class::MOP::Method::Wrapped::_ANON_ called at lib/MusicBrainz/Server.pm line 494
Time: 2023-08-09T06:22:03.879Z
Host: d6fde66186c8
Interface language: en
URL: https://musicbrainz.org/artist/9dfc644b-b341-4ad9-adba-232c9ce76ace/edit
Request data:
{
"body_parameters":
,
"query_parameters": {}
}
- duplicates
-
MBS-9063 ISE when changing from reltype with dates to reltype without them
- Review Submitted