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

The cache create page for deployer user takes to "Unauthorized access" page #542

Open
andyuk1986 opened this issue Nov 4, 2024 · 3 comments

Comments

@andyuk1986
Copy link
Collaborator

andyuk1986 commented Nov 4, 2024

Describe the bug

From the existing Infinispan authorization logic, the admin and deployer users should be able to create a cache, others see Create cache configuration button, which allows to create the cache config and download it. Seems that there is regression in 15.x (which I have just found by manual testing), so when the deployer clicks on Create a cache button, the "Unauthorized access" page is shown.

Expected behavior

The deployer user should be able to create a cache.

Actual behavior

The deployer user is not able to create a cache. The Unauthorized access page is shown to him.

How to Reproduce?

  1. Create a deployer user with command:
    ./cli.sh user create deployer -p password -g deployer

  2. The start the server and login with deployer user. You can see the button Create a cache.

  3. Click on the button, and you will see the following screen:
    image

Output of uname -a or ver

Linux fedora 6.10.12-200.fc40.x86_64

Infinispan version or git rev

15.x

@andyuk1986
Copy link
Collaborator Author

I will add a test covering this scenario, as our RBAC tests were testing only that the deployer can see the button, assuming that the button will lead to a proper page.

@karesti
Copy link
Collaborator

karesti commented Nov 4, 2024

@andyuk1986 please change the screenshot (or remove the header)

@andyuk1986 andyuk1986 changed the title The cache create page for deployer user takes to "Have no ADMIN access page" The cache create page for deployer user takes to "Unauthorized access" page Nov 5, 2024
@andyuk1986
Copy link
Collaborator Author

@karesti I have updated the screenshot with proper one and updated the header.

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

No branches or pull requests

2 participants