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

ISE if passing non-existent medium ID to cdtoc/attach

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2023-02-28
    • None
    • CD support
    • None

      Trying to pass a valid (numeric) but non-existent medium ID to a page like cdtoc/attach?toc=1+8+178280+150+17885+50412+71882+95892+118332+139512+156820&filter-release.query=live+at+the+greek&medium=2864042 causes an ISE: 

       

      Can't call method "may_have_discids" on an undefined value at lib/MusicBrainz/Server/Controller/CDTOC.pm line 182. at lib/MusicBrainz/Server/Controller/CDTOC.pm line 182 Catalyst::dispatch called at lib/MusicBrainz/Server.pm line 388 MusicBrainz::Server::_ANON_ at lib/MusicBrainz/Server.pm line 353 MusicBrainz::Server::with_translations(?, ?) called at lib/MusicBrainz/Server.pm line 389 Class::MOP::Method::Wrapped::_ANON called at lib/MusicBrainz/Server.pm line 403 Class::MOP::Method::Wrapped::ANON_ called at lib/MusicBrainz/Server.pm line 488

       

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

              Created:
              Updated:
              Resolved:

                Version Package
                2023-02-28