zowe/zowe-explorer-vscode

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

Geschlossen

#4.192 geöffnet am 21.04.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (119 Forks)auto 404
buggood first issuepriority-mediumseverity-medium

Repository-Metriken

Stars
 (189 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide