Repository navigation
feat(webapps-neo): Ship the neo webapp with the WildFly distribution - #3885
Closed
javahippie wants to merge 1 commit into
Closed
javahippie wants to merge 1 commit into
javahippie wants to merge 1 commit into
Conversation
- adds operaton-webapp-neo-wildfly, a WAR overlay of operaton-webapp-neo
with the same web.xml and config.json as the Tomcat variant, the
legacy webapp's module Dependencies and deployment exclusions, and
context root / via jboss-web.xml
- removes the undertow welcome-content location for / from
standalone.xml and standalone-full.xml, which occupied the root
context
- disabled by default through NeoEnabledFilter, like on Tomcat: when
off, / redirects to /operaton/ and every other path returns 404
- undertow-handlers.conf adds SameSite=Lax to JSESSIONID; Undertow sets
the session cookie past SessionCookieFilter and ignores the Servlet 6
cookie-config attribute
- documents the switch in README.txt and standalone.conf{,.bat}
related to #3870
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #3870 (WildFly part).
What
Same use case and behavior as on Tomcat: the WildFly distribution now contains the new web apps, disabled by default, and the legacy web apps stay the standard.
//operaton//operaton//api/admin,/api/engineEnable it with
-Doperaton.bpm.webapp.neo.enabled=true(commented example inbin/standalone.conf{,.bat}) or withOPERATON_BPM_WEBAPP_NEO_ENABLED=true.How
distro/wildfly/webapp-neo→operaton-webapp-neo-wildfly.war, a WAR overlay ofoperaton-webapp-neo:web.xmlandconfig.jsonare identical to the Tomcat variant. RESTEasy comes from WildFly, so the WAR adds noresteasy-core.Dependenciesandjboss-deployment-structure.xmlare copied from the legacyoperaton-webapp-wildfly.jboss-web.xmlsetscontext-rootto/.<location name="/" handler="welcome-content"/>fromstandalone.xmlandstandalone-full.xml, which occupied/(this is the counterpart of dropping Tomcat's ROOT app). The unusedwelcome-contenthandler definition stays, to keep the diff small.WEB-INF/undertow-handlers.confaddssamesite-cookie(mode=Lax, cookie-pattern=JSESSIONID). Undertow sets the session cookie pastSessionCookieFilter, soJSESSIONIDcame withoutSameSite, unlike on Tomcat. The Servlet 6<cookie-config><attribute>alternative is ignored by Undertow; I tried it.Verification
Smoke test of the built
operaton-bpm-wildflytar.gz on WildFly 41.0.1.Final:/registers next to/operaton,/engine-rest,/operaton-invoiceand/operaton-welcome, with no deployment errors./→ 302/operaton/;/tasks,/config.json,/api/admin/...→ 404; legacy welcome → 200/,/tasks,/processes/invoice→ SPA shell;/config.json→ JSON; bundle assets → 200;/assets/missing.js→ 404; CSP header presentJSESSIONIDandXSRF-TOKENcarrySameSite=LaxAccept: */*: POST without CSRF token → 403, logindemo/demo→ 200 JSON, whoami → 200, engine API → 200, anonymous → 401, logout → 200, whoami afterwards → 404standalone.conf(only via the env var).Notes for review
/. With neo disabled,/redirects to the legacy webapps.SameSiteonJSESSIONID(path=/operaton). That is out of scope here.pr-build.ymlonly triggers for PRs againstmain/release/**/staging/**and ignoresdistro/**, so CI will not run on this PR until it is retargeted.sbom.cdx.json; CI updates it.🤖 Generated with Claude Code