Skip to content

Simple manager application - #446

Closed
thmarx wants to merge 324 commits into
CondationCMS:mainfrom
thmarx:ui_helper
Closed

Simple manager application #446
thmarx wants to merge 324 commits into
CondationCMS:mainfrom
thmarx:ui_helper

Conversation

@thmarx

@thmarx thmarx commented Apr 29, 2025

Copy link
Copy Markdown
Collaborator

This PR introduces a first version of a manager application to manage content.

@thmarx thmarx changed the title Some fixes and helpers Simple manager application May 1, 2025
@thmarx thmarx added this to the 8.0.0 milestone May 19, 2025
thmarx and others added 28 commits September 17, 2025 16:17
update the list field
* optimize forms for multiple forms on page
* update new list field to add and remove items
* local page solution to override global definition
* update test project
The previous implementation of token validation in `TokenUtils` separated the validation and payload extraction into two distinct methods, `validateToken` and `getPayLoad`. This could lead to a Time-of-check to time-of-use (TOCTOU) vulnerability and resulted in redundant code.

This commit refactors the token handling logic by introducing a new `getPayload` method that combines validation and payload extraction into a single, atomic operation. This method now handles all checks, including format, signature, and expiration, and returns an `Optional<Payload>`.

All call sites, including `UIAuthHandler`, `UIAuthRedirectHandler`, `CSRFHandler`, and `PreviewFilter`, have been updated to use the new, more secure method. The corresponding unit tests have also been updated to reflect this change and now include additional test cases for invalid and malformed tokens.

Additionally, the Java version was corrected from 25 to 21, and the `--enable-preview` flag was added to the compiler, surefire, and javadoc plugins to ensure a consistent and successful build.
@thmarx thmarx closed this Oct 9, 2025
@thmarx thmarx removed a link to an issue Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BackUp solution

1 participant