From 79efcb38773edafea469888e8c6a5213fc970202 Mon Sep 17 00:00:00 2001 From: Andrew Rowley Date: Thu, 16 Jan 2025 18:24:08 +0000 Subject: [PATCH] Surely updating a user should describe user? --- .../uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java b/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java index 4bdc60c89c..da02acc516 100644 --- a/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java +++ b/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/admin/AdminImpl.java @@ -210,10 +210,10 @@ public UserRecord updateUser(int id, UserRecord providedUser, UriInfo ui, log.warn("CALLED updateUser({})", providedUser.getUserName()); var adminUser = security.getUserPrincipal().getName(); providedUser.setUserId(null); - var ub = ui.getBaseUriBuilder().path(DESCRIBE_GROUP); + var ub = ui.getBaseUriBuilder().path(DESCRIBE_USER); return userManager .updateUser(id, providedUser, adminUser, - m -> ub.build(m.getGroupId())) + m -> ub.build(m.getUserId())) .orElseThrow(AdminImpl::noUser).sanitise(); }