-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
AttributeError: 'ApiUser' object has no attribute 'email' #1824
Milestone
Comments
Just to be clear, ### in those URL paths is an actual query ID number. |
I assume you call this API call with a query API key? |
Yes, the request is called with an api_key param. |
This is the reason for the error. We should probably check the API key here and only allow a user API key, because otherwise it's a security concern (in the case of queries with parameters). |
arikfr
added a commit
that referenced
this issue
Nov 1, 2017
Fix #1824: allow only user API key to be used with query refresh API.
vabanin
added a commit
to vabanin/redash
that referenced
this issue
Nov 13, 2017
* 'master' of https://github.com/getredash/redash: (95 commits) CR3 In editing mode hide menu button and show remove button instead Fix: widget menu not visible on small widgets Fix widget auto-height behaviour Cleanup CSS CR2 CR1 getredash#335 Better dashboard editor CirlceCI: Docker build for release branches. Redshift: change default SSL mode to prefer. Update v3 CHANGELOG. Add Query Results to the default query runners list. Add: data source to run queries on top of query results. Fix getredash#1824: allow only user API key to be used with query refresh API. Disable fork button for those can't fork Fix: require full access to the data source to fork a query. Remove unused variables Fix getredash#1979: API key of one query could be used to get results of another one Copy parameters value when forking a query Save only the query id instead of query id and name ...
dairyo
pushed a commit
to KiiCorp/redash
that referenced
this issue
Mar 1, 2019
dairyo
pushed a commit
to KiiCorp/redash
that referenced
this issue
Mar 1, 2019
Fix getredash#1824: allow only user API key to be used with query refresh API.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
API POST calls to /api/queries/###/refresh throw this error on 1.0.3+b2850
Steps to Reproduce
Full error with trace:
Same request worked in some previous version of Redash. Looking at the current code on master, it seems to still make the same reference to
current_user.email
so assuming this bug still exists, but haven't confirmed that yet.Technical details:
The text was updated successfully, but these errors were encountered: