github: shadowy octopus with the head of a robot, emblazoned with the Dreamwidth swirl (Default)
github ([personal profile] github) wrote in [site community profile] changelog2026-02-20 11:20 pm

[dreamwidth/dreamwidth] 558458: Handle userpics subdomain in Plack middleware

Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 558458c9ab5c5548f20b6b380857292cc8350203 https://github.com/dreamwidth/dreamwidth/commit/558458c9ab5c5548f20b6b380857292cc8350203 Author: Mark Smith mark@dreamwidth.org Date: 2026-02-20 (Fri, 20 Feb 2026)

Changed paths: M cgi-bin/Plack/Middleware/DW/Auth.pm M cgi-bin/Plack/Middleware/DW/SubdomainFunction.pm

Log Message:


Handle userpics subdomain in Plack middleware

The 'userpics' SUBDOMAIN_FUNCTION (e.g., v.dreamwidth.org) was not handled by SubdomainFunction middleware, causing userpic URLs to fall through to the Auth middleware which triggered unnecessary domain session cookie bounces. Under Apache, userpic_trans handles these directly without any auth flow.

Rewrite PATH_INFO from /{picid}/{userid} to /userpic/{picid}/{userid} to match DW::Controller::Userpic's route, and skip the domain session bounce since userpics are public images that don't need authentication.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

To unsubscribe from these emails, change your notification settings at https://github.com/dreamwidth/dreamwidth/settings/notifications