Repository navigation
Fix session cookie SameSite regression and harden webapps XML mapping test - #2930
Merged
kthoms merged 3 commits intoMay 12, 2026
Conversation
kthoms
marked this pull request as ready for review
May 12, 2026 04:13
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a regression where SameSite=Lax could be dropped from session cookies in certain webapp response paths, and improves the robustness of a MyBatis XML mapping test in environments without external network access.
Changes:
- Ensure SameSite attributes are applied after the filter chain completes via
ensureSameSiteCookies()rather than relying onflushBuffer(). - Add a local SAX
EntityResolverinQuerySessionFactoryTestto resolve the MyBatis DTD from the classpath.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| webapps/assembly/src/main/java/org/operaton/bpm/webapp/impl/security/filter/SessionCookieFilter.java | Ensures SameSite cookie attributes are applied in a finally block via an explicit wrapper call. |
| webapps/assembly/src/test/java/org/operaton/bpm/webapp/impl/db/QuerySessionFactoryTest.java | Resolves the MyBatis DTD locally during XML parsing to avoid network-dependent failures. |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
34 tasks
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.
Summary
Investigated the CI failure in PR 2884 and fixed a branch regression that dropped
SameSite=Laxfrom session cookies in one spring-boot webapp path. Also stabilized a webapps test that could fail in restricted network environments due to external DTD resolution.Session cookie regression fix
SessionCookieFilterso responses that do not trigger output-stream paths still receive configured cookie attributes.Webapps test hardening
QuerySessionFactoryTestto resolve MyBatis DTD locally from classpath instead of relying on network access.Example snippet (core behavior fix):
Changed Templates
Documentation Checklist
Operation Metadata
operationIdis unchanged from the existing value (if modifying an existing endpoint)tagexactly matches a name in themain.ftl"tags"arraysummaryis 3–10 words, uses an approved verb, has no HTTP method label, no articles, no trailing punctuationdeprecated = trueis set if and only if the operation is deprecatedDescriptions
ProcessDefinition interface,RuntimeService, etc.)${docsUrl}**Deprecated:** <reason>. Use <alternative> instead.Parameters
required = truetrueandfalse(or default) effectlast = trueRequest Body
@lib.requestBodyunless the endpoint accepts no body<METHOD> /<path>(optionally with a disambiguating label)key:version:uuidfor process definitions, UUIDs for instances){"type": "String", "value": "...", "valueInfo": {}}Responses
dtoorexamples${docsUrl}linklast = trueFreeMarker Syntax
./mvnw clean package -pl engine-rest/engine-rest-openapi -DskipTestsdescstrings are escaped as\`Registration
endpointsmap inmain.ftl(for new endpoints)"tags"array inmain.ftl(for new tags)caseInstanceId,caseExecutionId,caseDefinitionId) are markeddeprecated = true