# 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.