-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 7.0.0 URL field formatter doesn't render relative hyperlinks properly #35235
Comments
Pinging @elastic/kibana-app-arch |
Hi @lukeelmers , Thanks for adding the labels. I see that elasticmachine pinged the kibana-app-arch team, but if I click on that link (https://github.com/orgs/elastic/teams/kibana-app-arch), I get Please let me know if I can provide any more information to get this issue resolved. Thanks! |
Thanks @dougburks! Don’t worry, the ping went to the right team :) I’m guessing the team page is private to the elastic org maybe? We are going to take a look at and will follow up with any questions for you. |
Thanks for confirming @lukeelmers ! After more testing, it seems like this issue happens on fields of type I've also been trying to pinpoint where in the source this URL formatting happens, but I'm not familiar with the Kibana codebase. It looks like in 6.5.4, the relevant file for URL formatting is Am I on the right track? |
What I have found is that doesn't matter if it is an IP or a string. The issue occurs with both. From my testing it occurs when a relative path URL is used. For example the following relative URL worked in all 6.x versions through 6.6.2 (I didn't test later versions), but has problems with 7.x versions...
However when the full URL including domain is used, it works.
Unfortunately adding the full URL as a workaround doesn't really work. Some users connect with only the IP address of the Kibana server, and other the full URL, which would be problematic. Also this would prevent the index pattern from being exported from one environment and imported into another (the server/domain name portion of the URL would be wrong in other environments). What I also noticed is that not everything is affected. The field formatter configuration page, and the table visualization have the problem. However, viewing the field in Explorer (or a saved search) does not. Table Visualization:Saved search: |
Just tested Kibana 7.2.0 and confirmed this is still an issue. Is there any other information I can provide to help with getting this issue resolved? |
I would like to upvote the issue. |
Just tested Kibana 7.3.1 and confirmed this is still an issue. Is there any other information I can provide to help with getting this issue resolved? |
Looks like that our problem is not important enough to get fixed :-( |
Just tested Kibana 7.3.2 and confirmed this is still an issue. Is there any other information I can provide to help with getting this issue resolved? |
@bicaluv @dougburks Sorry for been a long time. The bug is being reviewed. |
@sulemanof are we able to close this with #46332 and #47464? |
sorry, it looks like @Avinar-24 created the original PR. Same question 😄 |
@alexfrancoeur Yes, it will be delivered with 7.4.x |
Closed via #46332. |
Not fixed in 7.4.1 in this PR: #46332 |
…inks properly Closes: elastic#35235 (fix for 7.5)
This is still broken for me in 7.5.2. I've put a better fix in place directly in the UrlFormat class that seems to fix this, however I also see a similar fix already done in master. How soon will we get the next version with the fix in master? Shall I submit a PR in the meantime if there's going to be a 7.5.3? |
@mike-treadway thanks for letting us know. The user who opened this issue actually told me today that this PR actually helped fix the issue.
To avoid assumptions, can you please elaborate more on what do you mean by still broken |
Sure. When we configure a relative URL for a field in an index, the field just renders as text (the relative url is the text) on our dashboard. If I change the field to an absolute URL, it renders as a link with the original field value as the text of the link (which is expected). The problem is that in the context of getting the formatter, it's not able to send the If you'd like, I can commit the change in my fork if you want to review. I just attempted to test what's in master and it looks like you guys are gearing up for v8. |
Interesting. I only tested 7.5.2 for a few minutes this morning but it seemed to be working correctly for the few test cases I looked at. Perhaps there is some other corner case somewhere that I didn't test though. I'll try to re-test as time allows. |
It only seems to work when the mapping is for a terms field (i.e. the mapping id was In my situation, the mapping was of type where the field formatter never gets a |
This issue was fixed in #53265, which was merged into The one-off fix released in The long-term fix which is on @mike-treadway Just to triple-check, would you be able to confirm that everything is working as expected for you in the |
Kibana version:
Kibana 7.0.0 through Kibana 7.5.0
Elasticsearch version:
Elasticsearch 7.0.0 through Elasticsearch 7.5.0
Server OS version:
Ubuntu 16.04
Browser version:
Chromium 73
Browser OS version:
Ubuntu 16.04
Original install method (e.g. download page, yum, from source, etc.):
Docker
Describe the bug:
In Kibana 6.5.4, I can set a URL field formatter on an IP field using a relative hyperlink (no https://servername at the beginning) and it will render the hyperlink properly.
In Kibana 7.0.0 and higher, the same relative hyperlink on an IP field does not render properly. Further testing reveals that relative hyperlinks on string fields do render properly.
Steps to reproduce:
/RelativeHyperlink
Expected behavior:
Kibana 7.0.0 and higher should render the hyperlink properly as previous versions of Kibana did.
Screenshots (if relevant):
Here's a screenshot of Kibana 6.5.4 rendering relative hyperlinks properly:
Here's a screenshot of Kibana 7.0.0 rendering those same relative hyperlinks incorrectly:
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: