This is an automated email from the ASF dual-hosted git repository. imbajin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hugegraph-toolchain.git
commit 451abb1e489049b723de1c2be80c14aeb16fe2e0 Author: dark <[email protected]> AuthorDate: Sun Aug 30 14:45:05 2026 +0800 fix(hubble): set standalone target URL - set an explicit empty URL for HugeGraph 1.7 target creation - preserve the shared standalone read-write permission model - cover target URL compatibility in the service test --- .../hugegraph/service/auth/StandaloneAccountPermissionService.java | 1 + .../service/auth/StandaloneAccountPermissionServiceTest.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionService.java b/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionService.java index e665885be..6a5a37605 100644 --- a/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionService.java +++ b/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionService.java @@ -130,6 +130,7 @@ public class StandaloneAccountPermissionService { Target target = new Target(); target.name(ROLE_NAME); target.graph(ALL_GRAPHS); + target.url(""); Map<String, Object> resource = new HashMap<>(); resource.put("type", HugeResourceType.ALL.toString()); resource.put("label", "*"); diff --git a/hugegraph-hubble/hubble-be/src/test/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionServiceTest.java b/hugegraph-hubble/hubble-be/src/test/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionServiceTest.java index f24659abf..7e622a28e 100644 --- a/hugegraph-hubble/hubble-be/src/test/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionServiceTest.java +++ b/hugegraph-hubble/hubble-be/src/test/java/org/apache/hugegraph/service/auth/StandaloneAccountPermissionServiceTest.java @@ -116,6 +116,10 @@ public class StandaloneAccountPermissionServiceTest { Mockito.verify(auth, Mockito.times(4)) .deleteAccess(Mockito.any()); + ArgumentCaptor<Target> createdTarget = + ArgumentCaptor.forClass(Target.class); + Mockito.verify(auth).createTarget(createdTarget.capture()); + Assert.assertEquals("", createdTarget.getValue().url()); Mockito.verify(auth).deleteTarget("target-id"); Mockito.verify(auth).deleteGroup("group-id"); }
