This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Plugin validation fails when using chained handlers #320
Labels
bug
Something isn't working
priority-low
Legit issue but cosmetic or nice-to-have
severity-high
Bug for which there may be workaround but limits the usage of the Zowe for major use cases
Comments
@MikeBauerCA - I got pinged by a customer last week asking about this issue saying that
Is this something you've come across before ? I'm wondering if there is any more information needed to look into the issue more (it's not something I know enough about to be knowledgeable but I know it is blocking the customer moving forward with deploying their CLI extension). |
@Joe-Winchester do you have any more details on what the customer is doing? Are they building a new plug-in or installing an existing plug-in? |
Hi guys,
I had a look at the issue yesterday. The problem is that developing a plugin with a command with chainedHandlers will result in a validation error, as reported in github issue. Inspecting the code, I suspect that the issue is in validatePluginCmdDefs method in this class:
imperative<https://github.com/zowe/imperative>/packages<https://github.com/zowe/imperative/tree/master/packages>/imperative<https://github.com/zowe/imperative/tree/master/packages/imperative>/src<https://github.com/zowe/imperative/tree/master/packages/imperative/src>/plugins<https://github.com/zowe/imperative/tree/master/packages/imperative/src/plugins>/PluginManagementFacility.ts
Requiring each command definition of “type”:”command” to have a “handler” property defined.
Hope this can help.
Thanks & Regards
Davide Canalis
Software Engineer
HCL Software Division <https://www.hcltech.com/software>
[cid:[email protected]]
From: MikeBauerCA [mailto:[email protected]]
Sent: Wednesday, October 21, 2020 2:05 PM
To: zowe/imperative <[email protected]>
Cc: DAVIDE CANALIS <[email protected]>; Author <[email protected]>
Subject: Re: [zowe/imperative] Plugin validation fails when using chained handlers (#320)
[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]
@Joe-Winchester<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJoe-Winchester&data=04%7C01%7Cdavide.canalis%40hcl.com%7Ca939735ca6824a6c16b108d875b98cdb%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637388787077159669%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=qD9X6PeQusfl%2BEJ8rQByjdMQaztzbA7LYaTgvo7U%2F%2B8%3D&reserved=0> do you have any more details on what the customer is doing? Are they building a new plug-in or installing an existing plug-in?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzowe%2Fimperative%2Fissues%2F320%23issuecomment-713520351&data=04%7C01%7Cdavide.canalis%40hcl.com%7Ca939735ca6824a6c16b108d875b98cdb%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637388787077159669%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=lQU86isb0kWJwEWOdtnMZBTijhaf9xbqJgtY%2BKsU8DA%3D&reserved=0>, or unsubscribe<https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKCPRYVJCAN342H5CJ7AA4TSL3E7BANCNFSM4JKZ22EQ&data=04%7C01%7Cdavide.canalis%40hcl.com%7Ca939735ca6824a6c16b108d875b98cdb%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637388787077159669%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=etfOkcSoxA4xf2U%2BdzV9%2F0dwq6CaaN5OcUQQ9ZEJYUo%3D&reserved=0>.
::DISCLAIMER::
…________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________
|
awharn
added
priority-medium
Not functioning - next quarter if capacity permits
severity-high
Bug for which there may be workaround but limits the usage of the Zowe for major use cases
for-review
To be reviewed in an Eng & Prod Mgmt meeting
labels
Dec 6, 2022
zFernand0
added
priority-low
Legit issue but cosmetic or nice-to-have
and removed
for-review
To be reviewed in an Eng & Prod Mgmt meeting
priority-medium
Not functioning - next quarter if capacity permits
labels
Dec 16, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
Something isn't working
priority-low
Legit issue but cosmetic or nice-to-have
severity-high
Bug for which there may be workaround but limits the usage of the Zowe for major use cases
Plugin validation fails for command with chainedHandlers defined with message "CmdError: Command name = '***' has no 'handler' property", resulting in plugin commands not available.
The text was updated successfully, but these errors were encountered: