Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

superset login is not working when Transfer encoding set to chunked in http request #1720

Closed
nishantmonu51 opened this issue Nov 30, 2016 · 0 comments · Fixed by #1742
Closed

Comments

@nishantmonu51
Copy link
Member

I am trying to use superset behind a proxy server, where the proxy server is using chunked encoding in requests. After debugging for a while found that when using chunked encoding the login request ignores the request content.

Make sure these boxes are checked before submitting your issue - thank you!

  • [*] I have checked the superset logs for python stacktraces and included it here as text if any
  • [*] I have reproduced the issue with at least the latest released version of superset
  • [*] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.14.1

Expected results

Actual results

Steps to reproduce

disable CSRF by setting WTF_CSRF_ENABLED to false.

  1. try to login via curl below command works and login works fine-
    curl -X POST 'http://superset-ip:port/login/' --data 'csrf_token=None&username=admin&password=admin’

  2. set encoding to chunked , now login will not work -
    curl -X POST 'http://superset-ip:port/login/' -H 'Transfer-Encoding: chunked' --data 'csrf_token=None&username=admin&password=admin'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant