-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
"Object contains forbidden constructor property" error when using specific word #23953
Comments
Reproduces in 2.1.1. |
I will take a shot at reproducing it this week. It does seem like something that should be a small fix. |
Seems like it may be related: opensearch-project/OpenSearch-Dashboards#1777 |
Also can be related: elastic/elasticsearch-js#1408 (comment) |
Fixing this is beyond me, but I was able to validate it.
Throws this error in SQL Lab for me, while the same query with a different word replacing both instances of "constructor" succeeds. |
The problem seems to have been caused by There is a way to configure them via |
Can anyone validate if this is still an issue in Superset 3.x or newer? I assume so. CC @betodealmeida in case there are thoughts about how this is tackled. CC also @SpencerTorres in case you'd like to rebase your PR and see if we can get that across the finish line. |
@rusackas Updated to master and fixed merge conflicts, let me know if anything else needs to be done on that PR |
If I understand it correctly, if a reserved word
constructor
is used somewhere in returned data, there is a rendering error, both in charts and in the SQL lab. Quite a funny bug if so :)How to reproduce the bug
constructor
. It can be a select from a table or even a simple select of a static string:select 'constructor'
Or, alternatively, create a table containing
constructor
word in one of the fields, and build a chart from this table that actually shows theconstructor
word in group by, bar name, column name, etc.Expected results
The query in SQL Lab will not fail, and the chart will render.
Actual results
You got error
Object contains forbidden constructor property
Screenshots
Environment
Chrome 112.0.5615.138
2.1.0
- SQL Lab error reproduces in 1.5.3, but charts withconstructor
work in 1.5.3 and don't work in 2.1.03.8
N/A
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I have searched for similar issue, but found only this that can be related: #22778
The text was updated successfully, but these errors were encountered: