Skip to content

[BUG] Return a comprehensible error when a 404 mwplus subpath is .assign'd-to. #73

Description

@roke-julian-lockhart

What The Problem Is

Any invalid path appended to //meza.wiki/mwplus/ returns a database query error, which is not informative.

How To Reproduce It

Consider the example that //reddit.com/r/mediawiki/comments/1k874lv/comment/mp40q4v provides: it cites ../mwplus/MediaWiki_Users_and_Developers_Workshop_Spring_2025, which is, now, 404. The user is unable to easily ascertain this:

  1. #!/usr/bin/env pwsh
    curl https://meza.wiki/mwplus/!
  2. MediaWiki internal error.<br />
    <br />
    Original exception: [aaSODGTInPMe@1k5D2a-CwAAAMI] 2026-03-01 19:05:48: Fatal exception of type &quot;Wikimedia\Rdbms\DBQueryError&quot;<br />
    <br />
    Exception caught inside exception handler.<br />
    <br />
    Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.<br />

The Expected Behavior

It should inform the user that the path does not exist.

Outside Core

If your bug is about a user experience, it is most likely an upstream bug in one of the platform components, but we might be able to help you identify where to report it if you tell us how you were using the platform.

Please do.

My Environment

  • OS

    1. #!/usr/bin/env sh
      cat /etc/os-release | jc --ini | jq 'with_entries(.value |= (if type=="string" and test("^[0-9]+$") then tonumber else . end))| {VARIANT, NAME, VERSION_ID}' | yq -P
    2. VARIANT: KDE Plasma Desktop Edition
      NAME: Fedora Linux
      VERSION_ID: 43
  • Browser

    1. #!/usr/bin/env sh
      desktop=$(xdg-settings get default-web-browser)
      dnf5 repoquery --location $(rpm -qf $(command -v $(grep -h -m1 '^Exec=' /usr/share/applications/$desktop ~/.local/share/applications/$desktop 2>/dev/null | cut -d= -f2 | sed 's/ %.*//')))
    2. https://packages.mozilla.org/rpm/firefox/Packages/7af7058d47721d2ffd1d91ef3ecd04d4d8cd8cbd8a222218d27298576dc8193b-firefox-nightly-150.0a1-20260228210222.x86_64.rpm

    Details

    In case that URI is ever 404, it's:

    1. #!/usr/bin/env sh
      desktop=$(xdg-settings get default-web-browser)
      rpm -qf $(command -v $(grep -h -m1 '^Exec=' /usr/share/applications/$desktop ~/.local/share/applications/$desktop 2>/dev/null | cut -d= -f2 | sed 's/ %.*//')) --queryformat $'Name        : %{NAME}\nVersion     : %{VERSION}\nRelease     : %{RELEASE}\nArchitecture: %{ARCH}\nInstall Date: %{INSTALLTIME:date}\nSize        : %{SIZE}\nSignature   : %{SIGPGP:pgpsig}\nSource RPM  : %{SOURCERPM}\nBuild Date  : %{BUILDTIME:date}\nBuild Host  : %{BUILDHOST}\nVendor      : %{VENDOR}\n'
    2. Name        : firefox-nightly
      Version     : 150.0a1
      Release     : 20260228210222
      Architecture: x86_64
      Install Date: Sun 01 Mar 2026 01:08:25 GMT
      Size        : 381607927
      Signature   : (none)
      Source RPM  : firefox-nightly-150.0a1-20260228210222.src.rpm
      Build Date  : Sat 28 Feb 2026 23:24:16 GMT
      Build Host  : 17557a0c1991
      Vendor      : Mozilla

      1

Footnotes

  1. mikefarah/yq/discussions/1945#discussioncomment-15963964

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions