Skip to content

Cherry-pick #9892 to 6.x: Remove _meta/kibana.generated symlink#9917

Merged
kvch merged 1 commit intoelastic:6.xfrom
kvch:backport_9892_6.x
Jan 7, 2019
Merged

Cherry-pick #9892 to 6.x: Remove _meta/kibana.generated symlink#9917
kvch merged 1 commit intoelastic:6.xfrom
kvch:backport_9892_6.x

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Jan 7, 2019

Cherry-pick of PR #9892 to 6.x branch. Original message:

#9546 introduced a symlink from _meta/kibana.generated to build/kibana so Auditbeat remains backwards compatible with the other Beats (Auditbeat is already using the first as a location for all its Kibana objects, while the other Beats are still using the latter).

This introduced a bug, where objects would be included in the dashboard ZIP file with the wrong path (#9785).

One way of fixing this would have been to double down on symlinks and change just one line in addFileToZip. But with #9842 about to change all Beats to use the new build/kibana I thought it better to just remove the symlink capability altogether and instead if-else between the two possible locations based on whether they exist or not. #9842 will then change all of that - at least in master - once it's merged.

Fixes #9785.

Fixes a bug introduced with elastic#9546 where a symlink from `_meta/kibana.generated` to `build/kibana` would cause objects to be included in the dashboard ZIP file with the wrong path. This removes the symlink in favor of a conditional.

Fixes elastic#9785.
@kvch kvch force-pushed the backport_9892_6.x branch from 7e085c7 to 8553c59 Compare January 7, 2019 11:52
Copy link
Copy Markdown
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kvch
Copy link
Copy Markdown
Contributor Author

kvch commented Jan 7, 2019

Failing tests are unrelated.

@kvch kvch merged commit 9b438ef into elastic:6.x Jan 7, 2019
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.

2 participants