• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dpgaspar / Flask-AppBuilder / 1875
74%

Build:
DEFAULT BRANCH: master
Ran 18 Mar 2019 08:04AM UTC
Jobs 2
Files 63
Run time 45s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1875

Pull #926

travis-ci

web-flow
fix: 500 error when input username contains special characters

when input username contains special characters, i.e "root🈳",
server will display 500 error page, and expose scripts filepath:

```
Stacktrace
         Traceback (most recent call last):
  File "/root/venv/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/root/venv/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/root/venv/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/root/venv/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/root/venv/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/root/venv/lib/python2.7/site-packages/flask_appbuilder/security/views.py", line 381, in login
    user = self.appbuilder.sm.auth_user_db(form.username.data, form.password.data)
  File "/root/venv/lib/python2.7/site-packages/flask_appbuilder/security/manager.py", line 529, in auth_user_db
    log.info(LOGMSG_WAR_SEC_LOGIN_FAILED.format(username))
UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001f233' in position 4: ordinal not in range(128)

```

After username.encode('utf-8'), 500 error page disappears.
Pull Request #926: Fix, 500 error when input username contains special characters

2 of 2 new or added lines in 1 file covered. (100.0%)

4922 of 7009 relevant lines covered (70.22%)

1.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1875.1 18 Mar 2019 08:05AM UTC 0
70.26
Travis Job 1875.1
2 1875.2 18 Mar 2019 08:04AM UTC 0
70.22
Travis Job 1875.2
Source Files on build 1875
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1875
  • Pull Request #926
  • PR Base - master (#1861)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc