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

Internal server error when seeding invalid track lengths to the release editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2014-04-28
    • Component/s: Release editor
    • Labels:
      None

      Description

      See the three examples in the attached file. Example error:

      Fehler: 
      
      Caught exception in MusicBrainz::Server::Controller::ReleaseEditor->add "4:60 is not a valid track length at lib/MusicBrainz/Server/Track.pm line 63,  line 3.
      	MusicBrainz::Server::Track::UnformatTrackLength("4:60") called at lib/MusicBrainz/Server/Track.pm line 13
      	MusicBrainz::Server::Track::__ANON__("4:60") called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 508
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_track(MusicBrainz::Server=HASH(0x158b90d0), HASH(0x154278b8), "mediums.0.track.0", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 323
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_hash(MusicBrainz::Server=HASH(0x158b90d0), CODE(0xbd11600), HASH(0x154278b8), "mediums.0.track.0", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 354
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_array(MusicBrainz::Server=HASH(0x158b90d0), CODE(0xbd11600), ARRAY(0x155d4bf8), "mediums.0.track", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 447
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_medium(MusicBrainz::Server=HASH(0x158b90d0), HASH(0x151ed908), "mediums.0", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 323
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_hash(MusicBrainz::Server=HASH(0x158b90d0), CODE(0xbd12098), HASH(0x151ed908), "mediums.0", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 354
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_array(MusicBrainz::Server=HASH(0x158b90d0), CODE(0xbd12098), ARRAY(0x15479848), "mediums", ARRAY(0xbccf658)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 275
      	MusicBrainz::Server::Controller::ReleaseEditor::_process_seeded_data(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0), HASH(0x159c3200)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 141
      	MusicBrainz::Server::Controller::ReleaseEditor::_seeded_data(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 42
      	MusicBrainz::Server::Controller::ReleaseEditor::_init_release_editor(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0), "return_to", URI::https=SCALAR(0x15719968)) called at lib/MusicBrainz/Server/Controller/ReleaseEditor.pm line 124
      	MusicBrainz::Server::Controller::ReleaseEditor::add(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 65
      	Catalyst::Action::execute(Catalyst::Action=HASH(0xe00ad40), MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	eval {...} called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	Catalyst::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xe00ad40)) called at /home/beta/perl5/lib/perl5/Catalyst/Plugin/StackTrace.pm line 93
      	Catalyst::Plugin::StackTrace::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xe00ad40)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 60
      	Catalyst::Action::dispatch(Catalyst::Action=HASH(0xe00ad40), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Controller.pm line 158
      	Catalyst::Controller::_ACTION(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 65
      	Catalyst::Action::execute(Catalyst::Action=HASH(0xe00a758), MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	eval {...} called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	Catalyst::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xe00a758)) called at /home/beta/perl5/lib/perl5/Catalyst/Plugin/StackTrace.pm line 93
      	Catalyst::Plugin::StackTrace::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xe00a758)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 60
      	Catalyst::Action::dispatch(Catalyst::Action=HASH(0xe00a758), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Dispatcher.pm line 257
      	Catalyst::Dispatcher::_do_forward(Catalyst::Dispatcher=HASH(0x4e4cd60), "forward", MusicBrainz::Server=HASH(0x158b90d0), "_ACTION") called at /home/beta/perl5/lib/perl5/Catalyst/Dispatcher.pm line 237
      	Catalyst::Dispatcher::forward(Catalyst::Dispatcher=HASH(0x4e4cd60), MusicBrainz::Server=HASH(0x158b90d0), "_ACTION") called at /home/beta/perl5/lib/perl5/Catalyst.pm line 373
      	Catalyst::forward(MusicBrainz::Server=HASH(0x158b90d0), "_ACTION") called at /home/beta/perl5/lib/perl5/Catalyst/Controller.pm line 132
      	Catalyst::Controller::_DISPATCH(MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 65
      	Catalyst::Action::execute(Catalyst::Action=HASH(0xdef8e30), MusicBrainz::Server::Controller::ReleaseEditor=HASH(0xddb7270), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	eval {...} called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1687
      	Catalyst::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xdef8e30)) called at /home/beta/perl5/lib/perl5/Catalyst/Plugin/StackTrace.pm line 93
      	Catalyst::Plugin::StackTrace::execute(MusicBrainz::Server=HASH(0x158b90d0), "MusicBrainz::Server::Controller::ReleaseEditor", Catalyst::Action=HASH(0xdef8e30)) called at /home/beta/perl5/lib/perl5/Catalyst/Action.pm line 60
      	Catalyst::Action::dispatch(Catalyst::Action=HASH(0xdef8e30), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst/Dispatcher.pm line 257
      	Catalyst::Dispatcher::_do_forward(Catalyst::Dispatcher=HASH(0x4e4cd60), "forward", MusicBrainz::Server=HASH(0x158b90d0), "/release_editor/_DISPATCH") called at /home/beta/perl5/lib/perl5/Catalyst/Dispatcher.pm line 237
      	Catalyst::Dispatcher::forward(Catalyst::Dispatcher=HASH(0x4e4cd60), MusicBrainz::Server=HASH(0x158b90d0), "/release_editor/_DISPATCH") called at /home/beta/perl5/lib/perl5/Catalyst.pm line 373
      	Catalyst::forward(MusicBrainz::Server=HASH(0x158b90d0), "/release_editor/_DISPATCH") called at /home/beta/perl5/lib/perl5/Catalyst/Dispatcher.pm line 105
      	Catalyst::Dispatcher::dispatch(Catalyst::Dispatcher=HASH(0x4e4cd60), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1633
      	Catalyst::dispatch(MusicBrainz::Server=HASH(0x158b90d0)) called at lib/MusicBrainz/Server.pm line 335
      	MusicBrainz::Server::__ANON__() called at lib/MusicBrainz/Server.pm line 309
      	MusicBrainz::Server::with_translations(MusicBrainz::Server=HASH(0x158b90d0), CODE(0x1588f298)) called at lib/MusicBrainz/Server.pm line 336
      	Class::MOP::Class:::around(CODE(0x42f06f8), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      	Class::MOP::Method::Wrapped::__ANON__(MusicBrainz::Server=HASH(0x158b90d0)) called at lib/MusicBrainz/Server.pm line 350
      	Class::MOP::Class:::around(CODE(0xe2bde68), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      	Class::MOP::Method::Wrapped::__ANON__(MusicBrainz::Server=HASH(0x158b90d0)) called at lib/MusicBrainz/Server.pm line 395
      	Class::MOP::Class:::around(CODE(0xe2c5370), MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 162
      	Class::MOP::Method::Wrapped::__ANON__(MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 35
      	Class::MOP::Method::Wrapped::__ANON__(MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 91
      	MusicBrainz::Server::dispatch(MusicBrainz::Server=HASH(0x158b90d0)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1992
      	Catalyst::__ANON__() called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 76
      	eval {...} called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 67
      	Try::Tiny::try(CODE(0x1588e4e8), Try::Tiny::Catch=REF(0x1588cc70)) called at /home/beta/perl5/lib/perl5/Catalyst.pm line 1998
      	Catalyst::handle_request("MusicBrainz::Server", "env", HASH(0x15a5b848), "response_cb", CODE(0xd046940)) called at /home/beta/perl5/lib/perl5/Catalyst/Plugin/AutoRestart.pm line 117
      	Catalyst::Plugin::AutoRestart::handle_request("MusicBrainz::Server", "env", HASH(0x15a5b848), "response_cb", CODE(0xd046940)) called at /home/beta/perl5/lib/perl5/Catalyst/Engine.pm line 697
      	Catalyst::Engine::__ANON__(CODE(0xd046940)) called at /home/beta/perl5/lib/perl5/Plack/Handler/FCGI.pm line 136
      	Plack::Handler::FCGI::run(Plack::Handler::FCGI=HASH(0x21e8ab8), CODE(0x3515dd0)) called at /home/beta/perl5/lib/perl5/Plack/Loader.pm line 84
      	Plack::Loader::run(Plack::Loader=HASH(0x21bfeb0), Plack::Handler::FCGI=HASH(0x21e8ab8)) called at /home/beta/perl5/lib/perl5/Plack/Runner.pm line 277
      	Plack::Runner::run(Plack::Runner=HASH(0x1f5d600)) called at /home/beta/perl5/bin/plackup line 10"
      
      
      
      Stack-Trace:
      line 63 MusicBrainz::Server::Track
      line 13 MusicBrainz::Server::Track
      line 508 MusicBrainz::Server::Controller::ReleaseEditor
      line 323 MusicBrainz::Server::Controller::ReleaseEditor
      line 354 MusicBrainz::Server::Controller::ReleaseEditor
      line 447 MusicBrainz::Server::Controller::ReleaseEditor
      line 323 MusicBrainz::Server::Controller::ReleaseEditor
      line 354 MusicBrainz::Server::Controller::ReleaseEditor
      line 275 MusicBrainz::Server::Controller::ReleaseEditor
      line 141 MusicBrainz::Server::Controller::ReleaseEditor
      line 42 MusicBrainz::Server::Controller::ReleaseEditor
      line 124 MusicBrainz::Server::Controller::ReleaseEditor
      line 335 MusicBrainz::Server
      line 309 MusicBrainz::Server
      line 336 MusicBrainz::Server
      line 350 MusicBrainz::Server
      line 395 MusicBrainz::Server
      
      
      Anfragedaten: 
      $VAR1 = {
                'query_parameters' => {},
                'body_parameters' => {
                                       'mediums.0.track.0.length' => '4:60'
                                     }
              };
                  
      
      
      Time: 2014-04-09 23:33:33 UTC 
      
      Host: pino 
      
      Oberflächensprache: de 
      
      URL: https://beta.musicbrainz.org/release/add
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bitmap Michael Wiencek
                Reporter:
                nikki nikki
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2014-04-28