ListLogGroups API Returns Incomplete Results for VCN/Subnet Audit Log Groups

オープン
#713 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
cloud

調査の方向性

まず、指定された compartment、リージョン、認証情報を使用して、LoggingManagementClient.listLogGroups() と提供された OCI CLI コマンドで不一致を再現します。SDK と CLI の結果を OCI Console と比較し、その後、関連する issue #668 を確認します。クライアント側と OCI サービス側のどちらでフィルタリングが行われているかを特定し、確認された原因を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The LoggingManagementClient.listLogGroups() method returns incomplete results, specifically missing log groups associated with VCN/subnet audit logging, despite successful authentication and HTTP 200 responses.

Environment
  • OCI Java SDK Version: 3.69.0
  • Java Version: 8
  • Authentication: User principal with tenancy-wide read permissions
Expected Behavior

Should return all log groups the authenticated principal can access, including VCN Flow Log audit groups.

Actual Behavior
  • API returns HTTP 200 with valid response structure and request IDs
(super=com.oracle.bmc.logging.responses.ListLogGroupsResponse@be50ef52,opcNextPage=null,opcPreviousPage=null,opcRequestId=<request_id>,items=[])
  • Same log groups are visible and accessible in OCI Console with identical credentials
  • No authentication errors or exceptions
  • OCI CLI shows identical behavior (missing same log groups)
oci logging log-group list --compartment-id "<compartment-id>" --region us-phoenix-1

Implementation
final LoggingManagementClient client = LoggingManagementClient.builder()
    .region(region)
    .build(new ConfigFileAuthenticationDetailsProvider(configFilePath, profile))

final ListLogGroupsRequest.Builder builder = ListLogGroupsRequest.builder().compartmentId(compartmentId);
String nextPage = null;
do {
  final ListLogGroupsRequest request = builder.page(nextPage).build();
  final ListLogGroupsResponse response = client.listLogGroups(request);
  response.getItems().forEach(logGroup -> {
    // Process discovered log groups - VCN audit log groups missing
  });
  nextPage = response.getOpcNextPage();
} while (!Strings.isNullOrEmpty(nextPage));
Request

Please investigate why the API filters out VCN/subnet audit log groups that are visible in Console with same permissions.
Note: May be related to #668

主要言語
Java
スター
243
フォーク
171
平均マージ
5分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oracle/oci-java-sdk のほかの issue

oracle/oci-java-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。