From 378af7f7cb4e0bece8164b93b38ed734d07f34b7 Mon Sep 17 00:00:00 2001 From: Mohamad Reza Chegini Date: Wed, 17 Jun 2026 22:21:04 +0330 Subject: [PATCH 1/2] docs: remove reference to merged upstream json-patch PR in jsonx The comment referenced evanphx/json-patch#158, which has since been merged. ORY's closed-reference notifier flags merged/closed PRs, so the link was reported as a stale reference (#1254). Replace it with a description of the actual behavior: only "add", "remove", and "replace" operations are accepted; "move", "copy", and "test" are intentionally rejected. This is durable and no longer points at a closed reference. Closes #1254 Signed-off-by: Mohamad Reza Chegini --- oryx/jsonx/patch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oryx/jsonx/patch.go b/oryx/jsonx/patch.go index 6fd185c5b0..6166359dca 100644 --- a/oryx/jsonx/patch.go +++ b/oryx/jsonx/patch.go @@ -60,7 +60,8 @@ func ApplyJSONPatch[T any](p json.RawMessage, object T, denyPaths ...string) (re } for _, op := range patch { - // Some operations are buggy, see https://github.com/evanphx/json-patch/pull/158 + // Only "add", "remove", and "replace" operations are supported; "move", + // "copy", and "test" are intentionally rejected. if isUnsupported(op) { return result, errors.Errorf("unsupported operation: %s", op.Kind()) } From ca75ce22a163b283a0e75785d03d697e249d9b69 Mon Sep 17 00:00:00 2001 From: dex Date: Fri, 19 Jun 2026 13:54:48 +0330 Subject: [PATCH 2/2] fix(docker): copy rpctest and oryx go.sum before go mod download The replace directives in go.mod point to ./middleware/rpctest and ./oryx. go mod download needs the go.mod and go.sum for each replaced module to resolve dependencies, but only oryx/go.mod was copied and oryx/go.sum was being written to the wrong path (proto/go.sum). Add the missing middleware/rpctest/go.{mod,sum} COPY steps and fix the oryx/go.sum destination so the scanner Docker build succeeds. --- .docker/Dockerfile-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.docker/Dockerfile-build b/.docker/Dockerfile-build index 88fb323a01..9878fdd537 100644 --- a/.docker/Dockerfile-build +++ b/.docker/Dockerfile-build @@ -8,7 +8,9 @@ RUN apt-get update && apt-get upgrade -y COPY go.mod go.mod COPY go.sum go.sum COPY oryx/go.mod oryx/go.mod -COPY oryx/go.sum proto/go.sum +COPY oryx/go.sum oryx/go.sum +COPY middleware/rpctest/go.mod middleware/rpctest/go.mod +COPY middleware/rpctest/go.sum middleware/rpctest/go.sum ENV CGO_ENABLED=0