Skip to content
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

Allow to temporarily ignore invalid federated shares in tightly federated setup #40503

Merged
merged 4 commits into from Jan 18, 2023

Conversation

mrow4a
Copy link
Contributor

@mrow4a mrow4a commented Nov 21, 2022

fixes https://github.com/owncloud/enterprise/issues/5427

Currently, if federated share is invalid or api endpoint returns not found, availability check would validate whether this is a problem with a server and if checks complete that given share is removed. However, in some cases these checks might not be enough (e.g. complex migrations in tightly federated setups), and in that case invalidation behaviour can be disabled using below app setting:

occ config:app:set files_sharing enable_cleanup_invalid_external_shares --value no

Then instead of removal below warning is displayed

Screenshot 2022-12-16 at 11 49 16

This PR also improves handling and logging to better debug the situation

@mrow4a mrow4a self-assigned this Nov 21, 2022
@pako81
Copy link
Contributor

pako81 commented Dec 7, 2022

@mrow4a should we move this forward?

@mrow4a mrow4a changed the title WIP: improve handling for tightly federated setups Allow to temporarily ignore invalid federated shares in tightly federated setup Dec 16, 2022
@mrow4a mrow4a requested a review from pako81 December 16, 2022 11:46
@mrow4a mrow4a marked this pull request as ready for review December 16, 2022 11:54
@pako81
Copy link
Contributor

pako81 commented Dec 20, 2022

Apart from a small remark about comments, LGTM 👍

@mrow4a
Copy link
Contributor Author

mrow4a commented Jan 1, 2023

@pako81 I cannot merge this due to #40457 . Needs force-merge

@sonarcloud
Copy link

sonarcloud bot commented Jan 15, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 13 Code Smells

2.6% 2.6% Coverage
0.0% 0.0% Duplication

@mrow4a
Copy link
Contributor Author

mrow4a commented Jan 15, 2023

@pako81 sonar coverage is hard to do with this class, would need some refactor. would need force-merge still

@DeepDiver1975 DeepDiver1975 merged commit fcdeb44 into master Jan 18, 2023
@delete-merged-branch delete-merged-branch bot deleted the e5427-feature/fed-setup branch January 18, 2023 09:06
@mmattel
Copy link
Contributor

mmattel commented Jan 19, 2023

occ config:app:set files_sharing enable_cleanup_invalid_external_shares --value no

Needs documentation in our admin docs, pls file an issue in the docs-server repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants