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

Searching by TOC fails for mediums which have no format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Bug fixes, 2011-08-22
    • Component/s: Web service
    • Labels:
      None

      Description

      this query produces an error.

      http://musicbrainz.org/ws/2/discid/l6seqGurlYqnghgoi1Wuu4Xks1Y-?toc=1+30+276622+150+12874+20266+24568+28870+36710+43361+56620+67957+79083+92842+100247+106012+117324+127172+131578+138860+154629+165880+169159+177136+192936+199944+207631+216431+223944+235744+244734+254674+267922&cdstubs=no

      Internal Server Error

      Oops, something went wrong!

      Error:

      Caught exception in MusicBrainz::Server::Controller::WS::2::DiscID->discid "Attribute (format_id) does not pass the type constraint because: Validation failed for 'Int' with value undef at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Data/DurationLookup.pm line 92
      MusicBrainz::Server::Data::DurationLookup::lookup('MusicBrainz::Server::Data::DurationLookup=HASH(0x7ebf860)', '1 30 276622 150 12874 20266 24568 28870 36710 43361 56620 679...', 10000) called at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Controller/WS/2/DiscID.pm line 76
      MusicBrainz::Server::Controller::WS::2::DiscID::discid('MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0x962e218)', 'MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      eval

      {...} called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      Catalyst::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962e218)') called at /usr/local/share/perl/5.10.1/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962e218)') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0x962e218)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst/ActionChain.pm line 39
      Catalyst::ActionChain::dispatch('Catalyst::ActionChain=HASH(0xb6c0db0)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst/Controller.pm line 110
      Catalyst::Controller::_ACTION('MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0x962b150)', 'MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      eval {...}

      called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      Catalyst::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962b150)') called at /usr/local/share/perl/5.10.1/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962b150)') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0x962b150)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x1ad4940)', 'forward', 'MusicBrainz::Server=HASH(0xb625620)', '_ACTION') called at /usr/local/share/perl/5.10.1/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x1ad4940)', 'MusicBrainz::Server=HASH(0xb625620)', '_ACTION') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 377
      Catalyst::forward('MusicBrainz::Server=HASH(0xb625620)', '_ACTION') called at /usr/local/share/perl/5.10.1/Catalyst/Controller.pm line 84
      Catalyst::Controller::_DISPATCH('MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 65
      Catalyst::Action::execute('Catalyst::Action=HASH(0x962ab38)', 'MusicBrainz::Server::Controller::WS::2::DiscID=HASH(0x921c6d0)', 'MusicBrainz::Server=HASH(0xb625620)', 'l6seqGurlYqnghgoi1Wuu4Xks1Y-') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      eval

      {...} called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1665
      Catalyst::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962ab38)') called at /usr/local/share/perl/5.10.1/Catalyst/Plugin/StackTrace.pm line 94
      Catalyst::Plugin::StackTrace::execute('MusicBrainz::Server=HASH(0xb625620)', 'MusicBrainz::Server::Controller::WS::2::DiscID', 'Catalyst::Action=HASH(0x962ab38)') called at /usr/local/share/perl/5.10.1/Catalyst/Action.pm line 60
      Catalyst::Action::dispatch('Catalyst::Action=HASH(0x962ab38)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst/Dispatcher.pm line 257
      Catalyst::Dispatcher::_do_forward('Catalyst::Dispatcher=HASH(0x1ad4940)', 'forward', 'MusicBrainz::Server=HASH(0xb625620)', '/ws/2/discid/_DISPATCH') called at /usr/local/share/perl/5.10.1/Catalyst/Dispatcher.pm line 237
      Catalyst::Dispatcher::forward('Catalyst::Dispatcher=HASH(0x1ad4940)', 'MusicBrainz::Server=HASH(0xb625620)', '/ws/2/discid/_DISPATCH') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 377
      Catalyst::forward('MusicBrainz::Server=HASH(0xb625620)', '/ws/2/discid/_DISPATCH') called at /usr/local/share/perl/5.10.1/Catalyst/Dispatcher.pm line 105
      Catalyst::Dispatcher::dispatch('Catalyst::Dispatcher=HASH(0x1ad4940)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1611
      Catalyst::dispatch('MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst/Plugin/Static/Simple.pm line 76
      Class::MOP::Class:::around('CODE(0x21333a0)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Method/Wrapped.pm line 159
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0xb625620)') called at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server.pm line 270
      Class::MOP::Class:::around('CODE(0x9754040)', 'MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Method/Wrapped.pm line 159
      Class::MOP::Method::Wrapped::_ANON_('MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Method/Wrapped.pm line 89
      MusicBrainz::Server::dispatch('MusicBrainz::Server=HASH(0xb625620)') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1952
      eval {...}

      called at /usr/local/share/perl/5.10.1/Catalyst.pm line 1943
      Catalyst::handle_request('MusicBrainz::Server', 'env', 'HASH(0x2e8e990)') called at /home/musicbrainz/musicbrainz-server/script/../lib/Catalyst/Plugin/AutoRestart.pm line 119
      Catalyst::Plugin::AutoRestart::handle_request('MusicBrainz::Server', 'env', 'HASH(0x2e8e990)') called at /usr/local/share/perl/5.10.1/Catalyst/Engine/FastCGI.pm line 149
      Catalyst::Engine::FastCGI::run('Catalyst::Engine::FastCGI=HASH(0x2e594f0)', 'MusicBrainz::Server', '127.0.0.1:55901', 'HASH(0x9c0d48)') called at /usr/local/share/perl/5.10.1/Catalyst.pm line 2396
      Catalyst::run('MusicBrainz::Server', '127.0.0.1:55901', 'HASH(0x9c0d48)') called at ./script/musicbrainz_fastcgi.pl line 28"

      Stack trace:

      line 92 MusicBrainz::Server::Data::DurationLookup
      line 76 MusicBrainz::Server::Controller::WS::2::DiscID
      line 270 MusicBrainz::Server

      Request data:

      $VAR1 = {
      'query_parameters' =>

      { 'cdstubs' => 'no', 'toc' => '1 30 276622 150 12874 20266 24568 28870 36710 43361 56620 67957 79083 92842 100247 106012 117324 127172 131578 138860 154629 165880 169159 177136 192936 199944 207631 216431 223944 235744 244734 254674 267922' }

      ,
      'body_parameters' => {}
      };

      URL: http://musicbrainz.org/ws/2/discid/l6seqGurlYqnghgoi1Wuu4Xks1Y-?toc=1+30+276622+150+12874+20266+24568+28870+36710+43361+56620+67957+79083+92842+100247+106012+117324+127172+131578+138860+154629+165880+169159+177136+192936+199944+207631+216431+223944+235744+244734+254674+267922&cdstubs=no

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Bug fixes, 2011-08-22