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

Creating scripted field briefly shows incorrect error message #5826

Closed
LeeDr opened this issue Jan 6, 2016 · 2 comments
Closed

Creating scripted field briefly shows incorrect error message #5826

LeeDr opened this issue Jan 6, 2016 · 2 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Scripted Fields Scripted fields features good first issue low hanging fruit

Comments

@LeeDr
Copy link

LeeDr commented Jan 6, 2016

Found on 4.4.0-snapshot with Elasticsearch 2.2 with Shield plugins.
Following test steps for Scripted Fields in https://github.com/elastic/kibana-qa/blob/master/settings.md when you finish creating the scripted field an error message shows up very briefly (too fast to read in my case). I saw it using IE and Chrome so I don't think it has anything to do with the browser.

The message is from kibana/src/ui/public/field_editor/field_editor.html;
Mapping Conflict:
You already have a field with the name {{ editor.field.name }}. Naming your scripted
field with the same name means you won't be able to query both fields at the same time.

But this message is incorrect. It doesn't seem to matter what name you give the scripted field.
frame 14 150ms

The screen quickly switches back to the list of scripted fields and does show the one you just created. There's no way to go "back" to see the error message.
The new scripted field does work. So this message is misleading but harmless.

Not sure if it's in the previous 4.3.1 release, or master.

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience P2 and removed P2 labels Jan 6, 2016
@rashidkpc
Copy link
Contributor

This happens because you briefly do have a conflict. It shows up right after you save, but before you get redirected away from the page. So for a moment the index pattern has the field "bytes inverse", because you just created it, and the input is also called "bytes inverse". The form needs to know not to show that message during saving.

@LeeDr
Copy link
Author

LeeDr commented Apr 11, 2016

I just hit this on IE with Kibana 5.0 alpha1 and the message didn't go away.

2016-04-11 15_39_50-new scripted field - logstash-_ - kibana - internet explorer

It seems that the message staying, and scripted field NOT being created, were both do to a session timeout. I was stuck on the scripted fields page until I refreshed by browser, and re-logged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Scripted Fields Scripted fields features good first issue low hanging fruit
Projects
None yet
Development

No branches or pull requests

5 participants