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

ISE: Validation failed for \'Int\' with value undef

XMLWordPrintable

      Internal server error on https://musicbrainz.org/edit/6774077
      Referrer: https://musicbrainz.org/artist/7b2639e3-80fa-472e-930e-5e8b44b38a42/edits?page=3

      Caught exception in MusicBrainz::Server::Controller::Edit->show "Failed loading edits (6774077)
      Exception:
      $VAR1 = bless( {
                       'value' => undef,
                       'trace' => bless( {
                                           'frames' => [],
                                           'indent' => 1,
                                           'skip_frames' => 4,
                                           'message' => 'Attribute (id) does not pass the type constraint because: Validation failed for \'Int\' with value undef',
                                           'index' => undef,
                                           'unsafe_ref_capture' => '',
                                           'raw' => [
                                                      {
                                                        'caller' => [
                                                                      'Eval::Closure::Sandbox_2008',
                                                                      'constructor MusicBrainz::Server::Entity::ReleaseGroup::new (defined at lib/MusicBrainz/Server/Entity/ReleaseGroup.pm line 139)',
                                                                      108,
                                                                      'Moose::Exception::ValidationFailedForInlineTypeConstraint::new',
                                                                      1,
                                                                      1,
                                                                      undef,
                                                                      undef,
                                                                      2018,
                                                                      'UUUUUUUUUUUUUUUUUUUU',
                                                                      undef
                                                                    ],
                                                        'args' => [
                                                                    'Moose::Exception::ValidationFailedForInlineTypeConstraint',
                                                                    'type_constraint_message',
                                                                    'Validation failed for \'Int\' with value undef',
                                                                    'class_name',
                                                                    'MusicBrainz::Server::Entity::ReleaseGroup',
                                                                    'attribute_name',
                                                                    'id',
                                                                    'value',
                                                                    undef
                                                                  ]
                                                      },
                                                      {
                                                        'caller' => [
                                                                      'MusicBrainz::Server::Edit::Historic::Relationship',
                                                                      'lib/MusicBrainz/Server/Edit/Historic/Relationship.pm',
                                                                      234,
                                                                      'MusicBrainz::Server::Entity::ReleaseGroup::new',
                                                                      1,
                                                                      '',
                                                                      undef,
                                                                      undef,
                                                                      2018,
                                                                      'UUUUUUUUUUUUUUUUUUUU',
                                                                      undef
                                                                    ],
                                                        'args' => [
                                                                    'MusicBrainz::Server::Entity::ReleaseGroup',
                                                                    'id',
                                                                    undef,
                                                                    'name',
                                                                    'Simon & Garfunkel'
                                                                  ]
                                                      },
                                                      {
                                                        'args' => [
                                                                    'MusicBrainz::Server::Edit::Historic::AddLink=HASH(0x1db91c20)',
                                                                    'HASH(0x1d356c78)',
                                                                    'HASH(0x1dab84e8)'
                                                                  ],
                                                        'caller' => [
                                                                      'MusicBrainz::Server::Edit::Historic::AddLink',
                                                                      'lib/MusicBrainz/Server/Edit/Historic/AddLink.pm',
                                                                      25,
                                                                      'MusicBrainz::Server::Edit::Historic::Relationship::_display_relationships',
                                                                      1,
                                                                      1,
                                                                      undef,
                                                                      undef,
                                                                      1762,
                                                                      'UUUUUUUUUUUUUUUUUUUU',
                                                                      undef
                                                                    ]
                                                      },
                                                      {
                                                        'caller' => [
                                                                      'MusicBrainz::Server::Data::Edit',
                                                                      'lib/MusicBrainz/Server/Data/Edit.pm',
                                                                      678,
                                                                      'MusicBrainz::Server::Edit::Historic::AddLink::build_display_data',
                                                                      1,
                                                                      1,
                                                                      undef,
                                                                      undef,
                                                                      201461474,
                                                                      'UUUUUUUUUUUUUUUUUUUU',
                                                                      undef
                                                                    ],
                                                        'args' => [
                                                                    'MusicBrainz::Server::Edit::Historic::AddLink=HASH(0x1db91c20)',
                                                                    'HASH(0x1dab84e8)'
                                                                  ]
                                                      },
                                                      {
                                                        'caller' => [
                                                                      'MusicBrainz::Server::Data::Utils',
                                                                      'lib/MusicBrainz/Server/Data/Utils.pm',
                                                                      222,
                                                                      'MusicBrainz::Server::Data::Edit::load_all',
                                                                      1,
                                                                      undef,
                                                                      undef,
                                                                      undef,
                                                                      201330402,
                                                                      'UUUUUUUUUUUUUUUUUUUU',
                                                                      undef
                                                                    ],
                                                        'args' => [
                                                                    'MusicBrainz::Server::Data::Edit=HASH(0x13824018)',
                                                                    'MusicBrainz::Server::Edit::Historic::AddLink=HASH(0x1db91c20)'
                                                                  ]
                                                      },
                                                      ...
                                                    ]
                                         }, 'Devel::StackTrace' ),
                       'message' => 'Attribute (id) does not pass the type constraint because: Validation failed for \'Int\' with value undef',
                       'type_constraint_message' => 'Validation failed for \'Int\' with value undef',
                       'class_name' => 'MusicBrainz::Server::Entity::ReleaseGroup',
                       'new_member' => 0,
                       'attribute_name' => 'id'
                     }, 'Moose::Exception::ValidationFailedForInlineTypeConstraint' );
      
       at lib/MusicBrainz/Server/Data/Utils.pm line 230."
      

      I have shortened the above raw stack trace because JIRA gave me the following error message:
      The entered text is too long. It exceeds the allowed limit of 32,767 characters.

            reosarevok Nicolás Tamargo
            kellnerd David Kellner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2020-11-02