jimi icon indicating copy to clipboard operation
jimi copied to clipboard

Core does not handle missing requirements on plugins

Open TerrifiedBug opened this issue 3 years ago • 0 comments

When a plugin is installed with missing requirements, there is no clear way to know that the reason is due to missing requirements. The plugin just passes with a True RC 0 but it does error on failing to load the class on the core output.

Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: return self.view_functionsrule.endpoint Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: File "/opt/jimi/jimi_core/core/debug.py", line 255, in getFlowDebugSessionFlowExecutionList Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: for executionKey, executionValue in flowDebugSession[sessionID].flowList[eventID]["execution"].items(): Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: KeyError: '004089d2-67dd-466b-a247-47de93b85008' Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Error unable to find class='5ed8e9f5aad8c141e83f9496', className='_GitClone', classType='_action', location='plugins.git.models.action' : FrameInfo(frame=<frame object at 0x4842e28>, filename='/opt/jimi/jimi_core/core/model.py', lineno=34, function='classObject', code_context=[' jimi.logging.debug("Error unable to find class='{0}', className='{1}', classType='{2}', location='{3}'".format(self.classID,self.className,self.classType,self.location),-1)\n'], index=0) Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Exception on /api/1.0/debug/1422bcbc-d551-4964-8ad3-f527fbc87ab3/004089d2-67dd-466b-a247-47de93b85008/executionList/ [GET] Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: Traceback (most recent call last): Feb 15 17:27:59 soc-script-01.home.net.ugc python3[10020]: File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2447, in wsgi_app

TerrifiedBug avatar Feb 16 '22 12:02 TerrifiedBug