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

Adding release causes error

XMLWordPrintable

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

      Adding a release causes an error page to be displayed:

      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor::Add->add "Not an ARRAY reference at /home/mbserver/musicbrainz/mb_server-next/script/../lib/MusicBrainz/Server/Edit/Utils.pm line 88."

      Trying again, could not reproduce.

      ----- Stack Trace -----

      Package Line File
      MusicBrainz::Server::Edit::Utils 88 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server/Edit/Utils.pm
      85:
      86: # Remove empty artist credits.
      87: my @delete;
      88: my $max = scalar @

      { $ac }

      - 1;
      89: for (0..$max)
      90: {
      91: my $part = $ac->[$_];

      MusicBrainz::Server::ControllerBase::ReleaseEditor 676 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server/ControllerBase/ReleaseEditor.pm
      673: my ($self, $data) = @_;
      674: my $json = JSON::Any->new(utf8 => 1);
      675: return
      676: grep { !$_->

      {artist}

      } grep

      { ref($_) }

      677: map { @

      { clean_submitted_artist_credits($_) }

      }
      678: (
      679: # Artist credit for the release itself

      MusicBrainz::Server::ControllerBase::ReleaseEditor 647 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server/ControllerBase/ReleaseEditor.pm
      644: {
      645: my ($self, $c, $wizard) = @_;
      646:
      647: my @credits = map +{
      648: for => $_->

      {name},
      649: name => $_->{name}

      ,
      650: }, $self->_misssing_artist_credits($wizard->value);

      MusicBrainz::Server::ControllerBase::ReleaseEditor 441 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server/ControllerBase/ReleaseEditor.pm
      438: );
      439: $wizard->process;
      440:
      441: if ($wizard->cancelled)

      { 442: $self->cancelled($c); 443: }

      444: elsif ($wizard->current_page eq 'recordings') {

      MusicBrainz::Server::Controller::ReleaseEditor::Add 13 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server/Controller/ReleaseEditor/Add.pm
      10: sub add : Path('/release/add') Edit RequireAuth
      11:

      { 12: my ($self, $c) = @_; 13: $self->run($c); 14: }

      15:
      16: sub cancelled

      { MusicBrainz::Server 202 /home/mbserver/musicbrainz/mb_server-next/lib/MusicBrainz/Server.pm 199: my $c = shift; 200: 201: Translation->instance->build_languages_from_header($c->req->headers); 202: $c->$orig(@_); 203: }

      ;
      204:
      205: sub gettext

      { shift; Translation->instance->gettext(@_) }

            acid2 Oliver Charles
            pbryan Paul Bryan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                NGS - Release Candidate 1