Repository navigation
fix(sciencemesh): use a gateway selector in the shares handler - #887
Open
Supportlik wants to merge 1 commit into
Open
Supportlik wants to merge 1 commit into
Supportlik wants to merge 1 commit into
Conversation
|
| Status | Scan Engine | Total (0) | ||||
|---|---|---|---|---|---|---|
| Open Source Security | 0 | 0 | 0 | 0 | See details | |
| Licenses | 0 | 0 | 0 | 0 | See details | |
| ✅ | Code Security | 0 | 0 | 0 | 0 | 0 issues |
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.
The create-share handler resolved its gateway client once at startup and kept it, so after the gateway moved to another address it kept calling the old one. Keep the gateway selector and ask it for a client per request, like the other sciencemesh handlers. New test TestCreateShareFollowsGatewayToNewAddress (setup, run, check): it moves the gateway to another address in a private in-memory registry after the handler was built and expects create-share to reach the gateway at the new address. The test uses the in-memory registry plugin, which go mod tidy moves from an indirect to a direct dependency. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Michael Bortlik <michael@bortlik.io>
Supportlik
force-pushed
the
bugfix/sciencemesh-gateway-owncloud-reva
branch
from
December 3, 2026 20:19
f7b8661 to
5e23a72
Compare
This was referenced Dec 3, 2026
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.
Fixes #886
The
create-sharehandler of the sciencemesh service resolved its gateway client once at startup and kept it, so after the gateway moved to another address it kept calling the old one. It now keeps the gateway selector and asks it for a client on every request, like the other sciencemesh handlers.TestCreateShareFollowsGatewayToNewAddressGOMAXPROCS=1: "expected 404 from the gateway at the new address, got 500"go test -race -count=10The test uses a private in-memory registry; the plugin moves from an indirect to a direct dependency in
go.mod(go mod tidy). gofmt also moved one import inshare.go.Side effect, the same as in the other sciencemesh handlers:
initno longer fails when the gateway is missing from the registry at startup; the error shows up per request as a 500 instead. This PR only aligns this one handler; other places that keep a gateway client are not part of it.Backports: #888 (stable-9.0), #889 (stable-8.0).
AI assistance: Claude Code (claude-opus-5-5) helped to find this place, to write the change, the test and this description. I reviewed all of it.