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

ISE when requesting doc page with “ in URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2022-06-07
    • None
    • Documentation
    • None

      Trying to load https://musicbrainz.org/doc/DatabaseDownload%E2%80%9C ISEs. This is probably an invalid request, but we should at least aim to fail more gracefully than this.

      Sentry Issue: MUSICBRAINZ-SERVER-2N

      None: Can't escape \x{201C}, try uri_escape_utf8() instead at lib/MusicBrainz/Server/Data/WikiDoc.pm line 125.
        File "WikiDoc.pm", line 125, in MusicBrainz::Server::Data::WikiDoc::_load_page
          my $doc_url = sprintf 'http://%s/%s?action=render&redirect=no', DBDefs->WIKITRANS_SERVER, uri_escape($id);
        File "WikiDoc.pm", line 169, in MusicBrainz::Server::Data::WikiDoc::get_page
          $page = $self->_load_page($id, $version, $index) or return undef;
        File "Doc.pm", line 18, in Catalyst::dispatch
          my $page = $c->model('WikiDoc')->get_page($id, $version);
        File "Server.pm", line 388, in MusicBrainz::Server::__ANON__
          $c->$orig(@args)
        File "Server.pm", line 353, in MusicBrainz::Server::with_translations
          $code->();
      ...
      (3 additional frame(s) were not displayed)
      

            reosarevok Nicolás Tamargo
            dev-sentry Dev through Sentry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2022-06-07