Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

update.php inaccessible under HTTPS #127

Open
ttrowell opened this issue Feb 17, 2016 · 2 comments
Open

update.php inaccessible under HTTPS #127

ttrowell opened this issue Feb 17, 2016 · 2 comments

Comments

@ttrowell
Copy link

When a D8 site is served with HTTPS, update.php cannot be accessed.

Example:
HTTPS:
http://screencast.com/t/HvwXDSgefs

HTTP:
http://screencast.com/t/jnPmm4ETU5Tz

Originally reported by Adam W. desk case#54237

There is no redirect logic in settings.php.

Test site is http://test-d8-80release.pantheon.io

@ccmorris
Copy link

There are separate sessions for http and https, unless you have $conf = TRUE; in your settings file. This is also true in D7. You can confirm this is the case by logging into the site with http and then go to admin page with https.

See https://www.drupal.org/https-information#drupal-config

@upperrapids
Copy link

I was under the impression that mixed-mode support had been removed in D8, but regardless I'm not sure that's exactly what we're seeing here.

I did a bunch of testing today as this behaviour seemed erratic to me and I've got it down to something reproducible. This is all on a live Pantheon site so I'm not sure what would happen with a similar setup outside of Pantheon. The domain name in this test is set with CNAMEs for both www and non-www pointing to the live-domain.pantheon.io name. Vanilla settings.php as well.

Legend:
(IN) = I'm logged in to Drupal as an admin in the same browser
(OUT) = I'm logged out of Drupal in the same browser
OK = update.php loaded as you'd expected
??? = unexpected behaviour

(OUT) http://live-domain.pantheon.io/update.php "You must be logged in as admin..."
(IN) https://live-domain.pantheon.io/update.php OK

(IN) http://live-domain.pantheon.io/update.php OK
(OUT) https://live-domain.pantheon.io/update.php You must be logged in as admin..."

(IN) http://www.domain.com/update.php OK
(IN) https://www.domain.com/update.php OK
(IN) http://domain.com/update.php OK
(IN) https://domain.com/update.php OK

(IN) http://www.domain.com/update.php OK
(IN) https://www.domain.com/update.php OK
(OUT) http://domain.com/update.php "You must be logged in as admin..."
(IN) https://domain.com/update.php "You must be logged in as admin..." ???

(IN) http://www.domain.com/update.php OK
(IN) https://www.domain.com/update.php OK
(IN) http://domain.com/update.php OK
(OUT) https://domain.com/update.php OK (but it shouldn't be) ???

(OUT) http://www.domain.com/update.php "You must be logged in as admin..."
(IN) https://www.domain.com/update.php "You must be logged in as admin..." ???
(IN) http://domain.com/update.php OK
(IN) https://domain.com/update.php OK

(IN) http://www.domain.com/update.php OK
(OUT) https://www.domain.com/update.php OK (but it shouldn't be) ???
(IN) http://domain.com/update.php OK
(IN) https://domain.com/update.php OK

It seems like the cookie being set is mixing up the http / https.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants