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

ISE when trying to add an entity with a space-only disambiguation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2022-06-20
    • None
    • Editing interface
    • None

      A disambiguation such as " " should either be rejected properly or ignored, but not let through to cause an ISE.

      Sentry Issue: MUSICBRAINZ-SERVER-1CT

      None: The edit could not be created. Exception (MusicBrainz::Server::Exceptions::DatabaseError): 23514 DBD::Pg::st execute failed: ERROR:  new row for relation "recording" violates check constraint "recording_comment_check"
      DETAIL:  Failing row contains (32164788, f534d787-2197-41bf-92c0-c5739dfe0c13, This Is Not the End, 373742, 193000,  , 0, 2022-05-04 09:22:38.483396+00, f). [for Statement "INSERT INTO recording (video,name,gid,artist_credit,comment,length) VALUES (?,?,?,?,?,?) RETURNING id" with ParamValues: 1='0', 2='This Is Not the End', 3='f534d787-2197-41bf-92c0-c5739dfe0c13', 4='373742', 5=' ', 6='193000'] at lib/MusicBrainz/Server/Controller.pm line 82.
        File "Controller.pm", line 80, in Try::Tiny::try
          croak 'The edit could not be created. Exception (' . (ref ne '' ? ref : 'string') . '): ' . $_;
        File "Controller.pm", line 82, in MusicBrainz::Server::Controller::_insert_edit
          };
        File "Controller.pm", line 172, in Sql::run_in_transaction
          @options,
        File "MB.pm", line 19, in MusicBrainz::Server::Model::MB::with_transaction
          Sql::run_in_transaction($code, $self->context->sql);
        File "Controller.pm", line 186, in MusicBrainz::Server::Controller::edit_action
          });
      ...
      (7 additional frame(s) were not displayed)
      

            reosarevok Nicolás Tamargo
            dev-sentry Dev through Sentry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2022-06-20