From 235f768cbb394bfbf12538b62fef12976ed7e65d Mon Sep 17 00:00:00 2001 From: Karl Lum Date: Wed, 8 Oct 2025 09:39:04 -0700 Subject: [PATCH 1/2] disable all save buttons on form submit (#7095) --- .../src/org/labkey/issue/view/updateView.jsp | 198 +++++++++--------- 1 file changed, 104 insertions(+), 94 deletions(-) diff --git a/issues/src/org/labkey/issue/view/updateView.jsp b/issues/src/org/labkey/issue/view/updateView.jsp index 7e5da595cc4..c71aea990a1 100644 --- a/issues/src/org/labkey/issue/view/updateView.jsp +++ b/issues/src/org/labkey/issue/view/updateView.jsp @@ -1,19 +1,19 @@ <% -/* - * Copyright (c) 2015-2019 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ + /* + * Copyright (c) 2015-2019 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ %> <%@ page import="org.labkey.api.data.ColumnInfo"%> <%@ page import="org.labkey.api.data.Container"%> @@ -155,101 +155,111 @@ %> @@ -268,7 +278,7 @@ %>
- <%= button("Save").submit(true).name(bean.getAction().name()).disableOnClick(true) %> + <%= button("Save").submit(true).name(bean.getAction().name()) %> <%= button("Cancel").href(cancelURL).onClick("LABKEY.setSubmit(true);")%>
@@ -408,7 +418,7 @@
">Attach a file
- <%= button("Save").submit(true).name(String.valueOf(bean.getAction())).disableOnClick(true) %> + <%= button("Save").submit(true).name(String.valueOf(bean.getAction())) %> <%= button("Cancel").href(cancelURL).onClick("LABKEY.setSubmit(true);")%>
<% final Collection comments = issue.getCommentObjects(); From 82a66b703bd41ec33cc145a1165a7cc3f1d8558e Mon Sep 17 00:00:00 2001 From: Nick Kerr Date: Tue, 14 Oct 2025 15:31:16 -0700 Subject: [PATCH 2/2] Issue 54094: escape form field names ending with "\" (#7121) --- api/src/org/labkey/api/query/QueryUpdateForm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/org/labkey/api/query/QueryUpdateForm.java b/api/src/org/labkey/api/query/QueryUpdateForm.java index 5a3db0daf78..f3ad03b2360 100644 --- a/api/src/org/labkey/api/query/QueryUpdateForm.java +++ b/api/src/org/labkey/api/query/QueryUpdateForm.java @@ -97,8 +97,9 @@ else if (c == BACKSLASH) sb.append(c); } + // Issue 54094: Ensure it works when backslash is the last character if (escaping) - throw new IllegalArgumentException("Invalid escape at end of encoded name: " + columnName); + sb.append(BACKSLASH); return getTable().getColumn(sb.toString()); }