Switching to project view not working when user is assigned custom Project Role
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
- 領域
- api, authorization
調査の方向性
"allow *" を許可するカスタム Project Role で障害を再現し、その後、listApis、listZones、listCapabilities のプロジェクトビューリクエストを調査して、Admin または Regular のプロジェクトメンバーシップの場合と比較します。API/UI バージョン 4.22.1.1 と 4.22.1.0 での挙動を確認します。カスタムロールのユーザーが認可エラーなしでプロジェクトビューに切り替えられ、一覧にあるリクエストが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
problem
If account/user is added to the project with custom role (even if role permisions are "allow *") user can login to CS successfully but switching to project view will fail and generate multiple errors: "
The given command 'listApis' either does not exist, is not available for user. Unable to proceed. Please contact your administrator."
The given command 'listZones' either does not exist, is not available for user. Unable to proceed. Please contact your administrator.
The given command 'listCapabilities' either does not exist, is not available for user. Unable to proceed. Please contact your administrator.
...
On browser console indeed you can see that request:
/client/api/?command=listApis&response=json&sessionkey=xxx&projectid=xxx
returns:
{"listapisresponse":{"uuidList":[],"errorcode":401,"cserrorcode":9999,"errortext":"The given command 'listApis' either does not exist, is not available for user."}}
If user is added to the project with Admin or Regular Type without any project role, switching to project view works correctly.
Switching to project view using custom Project Roles in 4.22.1.0 works correctly.
Also using UI ver. 4.22.1.1 and Api ver: 4.22.1.0 works correctly.
No additional logs available in:
cloudstack/management/apilog.log
cloudstack/management/management-server.log
versions
ACS: 4.22.1.1
The steps to reproduce the bug
- Create new project "Test"
- Create Project Role with "allow *" permission
- Add non-admin user to project with that Project Role
- Switch to Project View of "Test" project
What to do about it?
Please track the root cause and fix the bug
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 7日 5時間
- マージ済み PR(30日)
- 28
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/cloudstack のほかの issue
-
bug component:kubernetes
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/cloudstack#14180 ·
-
bug component:projects component:UI
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/cloudstack#14070 · コメント 5 件 ·
-
component:backup
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/cloudstack#14013 ·
-
KVM agent fails to connect to Ceph RBD storage pool after upgrading Ceph client to Tentacle 20.2.4 オープンbug component:ceph
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/cloudstack#13989 · コメント 3 件 ·
-
component:UI
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/cloudstack#13944 · コメント 3 件 ·
apache/cloudstack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
infinispan/infinispan#18150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
opensearch-project/k-NN#3597 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100