Publish rebuilt role-access and full-viewport WAR at both download paths

This commit is contained in:
2026-11-24 06:41:02 +00:00
parent 4891fc76eb
commit 84c4ce459c
7 changed files with 56 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
Built UTC: 2026-11-23T13:03:18.251320+00:00
Source commit: a89a3bc4b6279f0161974ee945c8170727aa9b46
Build: bash build-hmi.sh (Vue typecheck, Vite, Maven clean package)
Tests: Maven tests and npm run test:cheerpj passed
Manufacturer JAR source: remote MES JNLP only; no archive bundle
Built UTC: 2026-11-24T06:41:01.891198+00:00
Source commit: 4891fc76eb2e4e6b312ebfe36081d14617513787
Build: Vue typecheck/Vite + Maven package; Java release 11
Tests: 5 Java tests, CheerpJ/navigation/widget suites and Chromium component smoke passed
Live GlassFish/Oracle/SQL Server role roundtrip: NOT tested
Identical WAR paths: release/backend-1.war and backend/target/backend-1.war
WAR SHA256: 1f7098e59791ae1180255f7d347fefbe2d7fbb0ab3ad85f8a70417ea955dc122
WAR SHA256: 3c4c2dc5ce000c39df360a647621683de6cc7ab60fc7980d3360558b5f2fa49b

View File

@@ -58,3 +58,9 @@ CheerpJ 5.0 is loaded from its CDN; an appropriate license is required for busin
Rebuild from the project root with `bash build-hmi.sh` (Linux) or `./build-hmi.ps1` (Windows).
Neither build requires Workplace.zip. This correction concerns client library selection;
it does not change classes or deployments inside the MES server.
## UI update 2026-11-24
This release also includes persistent page-role assignments, an always-visible role catalog and
automatically maximized JNLP browser viewport. Window diagnostics remain off by default.
See `HMI_PAGE_ROLES_FULLSCREEN.md` for authorization semantics and verification limits.

View File

@@ -0,0 +1,39 @@
# Roles, page access and maximized JNLP – 2026-11-24
## Changes
- Existing role definitions are always shown in the role administrator, even before choosing a person/group.
NULL role descriptions no longer remove role entries from the backend JSON object.
`hmi-workplace` is included in both built-in role catalogs.
- Page Manager loads existing `visibleToRoles`, offers role checkboxes and saves them with the page.
Missing roles on legacy updates preserve the current policy; an explicit empty array removes restrictions.
- Policies use existing CUST/cust `HMI_APP_PREF`, scope `PAGE_ACCESS`, keyed by page ID.
No new tables, columns or destructive schema migrations. Page metadata and policy save in one transaction.
- Server-side navigation filtering and direct effective/layout access enforce operator permissions,
including all parent page policies. Within a page ANY selected role suffices; ancestor policies ALSO apply.
Existing designer/publisher/admin management and preview privileges are preserved and bypass operator
page filtering. This is not a new restriction on administrative editing privileges.
- No policy means the existing unrestricted authenticated page behavior. Invalid stored policies fail closed.
- JNLP widgets auto-start in a body-level overlay occupying the whole browser viewport (`fit`).
“Zur Seite” returns to the existing widget without restarting Java. True browser Fullscreen API is
only requested by a user click. No invented JNLP fullscreen argument is passed to the vendor launcher.
- Window diagnostics remain OFF by default. Remote MES JNLP/JAR source and browser identity fix unchanged.
## Verification
Vue typecheck/Vite and Maven build passed. Five Java tests passed, including role matching, parent
restrictions, disabled/missing parents, cycles, invalid input and unrestricted pages. Existing CheerpJ,
widget-package and navigation suites passed. Chromium component smoke test with mocked HTTP endpoints:
role list visible without person selection; stored page role loaded; checkbox change sent in PUT payload;
automatic JNLP overlay measured 1280x800 and returned to page without a new launch.
No live Oracle/SQL Server connection, authenticated GlassFish role roundtrip or MES booking was tested.
JDBC uses the existing parameterized CLOB/NVARCHAR preference-store pattern for both databases.
The previous Workplace login was not re-tested; no changes to authentication or remote JAR selection.
## Deployment
Deploy the updated WAR, hard-reload the Workbench UI, open Pages & Navigation, choose a page,
select “Sichtbar für Rollen” and save. Use the roles administrator to assign those roles to persons/groups.
An ordinary operator needs an allowed role on each restricted ancestor and on the page itself.
Verify with a separate operator account: hidden navigation AND denied direct effective-page access.

View File

@@ -1,3 +1,5 @@
1f7098e59791ae1180255f7d347fefbe2d7fbb0ab3ad85f8a70417ea955dc122 backend-1.war
536e5843a4104ac9466a3fd224de5dcadd973844c88d2ac5910a29ea8fc4ae90 WidgetWorkbench-source.zip
b5f84d0847526e301e08afb31885aed1ec4a009e3573b17b31e29d70f445b75b DEPLOYMENT.md
3c4c2dc5ce000c39df360a647621683de6cc7ab60fc7980d3360558b5f2fa49b backend-1.war
148198d84f2965fd417e96c2c1daa007d320962bd0ec46b44ee987b3b0f2f60a WidgetWorkbench-source.zip
67b9f8cbd9a40ee1f715e3a4363822741b673815310366c33ad9a5051a73358c DEPLOYMENT.md
fdd0e6b7d7393f6b9432ad2492ab1354e8c12b03f1f337a4c533a68b1c6e829c HMI_PAGE_ROLES_FULLSCREEN.md
fa1b20f0507a2744bfc6f8de73006dd8efa4838cbaf87913d850fa2f82e97bc8 BUILD.txt

Binary file not shown.

Binary file not shown.