-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana URL field in index-pattern with relative URL stores the base URL at creation time in the saved object #63924
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
There is a similar problem when importing saved objects: all the URLs will use the name of the old instance. |
Briefly looked at this; instantiating a new field formats service will use the current value from How we want to address this will need further discussion -- I'm actually not clear why we need to store the |
* Updating dashboards and documentation pending Query_url fix elastic/kibana#63924 Fixing formatting Typo Fix
Any way to prioritize a fix for this? We have 12 clusters and Kibana objects have to be kept in sync across each of them. This bug is a major pain point right now. |
Note: setting origin value in the fieldFormatMap for the index_pattern to empty string seems to use the current origin. This is useful if the origin could be more then one possible url. For example if going through a LB where there is more then one possible origin. |
This one bit me again today. User exports dashboard from one environment, imports it to all others and breaks all URL formatted fields for everyone. Multiple production support issues ensue. This really is unacceptable and needs higher prioritization. It cannot be the way it was intended to function as it fundamentally breaks Kibana import / export. |
I just got to this issue after digging around because a partner building dashboards to distribute hit this issue. |
I'm making this a priority to fix for 7.13.0 and 7.12.1 releases. I'm not sure if there will be a 7.11.3 but if there is it'll be released there too. |
So this bug fix didn't make it into v7.12.1? That's really disappointing since this feature is just broken. |
Did some digging, looks like this we stopped saving It looks like we started saving The caveat here, that all URL field-formatters were saved between 7.6.0 up to 7.10.x will include While debugging this noticed that relative URLs don't resolve well when Kibana has a non-empty based up on when using a non-default space. I checked that the same buggy behavior was in 6.x - long before this particular issue with |
Kibana version: 7.6.0
Describe the bug:
Relative URLs keep
parsedUrl
/origin
generated at the time of the creation of theindex-pattern
.Steps to reproduce:
On a Kibana instance located at
https://localhost:5601
:index-pattern
settingstext
field to be formatted asUrl
and specify a relative URL (e.g./some/file.png
).kibana*
indicesOn another cluster (e.g. another environment), with Kibana instance located at
https://dev.comp.com:5601
(server.host: dev.comp.com
inkibana.yml
):.kibana*
indiceshttps://localhost:5601
Expected behavior:
The "base" URL should not be stored in the
index-pattern
.Provide logs and/or server output (if relevant):
Any additional context:
From our Discuss forum https://discuss.elastic.co/t/kibana-url-template-with-relative-path/228418/5
Workaround:
One of the following applies:
index-pattern
object in the.kibana
indexindex-pattern
, switch to the default type, save, then add theUrl
type backThe text was updated successfully, but these errors were encountered: