-
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
record_event task fails for view events generated by an user who accesses a dashboard using a public sharing link #1950
Milestone
Comments
arikfr
added a commit
that referenced
this issue
Sep 27, 2017
Fix #1950: record_event fails for api events
vabanin
added a commit
to vabanin/redash
that referenced
this issue
Oct 5, 2017
# By Arik Fraimovich (8) and others # Via GitHub (12) and others * 'master' of git://github.com/getredash/redash: (21 commits) Modernize Python 2 code to get ready for Python 3 Fixed eslint "Cannot read property 'length' of undefined" error Add option to set the flask-limiter storage engine Fix: don't crash query editor when there are unclosed curly brackets. Fix: error value in charts wasn't displayed if it was 0. Fix: tests entering endless loop, due to bad input. Cohort visualization: make it friendlier to use. Add missing import. Fix: Queries#all_queries was sometimes returning wrong number of queries. Fix getredash#1950: record_event fails for api events Merged with upstream Bugfix: column.type not set by many data sources [sqlite, postgres etc] Use a different markdown library Update npm-shrinkwrap Use event.preventDefault() on EditInPlace textarea Remove magic numbers from EditInPlace() Update redirected link in README UnicodeWriter errors code to environment Hovertext length (#3) Merge/query based parameter (#2) ... Conflicts: package.json
vabanin
added a commit
to vabanin/redash
that referenced
this issue
Oct 5, 2017
# By Arik Fraimovich (8) and others # Via GitHub (12) and others * 'master' of git://github.com/getredash/redash: (21 commits) Modernize Python 2 code to get ready for Python 3 Fixed eslint "Cannot read property 'length' of undefined" error Add option to set the flask-limiter storage engine Fix: don't crash query editor when there are unclosed curly brackets. Fix: error value in charts wasn't displayed if it was 0. Fix: tests entering endless loop, due to bad input. Cohort visualization: make it friendlier to use. Add missing import. Fix: Queries#all_queries was sometimes returning wrong number of queries. Fix getredash#1950: record_event fails for api events Merged with upstream Bugfix: column.type not set by many data sources [sqlite, postgres etc] Use a different markdown library Update npm-shrinkwrap Use event.preventDefault() on EditInPlace textarea Remove magic numbers from EditInPlace() Update redirected link in README UnicodeWriter errors code to environment Hovertext length (#3) Merge/query based parameter (#2) ... Conflicts: package.json
dairyo
pushed a commit
to KiiCorp/redash
that referenced
this issue
Mar 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
If I share a dashboard and access it through the generated public URL, the worker prints an error to the log when it tries to write the view event into the events log table from the record_event task.
Steps to Reproduce
I was able to reproduce this issue by using the docker-compose.yml file provided in the repository (i.e. in a dev setup):
http://localhost:5000/public/dashboards/CH6m72tekgbplwzelZuxWzdtWu3LlbsewVYVxm8J?org_slug=default
) and access it with a clean browser profile (or private window that has no redash login cookies around)What happens?
The following error can be seen in the worker logs:
Coincidentally, the value that fails to be set to the user_id field (
CH6m72tekgbplwzelZuxWzdtWu3LlbsewVYVxm8J
) is the token seen in the public sharing URL (http://localhost:5000/public/dashboards/CH6m72tekgbplwzelZuxWzdtWu3LlbsewVYVxm8J?org_slug=default
)What should happen?
The view event is properly saved to the events table and the task does not crash.
Technical details:
I believe this issue was discussed in #1238 but that lacked a proper STR to actually fix the root cause of this issue. It did had some good ideas about what could cause the bug and it indeed seems that an anonymous user causes an incorrect user_id to be included in the view event.
The text was updated successfully, but these errors were encountered: