Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Apr 14, 2025

We document support for snapshot repositories using ftp:// URLs but it
seems this functionality has not worked for about a decade because of
the security-manager restrictions added in v2.0.0. We did not notice
because it was not covered by any tests, and it seems no users noticed
until 2021 (#79685) either. We therefore infer that this feature is
almost entirely unused in practice.

The migration to the Entitlements framework has (inadvertently) brought
this feature back into a working state again, so this commit adds tests
to make sure we do not break it again in future.

Closes #79685

We document support for snapshot repositories using `ftp://` URLs but it
seems this functionality has not worked for many years because of
security-manager restrictions, although nobody noticed because it was
not covered by any tests. The migration to the Entitlements framework
means that this functionality now works again, so this commit adds tests
to make sure we do not break it again in future.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v9.1.0 labels Apr 14, 2025
@DaveCTurner DaveCTurner requested a review from ywangd April 14, 2025 08:13
@DaveCTurner DaveCTurner requested a review from a team as a code owner April 14, 2025 08:13
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Apr 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

Copy link
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit aa40147 into elastic:main Apr 15, 2025
17 checks passed
@DaveCTurner DaveCTurner deleted the 2025/04/14/ftp-repository-test-fixture branch April 15, 2025 11:57
afoucret pushed a commit to afoucret/elasticsearch that referenced this pull request Apr 16, 2025
We document support for snapshot repositories using `ftp://` URLs but it
seems this functionality has not worked for many years because of
security-manager restrictions, although nobody noticed because it was
not covered by any tests. The migration to the Entitlements framework
means that this functionality now works again, so this commit adds tests
to make sure we do not break it again in future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snaphsot repository Read Only URL via FTP not accepting FTP URL

3 participants