Repository navigation
Update EVALSYS for Sakai master's Jakarta, Spring 6, and Hibernate 6 stack - #209
Conversation
91163f0 to
23689f1
Compare
…for local testing Resolve @RequestParam conflicts keeping explicit names and the new external / RedirectAttributes parameters from EVALSYS-1624/1626. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I merged current The only conflicts were in Tested on Sakai master (Java 21, Tomcat 10.1.61, MariaDB) from My Workspace: scales, items, templates, creating and publishing an evaluation, student save/submit, anonymous re-submit, reports and exports including the per-group ZIP, the results email link, deleting an evaluation with responses, copying templates, and denial of template editing to students. No errors in the logs. Note for fresh installs: with |
|
we can wait to merge this in .... if you still want to do work on EVALSYS targeted for Sakai 25, I'm fine with waiting |
|
Could we have a 25.x branch? I don't mind doing backports of any work until we move to 27, hopefully next summer. I don't know if our users will ask me for more features and it's a pity to have the 27 work waiting just in case. |
|
There is a 25.x branch and a 25.x-thmyeleaf branch |
At this point I think the 25.x branch is no longer useful, and anyone installing it will be using the wrong (RSF) version without noticing. 25.x-thymeleaf works, but it is 43 commits behind master and misses the latest fixes. And we can't merge the Jakarta changes (#209) into master without breaking the 25 backport. If you agree, I'd propose:
Fixes for 25 would then be backported from master to 25.x. What do you think, @ottenhoff ? |
|
Great plan! I agree |
|
Yes, I agree completely. This list of tasks should be done now. |
Sakai master now targets Java 21, Tomcat 10.1, Spring 6, and Hibernate 6. EVALSYS still uses Java EE servlet APIs, Thymeleaf's Spring 5 integration, and Hibernate APIs removed in Hibernate 6. The smoke test currently stops while compiling Sakai with JDK 17 (
invalid target release: 21).This updates EVALSYS to the Jakarta dependencies managed by Sakai's 27-SNAPSHOT parent, switches Thymeleaf to Spring 6, and removes the Java EE WebJars servlet in favor of the existing Spring resource handler. Controller request parameters have explicit names, including date fields, so Spring 6 binding works without the compiler's
-parametersflag. The three maps collecting all request parameters remain unnamed. Hierarchy caching uses master's Spring CacheManager. The license plugin and its inherited Git extension are pinned to matching versions somvn license:checkworks.DAO operations now use the transaction-bound Hibernate Session directly because HibernateTemplate loads the removed Criterion API. Identifier access and collection HQL use Hibernate 6-compatible APIs. Assignment cleanup removes managed entities so deleting an evaluation does not leave stale references that fail Hibernate 6's flush checks; the existing integration test now verifies this explicitly. Existing save/update cascade behavior is retained.
Spring MVC now uses AntPathMatcher for Sakai's named-servlet dispatch, matching master tools. The browser suite enters Evaluation System from the Administration Workspace and creates and publishes an evaluation through the portal, including the visible CKEditor. A fresh CI instance gets the tool installed in
!adminthrough Sakai's fixture API. Browser checks target the active tool frame, supporting both the default iframe portal and inline rendering.Direct admin endpoints already checked permissions, but uncaught denials returned 500 with exception details. Permission denials now return an empty 403. The access audit also reproduced anonymous access to a private template editor. Service-level visibility checks now guard private template, item, scale, and template-item authoring reads, including previews and removal confirmation pages. Public authoring visibility and authorized anonymous evaluation delivery are retained.
The Tomcat smoke test uses JDK 21 and Tomcat 10.1.61, restores Maven prerequisite checks, matches Sakai's localhost URL for browser sessions, and retains Tomcat logs with test artifacts.
EVALSYS artifact versions now target
27-SNAPSHOT. Boxed primitive constructors usevalueOfto pass the Checkstyle rules inherited from current Sakai master. The README documents master for Sakai 27, the maintained Thymeleaf25.xbranch for Sakai 25, and the archived25.x-rsfbranch. It also includes instructions for realigning existing Sakai 25 checkouts after the branch replacement.CI follows Sakai master's cache layout and toolchain: Maven 3.9.16, a workspace-local repository, explicit restore/save steps, and master pushes that warm the cache for future PRs. Saving also runs after failed builds, so retries retain downloaded dependencies; failed-download markers are removed before saving. The duplicate setup-java Maven cache is removed. The Sakai Maven repository is responding again, and all temporary binary dependency seeds have been removed. Portal fixture setup authenticates through an independent API request context, as in master's helper, so an already authenticated admin browser does not enter the session-creation API's impersonation branch.
Validation:
a48d3221, including the Sakai master and EVALSYS builds, Tomcat startup, and all 4 browser tests against the default iframe portal. The browser tests cover portal entry/admin navigation, evaluation creation and publishing, anonymous/student administration denial, and private template/question visibility.mvn --no-snapshot-updates clean install: passed. Implementation suite: 311 tests, 21 skipped; tool suite: 11 tests. No failures or errors.mvn license:check: passed across all modules from a standalone checkout (the license plugin does not support Git worktrees).git diff --check: passed against master.