fix(shell): prevent crash when target namespace lacks IPM mappings - #994
Merged
isc-dchui merged 19 commits intoAug 21, 2026
Merged
Conversation
AshokThangavel
requested review from
isc-dchui,
isc-egabhart,
isc-eneil,
isc-jili,
isc-jlechtne,
isc-kiyer,
isc-pbarton and
isc-tleavitt
as code owners
December 19, 2025 05:10
isc-kiyer
requested changes
Dec 19, 2025
isc-kiyer
left a comment
Collaborator
There was a problem hiding this comment.
@AshokThangavel few small comments but fix looks good!
…Thangavel/ipm into fix/zn-command-ipm-missing
isc-kiyer
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR resolves a terminal crash occurring within the
zn(namespace) command utility. The error was triggered when the utility attempted to list or switch to namespaces where the IPM/ZPM package classes were not mapped or enabled.The crash happened specifically because the
zntool's display logic attempted to pull UI configurationRelated Issues
Changes
IsIPMEnabled) to verify if IPM classes are available in a target namespace before attempting to access them.zn *andzn [pattern]output to explicitly mark namespaces that do not have IPM enabled with a(IPM not enabled)label. This improves the user experience by clarifying why certain IPM features might be unavailable after switching.Testing Conducted
zn *and verified that namespaces like%SYSandUSERare listed with the(IPM not enabled)suffix without throwing an error.zn %SYSfrom the IPM shell. Verified that the switch completes and the prompt handles the missing class context correctly.zn %S*) still works and filters the list as expected without crashing.