Repository navigation
fix(ocm): fix wildcard providers and invite error handling - #1027
Merged
Merged
Conversation
Allow sharing with more than one instance matched by a wildcard domain. Do not overwrite the cached provider with the actual domain, return a copy instead, and include the cause in the GetInfoByDomain error. Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Users must not be able to invite themselves to their own federated connection. Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Pass the status message of an invalid ForwardInvite request to the client instead of always claiming the token expired, and do not leak internal error messages for unexpected errors. Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Resolving a wildcard provider used to overwrite the configured domain with the first resolved one, so a lookup for another instance matching the same wildcard returned NotFound. Look up two domains in turn to make sure every lookup resolves the wildcard on its own. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
dragonchaser
approved these changes
Nov 18, 2026
fschade
approved these changes
Nov 18, 2026
pbleser-oc
added a commit
to pbleser-oc/opencloud
that referenced
this pull request
Nov 19, 2026
opencloud-eu/reva#895 (the revision cleanup) was merged into reva main with 5a237e94c, so the temporary replace of its fork is no longer needed. Along with it comes the other reva change merged since 37496dc6a, opencloud-eu/reva#1027 (OCM invite and provider fixes): an invalid invitation token is now rejected with the actual reason, so the acceptance test of an expired token expects "token not valid" instead of "token has expired", as in opencloud-eu#4065. Assisted-by: Claude Code:claude-opus-5-5
5 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three small fixes to OCM invite and provider handling:
Review commit by commit: the first three carry the original fixes, the last adds a test for the wildcard lookup that fails without the first commit.
AI assistance: Claude Code (claude-opus-5-5) cherry-picked the fixes, wrote the test and this description.