YaleSTC / vesta

Application for housing lottery / room draw
GNU General Public License v3.0
6 stars 2 forks source link

"Too many redirects" on home page #590

Closed AlanLiu96 closed 3 months ago

AlanLiu96 commented 7 years ago

Can be reproduced by

  1. sign out
  2. go to homepage

Expected: see homepage, but logged out Actual: Chrome error saying it redirects too many times

the homepage is throwing a 302 error which is then redirecting back to the homepage. I suspect it is caused by somehow not having permissions to access the home page while logged out?

Workaround:

  1. go to /users/sign_in
  2. sign in

image

AlanLiu96 commented 7 years ago

It's occurring because of the call to check_colleges whenever the index page is hit, which unauthorized