Page MenuHomePhabricator

Fix issue where accessing HTTP domain would override HTTPS cookie
ClosedPublic

Authored by hach-que on Feb 15 2014, 1:00 AM.
Tags
None
Referenced Files
F18794417: D8244.id.diff
Thu, Oct 16, 11:35 PM
F18788512: D8244.diff
Wed, Oct 15, 5:15 AM
F18630844: D8244.diff
Sep 16 2025, 1:22 PM
F18618053: D8244.id.diff
Sep 14 2025, 11:03 PM
F18598713: D8244.diff
Sep 13 2025, 5:40 AM
F18055196: D8244.id.diff
Aug 4 2025, 7:08 AM
Unknown Object (File)
Jun 16 2025, 10:38 PM
Unknown Object (File)
May 7 2025, 2:25 PM

Details

Summary

This fixes an issue where visiting http://code.redpointsoftware.com.au/ would log you out of https://code.redpointsoftware.com.au/

Test Plan

Applied this patch to a live server and saw the issue go away.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Hmm.. maybe it's cleaner for the PhabricatorRedirectController not to try to write this cookie? I think the simplest fix would be to extend it from AphrontController instead of PhabricatorController. I think it's executing a lot of logic which is at best useless and at worst bad (as here) by running through PhabricatorController::willBeginExecution().

I suppose this is probably worth having as a safety net in any case, since it's definitely correct, it's just a bit odd that we can end up here.