Skip to content

[8.15.5-2] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625)#228609

Closed
eokoneyo wants to merge 2 commits intoelastic:8.15.5-2from
eokoneyo:backport/8.15.5-2/pr-227625
Closed

[8.15.5-2] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625)#228609
eokoneyo wants to merge 2 commits intoelastic:8.15.5-2from
eokoneyo:backport/8.15.5-2/pr-227625

Conversation

@eokoneyo
Copy link
Contributor

Backport

This will backport the following commits from main to 8.15.5-2:

Questions ?

Please refer to the Backport tool documentation

","sha":"245c8fb86326d0ac25a9a6106e5fcfec09f4fab2","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:fix","backport:skip","Team:SharedUX","v9.2.0","v8.18.4","v9.0.4","v7.17.30","v8.17.9"],"number":227625,"url":"https://github.com//pull/227625","mergeCommit":{"message":"[Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625)\n\n## Summary\n\nCloses https://github.com//issues/191090\nCloses https://github.com//issues/227976\n\nOnly pass along url intended to be shortened, when validating that we\naren't shortening some URL external to Kibana\n\n","sha":"245c8fb86326d0ac25a9a6106e5fcfec09f4fab2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","labelRegex":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com//pull/227625","number":227625,"mergeCommit":{"message":"[Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625)\n\n## Summary\n\nCloses https://github.com//issues/191090\nCloses https://github.com//issues/227976\n\nOnly pass along url intended to be shortened, when validating that we\naren't shortening some URL external to Kibana\n\n","sha":"245c8fb86326d0ac25a9a6106e5fcfec09f4fab2"}},{"branch":"8.18","label":"v8.18.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com//pull/228008","number":228008,"state":"MERGED","mergeCommit":{"sha":"ef9a4568341c938074edf76d25cffb85c4588b5d","message":"[8.18] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625) (#228008)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.18`:\n- [[Share] Resolves bug on attempting to copy dashboard link from\nnon-default space\n(#227625)](https://github.com//pull/227625)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Elastic Machine "}},{"branch":"9.0","label":"v9.0.4","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com//pull/228007","number":228007,"state":"MERGED","mergeCommit":{"sha":"479a5830b8a7d46c306b05ff867532948ab1e920","message":"[9.0] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625) (#228007)\n\n# Backport\n\nThis will backport the following commits from `main` to `9.0`:\n- [[Share] Resolves bug on attempting to copy dashboard link from\nnon-default space\n(#227625)](https://github.com//pull/227625)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by: Elastic Machine \nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Timothy Sullivan "}},{"branch":"7.17","label":"v7.17.30","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com//pull/228033","number":228033,"state":"MERGED","mergeCommit":{"sha":"9c6a697df554a1eab311f1950d90077fff1a2470","message":"[7.17] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625) (#228033)\n\n# Backport\n\nThis will backport the following commits from `main` to `7.17`:\n- [[Share] Resolves bug on attempting to copy dashboard link from\nnon-default space\n(#227625)](https://github.com//pull/227625)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n"}},{"branch":"8.17","label":"v8.17.9","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com//pull/228012","number":228012,"state":"MERGED","mergeCommit":{"sha":"347be553410148ec3b65a9be89f49905987276ce","message":"[8.17] [Share] Resolves bug on attempting to copy dashboard link from non-default space (#227625) (#228012)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.17`:\n- [[Share] Resolves bug on attempting to copy dashboard link from\nnon-default space\n(#227625)](https://github.com//pull/227625)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by: Elastic Machine "}},{"url":"https://github.com//pull/228014","number":228014,"branch":"8.15","state":"OPEN"},{"url":"https://github.com//pull/228605","number":228605,"branch":"8.15.5-1","state":"OPEN"}]}] BACKPORT-->
…fault space (elastic#227625)

## Summary

Closes elastic#191090
Closes elastic#227976

Only pass along url intended to be shortened, when validating that we
aren't shortening some URL external to Kibana

<!--
### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

-->

(cherry picked from commit 245c8fb)
@eokoneyo eokoneyo added the backport This PR is a backport of another PR label Jul 18, 2025
@eokoneyo eokoneyo enabled auto-merge (squash) July 18, 2025 12:52
@mistic mistic closed this Jul 18, 2025
auto-merge was automatically disabled July 18, 2025 16:03

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

2 participants