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

ModBot is unable to close Edit::Relationship::Delete edits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2013-07-08
    • Component/s: None
    • Labels:
      None

      Description

      Currently the ModBot emails contain exceptions such as:

      Attribute (data) does not pass the type constraint because: Validation failed for 'MooseX::Types::Structured::Dict[relationship,MooseX::Types::Structured::Dict[id,Int,entity0,MooseX::Types::Structured::Dict[id,Int,name,Str],entity1,MooseX::Types::Structured::Dict[id,Int,name,Str],phrase,Str,extra_phrase_attributes,MooseX::Types::Structured::Optional[Str],link,MooseX::Types::Structured::Dict[begin_date,MusicBrainz::Server::Edit::Types::PartialDateHash,end_date,MusicBrainz::Server::Edit::Types::PartialDateHash,type,MooseX::Types::Structured::Dict[entity0_type,Str,entity1_type,Str]]]]' with value { relationship: { entity0: HASH(0x93b70e0), entity1: HASH(0x93a39a0), extra_phrase_attributes: "", id: 526410, link: HASH(0x3656d40), phrase: "has lyrics available at" } } at accessor MusicBrainz::Server::Edit::Relationship::Delete::data (defined at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Edit/Relationship/Delete.pm line 27) line 4.
      	MusicBrainz::Server::Edit::Relationship::Delete::data('MusicBrainz::Server::Edit::Relationship::Delete=HASH(0x93b7260)', 'HASH(0x91b9250)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Edit.pm line 299
      	MusicBrainz::Server::Edit::restore('MusicBrainz::Server::Edit::Relationship::Delete=HASH(0x93b7260)', 'HASH(0x91b9250)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Data/Edit.pm line 61
      	MusicBrainz::Server::Data::Edit::__ANON__() called at local/lib/perl5/Try/Tiny.pm line 76
      	eval {...} called at local/lib/perl5/Try/Tiny.pm line 67
      	Try::Tiny::try('CODE(0x9100948)', 'Try::Tiny::Catch=REF(0x9121728)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Data/Edit.pm line 67
      	MusicBrainz::Server::Data::Edit::_new_from_row('MusicBrainz::Server::Data::Edit=HASH(0x3667568)', 'HASH(0x4154718)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Data/Edit.pm line 91
      	MusicBrainz::Server::Data::Edit::get_by_id_and_lock('MusicBrainz::Server::Data::Edit=HASH(0x3667568)', 22730316) called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/EditQueue.pm line 106
      	MusicBrainz::Server::EditQueue::_process_edit('MusicBrainz::Server::EditQueue=HASH(0x327a0c0)', 22730316) called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/EditQueue.pm line 76
      	MusicBrainz::Server::EditQueue::__ANON__() called at /home/musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 307
      	Sql::__ANON__() called at local/lib/perl5/Try/Tiny.pm line 76
      	eval {...} called at local/lib/perl5/Try/Tiny.pm line 67
      	Try::Tiny::try('CODE(0x2a39270)', 'Try::Tiny::Catch=REF(0x351f628)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 320
      	Sql::_auto_transaction('CODE(0x32b7108)', 'Sql=HASH(0x32b3690)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 325
      	Sql::_run_in_transaction_one('CODE(0x32b7108)', 'Sql=HASH(0x32b3690)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 339
      	Sql::run_in_transaction('CODE(0x32b7108)', 'Sql=HASH(0x32b3690)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/EditQueue.pm line 77
      	MusicBrainz::Server::EditQueue::__ANON__() called at local/lib/perl5/Try/Tiny.pm line 76
      	eval {...} called at local/lib/perl5/Try/Tiny.pm line 67
      	Try::Tiny::try('CODE(0x3436200)', 'Try::Tiny::Catch=REF(0x350f860)') called at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/EditQueue.pm line 85
      	MusicBrainz::Server::EditQueue::process_edits('MusicBrainz::Server::EditQueue=HASH(0x327a0c0)') called at ./admin/CheckVotes.pl line 56
      Error while processing edit #22730316: Can't use an undefined value as a HASH reference at /home/musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Edit/Relationship/Delete.pm line 186.
       at /home/musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 320.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acid2 Oliver Charles
                Reporter:
                acid2 Oliver Charles
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2013-07-08