I keep getting redirected to the login page from pages like our tracker, the nf/admin pages, and the adobe page. On the login page I see this:
Logged-in as mramm You are already logged-in to a SourceForge account. You may use the form to the right to attach an OpenID to this account.
And I can't get back to any newforge pages.
I expect this is an issue with the session database connection, or something similar, but it's quite confusing since it works fine on the "classic" side.
I've also experienced it where I login to view a ticket and then if I click a link to another ticket I get the login prompt again. New forge is not remembering or knowing that I'm logged in.
just figured out how to reproduce that
go to http://sf.net/nf/admin
get redirected, login
now you're at https://sf.net/nf/admin
change https to http and hit enter
rcopeland
did we just switch to https-only cookies?
jsteele
oh, so that page on sfx needs to look at the return_to and send you there if you're logged in alread
rcopeland
yeah, that's it
so on http, the PHPSESSID-S isn't sent
Mark ramm-christensen
makes sense I guess
but when did that happen?
rcopeland
dunno, should ask the sfx guys
probably around the time that firesheep came out
anyway, if we don't receive that, then the user is anonymous
and then they get a 401 because we require them to be authenticated
which redirects them to the login page
on https
but they're already logged in
so it's confusing
Mark ramm-christensen
good topic of conversation tomorrow morning
one way we might be able to fix this is to make sure we do the http/https redirect based on something other than PHPSESSID-S
This is sf.consume's SfHttpHttpsMiddleware class:
Thanks dave!
Actually this only seems to happen on /nf/* urls, which we explicitly set to not redirect b/c of all the static resources. I have asked SOG to narrow the filter to only include our "true" static resources.
https://control.sog.geek.net/sog/trac/ticket/17620