Page MenuHomePhabricator

Turn wfHttpError() into a wrapper for HttpError exception
Closed, DeclinedPublic

Description

Global function wfHttpError() is only used in core by AjaxDispatcher. It should be deprecated and callers should use the HttpError exception instead.


Version: 1.20.x
Severity: enhancement

Details

Reference
bz34151
TitleReferenceAuthorSource BranchDest Branch
Add banana checker for i18n messagesrepos/commtech/wishlist-intake!24samwilsonbanana-checkermain
Add remaining i18n messagesrepos/commtech/wishlist-intake!12samwilsoni18n-msgsmain
Add i18n system and start l10nrepos/commtech/wishlist-intake!5samwilsoni18n-setupmain
charts: handle concurrent chart downloadsrepos/qte/catalyst/catalyst-api!8jnucheT361516-3main
use dinamically downloaded charts instead of a Git submodulerepos/qte/catalyst/catalyst-api!7jnucheT361516-2main
support latest version of the `mediawiki` chartrepos/qte/catalyst/catalyst-api!6jnucheT361516main
adapt chart to reflect latest design of Catalyst APIrepos/qte/catalyst/ci-charts!6jnucheT361516main
Update wikimediaci-utils to 1.3.0repos/ci-tools/libup!30taavitaavi/ciutilsmaster
Replace Redis queue with custom http solutiontoolforge-repos/wikibugs2!28bd808work/bd808/ssemain
Dependency bumps, etcrepos/ci-tools/libup!29taavitaavi/runmaster
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:17 AM
bzimport set Reference to bz34151.
bzimport added a subscriber: Unknown Object (MLST).

Additionally, we want to avoid loosing time on old stuff (example: r110486 )

(In reply to comment #1)

Additionally, we want to avoid loosing time on old stuff (example: r110486 )

Still would've lost time, since the exception still mentions HTML2 as well ;-)

I like Chad's suggestion in r110486 better. We shouldn't deprecate things that are easy enough to support with a wrapper.

(In reply to comment #2)

Still would've lost time, since the exception still mentions HTML2 as well ;-)

Exception DOCTYPE fixed with https://gerrit.wikimedia.org/r/5423

Made wfHttpError() thrown an HttpError exception with https://gerrit.wikimedia.org/r/5424

This was never merged -- needs a lot of cleanup before we do. REOPENING.

Actually, I'm not convinced on this anymore. It's used in a couple of places, not just AjaxDispatcher. Plus some extensions. It's basically harmless. Declined.