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

未关闭
#713 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java
领域
cloud

调研方向

首先使用指定的 compartment、region 和 credentials,通过 LoggingManagementClient.listLogGroups() 以及提供的 OCI CLI 命令重现该差异。将 SDK 和 CLI 的结果与 OCI Console 进行比较,然后查看相关的 issue #668;完成的标准是确定过滤发生在 clients 中还是 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 分钟
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oracle/oci-java-sdk 的其他 Issue

查看 oracle/oci-java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。