Skip to content
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

Gracefully handle preflight errors #5908

Merged
merged 1 commit into from Jan 15, 2016
Merged

Conversation

epixa
Copy link
Contributor

@epixa epixa commented Jan 14, 2016

In the event of an error response from the preflight request, we now use
the dropdown fatal error handler rather than the fullscreen unexpected
error handler. This more closely emulates the behavior of an error on
the actual search request.

The easiest way to test this is probably with shield. Remove the field_stats
permission from the kibana4 role and access the discover page of a
time-based index:

On master, you'll get a full page fatal error.

On this branch, you'll get a fatal error notice across the top of the page.

Fixes #5619

In the event of an error response from the preflight request, we now use
the dropdown fatal error handler rather than the fullscreen unexpected
error handler. This more closely emulates the behavior of an error on
the actual search request.
@LeeDr
Copy link
Contributor

LeeDr commented Jan 14, 2016

It didn't work for me (as shown on zoom). I tried on Firefox and Chrome on my Windows 10.

@LeeDr LeeDr assigned epixa and unassigned LeeDr Jan 14, 2016
@epixa epixa assigned BigFunger and unassigned epixa Jan 15, 2016
@epixa
Copy link
Contributor Author

epixa commented Jan 15, 2016

@LeeDr I cannot reproduce the issue you're having. I've tried accessing this from windows 7 on IE11 and chrome as well as from chrome/firefox/safari on os x, and I get intended behavior every time.

I'm worried it may be an issue on windows 10, so I've asked @BigFunger to try to reproduce it.

@epixa epixa assigned jbudz and unassigned BigFunger Jan 15, 2016
@jbudz
Copy link
Member

jbudz commented Jan 15, 2016

This worked for me on win10 with Firefox, IE, Chrome. Following the steps throws an index_not_found exception, full page on master, notification on pr. I was running in dev mode, so maybe this isn't taking into account any caching.

@jbudz jbudz assigned epixa and unassigned jbudz Jan 15, 2016
@epixa
Copy link
Contributor Author

epixa commented Jan 15, 2016

@jbudz Since you've verified it, do you have any time to do a code review?

@jbudz
Copy link
Member

jbudz commented Jan 15, 2016

Yep, this LGTM

epixa added a commit that referenced this pull request Jan 15, 2016
Gracefully handle preflight errors
@epixa epixa merged commit 30cf8bc into elastic:master Jan 15, 2016
@epixa epixa deleted the 5619-preflight-errors branch January 15, 2016 19:52
@elasticsearch-bot
Copy link

Court Ewing merged this into the following branches!

Branch Commits
4.x 5a6fe61

elasticsearch-bot pushed a commit that referenced this pull request Jan 15, 2016
In the event of an error response from the preflight request, we now use
the dropdown fatal error handler rather than the fullscreen unexpected
error handler. This more closely emulates the behavior of an error on
the actual search request.

Fixes #5908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal error caused by preflight request
5 participants