zowe/zowe-explorer-vscode

Edge case with USS list of directories with items: undefined/null

已關閉

#4,192 建立於 2026年4月21日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (119 個分叉)auto 404
buggood first issuepriority-mediumseverity-medium

倉庫指標

星標
 (189 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Describe the bug

Review of another PR pointed out an edge case with USS list of directories with items: undefined/null and missing test coverage for edge case

  • Issue: The new USS directory-detection heuristic is better than main for child-only extender listings, but still requires at least one returned item to classify as directory.
  • a residual edge case for successful empty-directory responses (items: []) from extenders.
  • Why it matters: Empty folders from some extenders may still fail to be cached/recognized consistently.
  • The unresolved edge case can regress silently in future refactors.
  • Suggested fix: Add an explicit empty-list fallback path for directory context (or a follow-up stat/lookup check) so items: [] can still be treated correctly when appropriate. Add one unit test for successful empty-list directory response from an extender compatibility scenario.

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS:
  • Zowe Explorer Version:
  • (Optional) Zowe CLI Version:
  • (Optional) Do you have secure credentials enabled?
  • (Optional) Are you using a custom credential manager?

Additional context

貢獻者指南