Modify ↓
Opened 9 years ago
Closed 9 years ago
#12734 closed defect (fixed)
AttributeError: 'list' object has no attribute 'strip'
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann | Trac Release: | 1.0 |
Description
From the logs:
2016-04-09 09:32:23,823 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/register?__FORM_TOKEN=3e85b91934f824c6fd15affc&action=create&username=RochelleKirkpatr&password=dRJIKJ12&password_confirm=dRJIKJ12&email=evelinxkosanovicqjiy%40yahoo.com&basic_token=I%27m%20no%20bot%2C%20let%20me%20in%2C%20please.&sentinel=&name=Rochelle%20Kirkpatrick&spf_homepage=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx37cm2j&sfp_email=&sfph_mail=&__FORM_TOKEN=747877c2cff29be086a7279c&action=create&username=RochelleKirkpatr&password=dRJIKJ12&password_confirm=dRJIKJ12&email=evelinxkosanovicqjiy%40yahoo.com&basic_token=I%27m%20no%20bot%2C%20let%20me%20in%2C%20please.&sentinel=&name=RochelleKirkpatr&spf_homepage=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx37cm2j&sfp_email=&sfph_mail='">, referrer 'http://trac-hacks.org/register?__FORM_TOKEN=3e85b91934f824c6fd15affc&action=create&username=RochelleKirkpatr&password=dRJIKJ12&password_confirm=dRJIKJ12&email=evelinxkosanovicqjiy%40yahoo.com&basic_token=I%27m%20no%20bot%2C%20let%20me%20in%2C%20please.&sentinel=&name=Rochelle%20Kirkpatrick&spf_homepage=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx37cm2j&sfp_email=&sfph_mail=&__FORM_TOKEN=747877c2cff29be086a7279c&action=create&username=RochelleKirkpatr&password=dRJIKJ12&password_confirm=dRJIKJ12&email=evelinxkosanovicqjiy%40yahoo.com&basic_token=I%27m%20no%20bot%2C%20let%20me%20in%2C%20please.&sentinel=&name=RochelleKirkpatr&spf_homepage=http%3A%2F%2Fwww.dailymotion.com%2Fvideo%2Fx37cm2j&sfp_email=&sfph_mail=' Traceback (most recent call last): File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 554, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 247, in dispatch resp = chosen_handler.process_request(req) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/acct_mgr/register.py", line 430, in process_request name = req.args.get('name', '').strip() AttributeError: 'list' object has no attribute 'strip'
Attachments (0)
Note: See
TracTickets for help on using
tickets.
I considered using
getfirst
, as in trac:#12349, however since this is the registration page perhaps we are better off just raising anHTTPBadRequest
. That may stop more spam registration attempts before they can be submitted.acct_mgr/register.py