detcherry / phonoblaster

Phonoblaster application (App Engine)
4 stars 2 forks source link

Big mess with sessions #12

Open detcherry opened 12 years ago

detcherry commented 12 years ago

In /lucasputerflam you can see listeners .... whereas they left the station 7 hours ago... Something is wrong since the new version....

Boussadia commented 12 years ago

Other problem : when a user is loged but has no profile, he can acces to /api/session post because there is no @login_required wrapper to access that method

Log :

Station already in memcache

Brice Venel-juan already in memcache

Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 703, in call handler.post(*groups) File "/base/data/home/apps/s~phonoblaster/4-2-3.359665136411789905/controllers/api/sessions.py", line 57, in post listener_key = self.user_proxy.user.profile.key() AttributeError: 'NoneType' object has no attribute 'key'

detcherry commented 12 years ago

It should not happen... => only show profile funnel if the user is logged in and has no profile. How could he access /api/session? He should be redirected to /profile/init. I don't understand...