-
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
[SQLLab] Regression: "share query" is broken behind https-only proxy #3655
Comments
Interestingly, it may also happen, that simply nothing at all gets copied into the paste buffer. I haven't found a pattern, though. |
Tried to reproduce but couldn't. Maybe it's related to something in your application state? To confirm you can try to recreate in incognito mode. |
What I tried so far:
None of this had any effect. What else could I try for debugging? |
Just tried it on a different client PC and got the same result. I'd like to mention that the superset instance is running in an entirely fresh python 3.4 venv. I.e., the only part that has been migrated ( For this reason I'm particularly puzzled why you, Max, don't face the same issue... |
A little bit of debugging:
|
OK, it's not the DB's problem. It rather seems to be caused by our reverse-proxy configuration. SSH-ing to the machine and tunnelling port 8088 provided the full functionality. I'll try to get this issue tackled with our nice guys from the IT dept, but would like to keep it open just in case someone could give me a hint why we observe this behavior when being behind the reverse proxy... |
Our IT found the issue being caused by the fact that the @mistercrunch: In my understanding this really seems to be a bug, as http should be used, if the rest of superset is served via https. Or is there anything wrong in our configuration, where we fail to tell superset that only https links should be generated? |
@rumbin a patch from your IT department is very welcome :) |
@xrmx Well they just checked their logs, not the source code. They are not developers. Neither am I, but I can have a look, if anyone gave me a hint to where to start looking.... |
Our IT department got the issue sorted. The following Apache settings did the trick:
This ensures the following flags are set: X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server. |
@rumbin Please add it to the documentation |
reopening, until documantation task is done; BTW: Adding |
…ith ssl encryption; fixes apache#3655
…ith ssl encryption; fixes apache#3655 (apache#3976)
…ith ssl encryption; fixes apache#3655 (apache#3976)
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.20.4
Expected results
Selecting share query from a tab's context menu copies the link for this very query.
This worked in superset 0.15.4, generating a link of the syntax
http(s)://host/r/123
Actual results
Trying the same in 0.20.4 copies a link of the syntax
http(s)://host/superset/sqllab?id=5
.Accessing the link yields a message THE QUERY COULDN'T BE LOADED
The workaround of first saving the query and then copying the link in the Saved Queries overview table works, but this is probably not the best way of quickly sharing a query.
Steps to reproduce
Selecting share query from a tab's context menu and try to access the copied URL.
The text was updated successfully, but these errors were encountered: