From 542333a0dd51cad77303668aed29f35aaf6116e3 Mon Sep 17 00:00:00 2001 From: k-tamura Date: Fri, 14 Jun 2019 22:01:38 +0900 Subject: [PATCH] KEYCLOAK-10660 Fix internal server error when re-logging in from my resources page --- .../services/resources/account/AccountFormService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java index 8b20d1d1aa..a631eb1103 100755 --- a/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java +++ b/services/src/main/java/org/keycloak/services/resources/account/AccountFormService.java @@ -704,13 +704,13 @@ public class AccountFormService extends AbstractSecuredLocalService { @Path("resource") @GET public Response resourcesPage(@QueryParam("resource_id") String resourceId) { - return forwardToPage("resources", AccountPages.RESOURCES); + return forwardToPage("resource", AccountPages.RESOURCES); } @Path("resource/{resource_id}") @GET public Response resourceDetailPage(@PathParam("resource_id") String resourceId) { - return forwardToPage("resource-detail", AccountPages.RESOURCE_DETAIL); + return forwardToPage("resource", AccountPages.RESOURCE_DETAIL); } @Path("resource/{resource_id}/grant") @@ -815,10 +815,10 @@ public class AccountFormService extends AbstractSecuredLocalService { } if (isRevoke || isRevokePolicy || isRevokePolicyAll) { - return forwardToPage("resource-detail", AccountPages.RESOURCE_DETAIL); + return forwardToPage("resource", AccountPages.RESOURCE_DETAIL); } - return forwardToPage("resources", AccountPages.RESOURCES); + return forwardToPage("resource", AccountPages.RESOURCES); } @Path("resource/{resource_id}/share") @@ -894,7 +894,7 @@ public class AccountFormService extends AbstractSecuredLocalService { } } - return forwardToPage("resource-detail", AccountPages.RESOURCE_DETAIL); + return forwardToPage("resource", AccountPages.RESOURCE_DETAIL); } @Path("resource")