Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enforced mandatory UserAdmin static reference on rest bundles that create permissions #5014

Merged

Conversation

marcellorinaldo
Copy link
Contributor

@marcellorinaldo marcellorinaldo commented Nov 22, 2023

With this PR, REST request handler bundles that require a particular kura.permission role and creates it on binding the UserAdmin reference, will now have the UserAdmin reference static and mandatory.

This avoids situations where the role is not present on the snapshot and the bundle comes up before the UserAdmin. In such case, the permission will never be created and the bundle remain unutilizable.

Related Issue: N/A.

Description of the solution adopted: N/A.

Screenshots: N/A.

Manual Tests: N/A.

Any side note on the changes made: N/A.

…at create permissions

Signed-off-by: Marcello Martina <[email protected]>
@nicolatimeus nicolatimeus merged commit e7b8bc0 into eclipse-kura:develop Nov 22, 2023
@nicolatimeus nicolatimeus deleted the fix-user-admin-refs-rest branch November 22, 2023 20:03
github-actions bot pushed a commit that referenced this pull request Nov 22, 2023
…at create permissions (#5014)

Signed-off-by: Marcello Martina <[email protected]>
(cherry picked from commit e7b8bc0)
salvatore-coppola pushed a commit that referenced this pull request Nov 23, 2023
…at create permissions [backport release-5.4.0] (#5015)

fix: enforced mandatory UserAdmin static reference on rest bundles that create permissions (#5014)

Signed-off-by: Marcello Martina <[email protected]>
(cherry picked from commit e7b8bc0)

Co-authored-by: Marcello Rinaldo Martina <[email protected]>
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.

3 participants