Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit b1f8320

Browse files
sumauppayaminikb
authored andcommitted
Fixes #21851 : Fixed Thread pools edit and delete operations (#21931)
1 parent 2a530a5 commit b1f8320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appserver/admingui/common/src/main/java/org/glassfish/admingui/common/handlers/RestApiHandlers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public static void deleteConfigCascade(HandlerContext handlerCtx) {
329329

330330
for ( Map oneRow : selectedRows) {
331331
try{
332-
String endpoint = prefix + "/" + oneRow.get(id);
332+
String endpoint = prefix + "/" + URLEncoder.encode((String) oneRow.get(id), "UTF-8");
333333
RestUtil.restRequest(endpoint, payload, "DELETE",null, false);
334334
}catch (Exception ex){
335335
GuiUtil.getLogger().severe(

appserver/admingui/web/src/main/resources/configuration/threadPoolEdit.jsf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
urlencode(value="#{pageSession.configName}" encoding="UTF-8" result="#{pageSession.encodedConfigName}");
6060
setPageSessionAttribute(key="selfPage" value="#{request.contextPath}/web/configuration/threadPoolEdit.jsf?name=#{pageSession.encodedName}&cancelTo=#{pageSession.cancelTo}&configName=#{pageSession.encodedConfigName}");
6161
setPageSessionAttribute(key="childType" value="thread-pool");
62-
setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/thread-pools");
63-
setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}/#{pageSession.Name}");
62+
setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.encodedConfigName}/thread-pools");
63+
setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}/#{pageSession.encodedName}");
6464
setPageSessionAttribute(key="rest-api" value="true");
6565
gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}.json", valueMap="#{pageSession.valueMap}");
6666
//set the following for including buttons.inc

0 commit comments

Comments
 (0)