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

Exception thrown when attempting to edit an AR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • NGS - Release Candidate 1
    • NGS - Beta 3
    • None
    • None

      http://test.musicbrainz.org/edit/relationship/edit?returnto=http://test.musicbrainz.org/recording/4b5736e4-f16b-4049-8ad4-9d672c9598c5/relationships&type1=recording&type0=artist&id=565903

      I tried to add dates to the AR.

      I got:

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

      { 'type1' => 'recording', 'ar.link_type_id' => '151', 'ar.begin_date.year' => '1990', 'type0' => 'artist', 'ar.as_auto_editor' => '1', 'ar.attrs.vocal.0' => '', 'ar.end_date.day' => '', 'ar.end_date.year' => '1991', 'ar.begin_date.day' => '', 'id' => '565903', 'returnto' => 'http://test.musicbrainz.org/recording/4b5736e4-f16b-4049-8ad4-9d672c9598c5/relationships', 'ar.attrs.orchestra.0' => '', 'ar.attrs.instrument.0' => '285', 'ar.edit_note' => 'test', 'ar.end_date.month' => '', 'ar.begin_date.month' => '', 'ar.attrs.license.0' => '' }

      ;

      Exception:$VAR1 = 'Failed query:
      \'INSERT INTO edit_artist (edit, artist) VALUES (?, ?)\'
      (13577932 )
      DBD::Pg::st execute failed: ERROR: null value in column "artist" violates not-null constraint at /home/mbserver/musicbrainz/mb_server-next/script/../lib/Sql.pm line 102.

      at /home/mbserver/musicbrainz/mb_server-next/script/../lib/MusicBrainz/Server/Data/Edit.pm line 309
      at /home/mbserver/musicbrainz/mb_server-next/script/../lib/MusicBrainz/Server/Data/Edit.pm line 315
      ';
      at /usr/local/share/perl/5.8.8/Catalyst/Action.pm line 65"

            acid2 Oliver Charles
            brianfreud Brian Schweitzer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                NGS - Release Candidate 1