Rob Fellows created NIFI-12694:
----------------------------------

             Summary: BUG - Console error messages when Starting/Stopping a 
process group
                 Key: NIFI-12694
                 URL: https://issues.apache.org/jira/browse/NIFI-12694
             Project: Apache NiFi
          Issue Type: Sub-task
            Reporter: Rob Fellows


_This doesn't seem to affect functionality_

 

There are 2 distinct errors in the console when starting/stopping process 
groups either from the operation control or the context menu:


{noformat}
ERROR TypeError: Cannot read properties of undefined (reading 'canRead')
    at OperationControl.getContextName (operation-control.component.ts:134:40)
    at OperationControl_ng_container_6_div_1_Template 
(operation-control.component.html:38:61)
    at executeTemplate (core.mjs:12003:13)
    at refreshView (core.mjs:13498:13)
    at detectChangesInView (core.mjs:13663:9)
    at detectChangesInEmbeddedViews (core.mjs:13606:13)
    at refreshView (core.mjs:13522:9)
    at detectChangesInView (core.mjs:13663:9)
    at detectChangesInEmbeddedViews (core.mjs:13606:13)
    at refreshView (core.mjs:13522:9){noformat}
{noformat}
ERROR TypeError: Cannot read properties of undefined (reading 'canRead')
    at SVGRectElement.<anonymous> (process-group-manager.service.ts:204:34)
    at SVGRectElement.<anonymous> (classed.js:58:12)
    at Selection.__WEBPACK_DEFAULT_EXPORT__ [as each] (each.js:5:37)
    at Selection.__WEBPACK_DEFAULT_EXPORT__ [as classed] (classed.js:71:15)
    at ProcessGroupManager.updateProcessGroups 
(process-group-manager.service.ts:203:39)
    at ProcessGroupManager.set (process-group-manager.service.ts:1368:14)
    at Object.next (process-group-manager.service.ts:1326:22)
    at ConsumerObserver.next (Subscriber.js:91:33)
    at SafeSubscriber._next (Subscriber.js:60:26)
    at SafeSubscriber.next (Subscriber.js:31:18){noformat}
 

Both appear related to the reducer assuming the response of the api call 
returns the whole object with `permissions` and such. in the case of process 
groups, it is a very sparse return object and doesn't have those.

 

We should be sure the "fix" works for all startable/stoppable components.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to