This is an automated email from the ASF dual-hosted git repository. snoopdave pushed a commit to branch fix-jquery-ui-webjar-path in repository https://gitbox.apache.org/repos/asf/roller.git
commit 0bda1e742515b8d7bebd2ae28137ce6076550230 Author: David M. Johnson <[email protected]> AuthorDate: Wed Sep 9 17:07:47 2026 -0400 Fix jQuery UI 404 on authoring pages by dropping the webjar +1 from the URL The #180 dependency bump moved the jquery-ui webjar to 1.14.2+1, and that literal version -- plus suffix and all -- was written into the resource URLs in head.jsp. The webjar serves its resources under the plus-free path (META-INF/resources/webjars/jquery-ui/1.14.2/), so /webjars/jquery-ui/1.14.2+1/ 404s, breaking the entry editor's date picker and tag autocomplete and dropping the jQuery UI styling. Point the URLs at 1.14.2; the pom coordinate stays 1.14.2+1 (that is the actual artifact). Regression from 6.1.5 (jquery-ui 1.14.1). Reported by Matt Raible on the 6.1.6 RC2 vote thread. Claude-Session: https://claude.ai/code/session_015X69HHQ5XnjRkJP8ymzwFf --- app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp b/app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp index 14872d2f2..42ad1d1d8 100644 --- a/app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp +++ b/app/src/main/webapp/WEB-INF/jsps/tiles/head.jsp @@ -7,8 +7,11 @@ You can override it with your own file via WEB-INF/tiles-def.xml <script src="<s:url value='/webjars/jquery/3.7.1/jquery.min.js' />"></script> -<script src="<s:url value='/webjars/jquery-ui/1.14.2+1/jquery-ui.min.js' />"></script> -<link href="<s:url value='/webjars/jquery-ui/1.14.2+1/jquery-ui.css' />" rel="stylesheet" /> +<%-- jquery-ui webjar is 1.14.2+1 in pom.xml, but its resources are served + under the plus-free path: the +N is a webjar build suffix, not part of + the URL. Keeping the +1 here 404s and breaks the date picker/autocomplete. --%> +<script src="<s:url value='/webjars/jquery-ui/1.14.2/jquery-ui.min.js' />"></script> +<link href="<s:url value='/webjars/jquery-ui/1.14.2/jquery-ui.css' />" rel="stylesheet" /> <script src="<s:url value='/webjars/jquery-validation/1.21.0/jquery.validate.min.js' />"></script>
