Skip to content

fix: adds validator on permission resource#3878

Merged
thoniTUB merged 6 commits intodevelopfrom
fix/validate-permission
Apr 20, 2026
Merged

fix: adds validator on permission resource#3878
thoniTUB merged 6 commits intodevelopfrom
fix/validate-permission

Conversation

@thoniTUB
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@awildturtok awildturtok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passt eigentlich. Vlt kurz reinschauen ob du easy das komma lösen kannst, sonst mergen

* Validate Shiro permissions
*/
@NotBlank
@Pattern(regexp="^[\\w,*]+(?::[\\w,*@]+){0,2}$", message="Provide a valid shiro permission string with 3 sub-parts at most.")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist glaube nicht besonders schlimm, aber das matched auf dangling kommas dataset:asdasd,:READ,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@awildturtok ich habe einen test hinzugefügt. dataset:asdasd,:READ, is okay, dataset:,:READ, hingegen nicht, aber das wird von Shiro abgefangen.

@thoniTUB thoniTUB requested a review from awildturtok April 20, 2026 10:56
@thoniTUB thoniTUB merged commit b00146e into develop Apr 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants