You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
admin assign role spaceAdmin from keycloak panel to user. Try to log in to ocis with user credential. Most of the time return 500 status code. Sometimes login could be successful
updated bug-report according to commit ocis commit 5f831c0
Steps to reproduce
create user anu on keycloak and assign role User and initiate created user (login to ocis)
user anu logout on ocis
admin re-assigns spaceAdmin role to user anu from keycloak UI
found that api request on endpoint v1.0/me?%24expand=memberOf returns 500 status code.
GET https://ocis.owncloud.test/graph/v1.0/me?%24expand=memberOf
Status Code:
500 Internal Server Error
api request on endpoint /v0/settings/roles-list sometimes returns 500 status code and sometimes returns success status code
I tried to run e2e test with keycloak instance KEYCLOAK=true BASE_URL_OCIS=ocis.ocis-keycloak.latest.owncloud.works KEYCLOAK_HOST=keycloak.ocis-keycloak.latest.owncloud.works pnpm test:e2e:cucumber tests/e2e/cucumber/features/smoke/admin-settings/spaces.feature:127 - green
@ScharfViktor, instead of "assigning roles while creating a user," we should "change the role" after user creation. I believe this discrepancy in steps might have led to the inability to reproduce the bug.
@ScharfViktor, instead of "assigning roles while creating a user," we should "change the role" after user creation. I believe this discrepancy in steps might have led to the inability to reproduce the bug.
create user anu on keycloak and initiate created user (login to ocis)
do you assign role ocisUser while creating user anu? I guess so, because anu cannot login without role.
my actions:
Screen.Recording.2024-04-09.at.09.14.15.mov
after changing role -> user can log in
@amrita-shrestha could you please attach video how to reproduce bug?
Activity
v-scharf commentedon Mar 4, 2024
I can confirm this bug. If
adminassignsocisUserrole to useranu- works finemicbar commentedon Mar 4, 2024
In which UI do you change the role?
amrita-shrestha commentedon Mar 5, 2024
keycloak UI
micbar commentedon Mar 5, 2024
hm. I cannot reproduce the issue.
v-scharf commentedon Mar 5, 2024
I tested here https://owncloud.dev/ocis/deployment/continuous_deployment/#ocis-with-keycloak and I was confident to reproduce it 500 Error but I couldn't reproduce it together with @micbar
Steps were:
ocisSpaceAdminroleActual: works fine
I tried to run e2e test with keycloak instance
KEYCLOAK=true BASE_URL_OCIS=ocis.ocis-keycloak.latest.owncloud.works KEYCLOAK_HOST=keycloak.ocis-keycloak.latest.owncloud.works pnpm test:e2e:cucumber tests/e2e/cucumber/features/smoke/admin-settings/spaces.feature:127- greenamrita-shrestha commentedon Mar 6, 2024
ci https://drone.owncloud.com/owncloud/web/42946/16/15 is failing due to same reason
cc @ScharfViktor @micbar
amrita-shrestha commentedon Apr 9, 2024
@ScharfViktor, instead of "assigning roles while creating a user," we should "change the role" after user creation. I believe this discrepancy in steps might have led to the inability to reproduce the bug.
v-scharf commentedon Apr 9, 2024
do you assign role
ocisUserwhile creating useranu? I guess so, becauseanucannot login without role.my actions:
Screen.Recording.2024-04-09.at.09.14.15.mov
after changing role -> user can log in
@amrita-shrestha could you please attach video how to reproduce bug?
[-][keycloak] Can't login after role assgin[/-][+][keycloak] Can't login after role re-assgin[/+]amrita-shrestha commentedon May 30, 2024
latest ocis commit 73d7f32 has no such bug so closing this issue