IE 11 support
The urls that are created to fetch the json data seem to be formed wrong for IE in both the Dashboard and Slice views.
For example:

The IE url vs Chrome url . Looks like it's missing caravel/explore/table/3 as a prefix.
This was discussed in #1323.
I haven't tried earlier versions of IE, I shudder to think anyone still needing to support them. The new Edge browser in Windows 10 works great already.
Does IE have weird issues with common URLs?
@mistercrunch what do you mean by common URLs? I can navigate through all the pages within caravel just fine, it's just the visualizations that aren't fetching correctly.
Did anyone else make any progress with this issue? From what I can tell, it's still happening...
Steps to re-create:
- I pulled the latest version of Superset from GH this AM. Commit: 2133056c04d20807ea0c503d0fed235ee20e94bb
- Install/build node dependencies.
- Started superset.
When tested via Chrome, everything seems to work just fine. However, when tested from IE11 (from the same machine used to test via Chrome) I see the same error from the screenshot above.
Note: Superset itself is not installed on Windows - I use my Windows machine only to test with different browsers. Superset is installed/running from OSX.
I did a little bit of troubleshooting - there's definitely a difference in the URLs being requested between Chrome and IE.
IE:
/superset/explore/druid/86/superset/explore_json/druid/86/?viz_type=table&granularity=one+day&druid_time_origin=&since=7+days+ago&until=now&table_timestamp_format=smart_date&row_limit=50000&include_search=false&flt_col_0=&flt_op_0=in&flt_eq_0=&having_col_0=&having_op_0=%3D%3D&having_eq_0=&slice_id=&slice_name=&collapsed_fieldsets=&action=&userid=2&goto_dash=false&datasource_name=Test.DBQL_Analysis_V3&datasource_id=86&datasource_type=druid&previous_viz_type=table&rdo_save=saveas&new_slice_name=&add_to_dash=false&save_to_dashboard_id=&new_dashboard_name=&json=true&force=false
Chrome:
/superset/explore_json/druid/86/?viz_type=table&granularity=one+day&druid_time_origin=&since=7+days+ago&until=now&table_timestamp_format=smart_date&row_limit=50000&include_search=false&flt_col_0=&flt_op_0=in&flt_eq_0=&having_col_0=&having_op_0=%3D%3D&having_eq_0=&slice_id=&slice_name=&collapsed_fieldsets=&action=&userid=2&goto_dash=false&datasource_name=Test.DBQL_Analysis_V3&datasource_id=86&datasource_type=druid&previous_viz_type=table&rdo_save=saveas&new_slice_name=&add_to_dash=false&save_to_dashboard_id=&new_dashboard_name=&json=true&force=false
If it isn't obvious from the above extremely-long URL, the only difference in the above URLs is that, in IE, the URL begins with /superset/explore/druid/86/; otherwise the 2 URLs are identical.
Any idea what could be causing this issue? Is there any other logs I can provide that might help to reproduce and/or diagnose?
Does anyone have any thoughts on this one? Why would IE write a different URL than Chrome/Safari?
@woel0007 it doesn't make much sense to me why IE would behave differently, I haven't had a chance to look closer at the code yet though.
I do find it odd that @mistercrunch added the can't reproduce label, I think it is easily reproducible
It's only easy to reproduce if you have access to a windows computer
Yes true, having windows would be necessary. I've used https://github.com/xdissent/ievms in the past with success.
Yep, I also have the issue with v0.14.0
is there any breakthrogh for this issue?
slice.jsonEndpoint() missing the '/' when you use ie 11 browser, so you can rewrite the jsonEndpotint
superset.js
jsonEndpoint() { const parser = document.createElement('a'); parser.href = data.json_endpoint; let endpoint = parser.pathname + this.querystring(); endpoint += '&json=true'; endpoint += '&force=' + this.force; //for ie11 if (endpoint.substring(0, 1) != '/') { endpoint = '/' + endpoint; } return endpoint; },
@wbsljh care to open a pull request please?
@xrmx we recently met the same issue and had fixed it in our local repo. I've created PR #1821 for it. Please have a review at it, thanks.
The issue is caused by a long standing IE issue. Superset's Slice.jsonEndpoint() method relies on DOM element's pathname() to build JSON API URL for slices, and in IE <= 11 the return value of out-of-document element lacks a leading '/'.
@rlei thanks!
PR is merged, closing.