[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 Ok fine for me. I'll do thé ticket + PR soon ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 We only use swagger for documentation generation. Changing the resulting value would break the current API that existing clients expect. I believe the best path forward would be to fix the

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 I see. So the issue is with this annotation? @ApiModelProperty( value = "The state of the processor.", allowableValues = "RUNNING, STOPPED, DISABLED,

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 Yes, but the problem is the toString() which is not good : ProcessorStatusSnapshotDTO is defining RUNNING but the call in DtoFactory is setting "Running" So the value is *not*

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 In some cases, human-readable labels are generated and other cases not. Often times we defer to the `toString` of the enum to drive the resulting value. ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 `.toUpperCase()` is probably missing... ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 org.apache.nifi.controller.status.RunStatus contains lowercase characters but org.apache.nifi.web.api.dto.status.ProcessorStatusSnapshotDTO (and probably other classes) are defining UPPERCASE

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-16 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 OK, the problem is not in the REST API which does contain the right value : `"runStatus":"Running"` However, the problem is in the generated code from swagger.io (or in Nifi) : In

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-12 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 I'd suggest invoking the endpoints using curl or looking at Dev Tools in your browser to verify that the issue is with NiFi. ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-12 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 I'm running a build from the latest sources in standalone mode. I have a process group with 4 processors all running (from the web ui pow) and when I do retrieve the ProcessGroupStatusDTO of

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-12 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 @sbouchex What version of NiFi are you running? When endpoint are you invoking that is not setting this value? Are you running standalone or clustered? ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2018-01-12 Thread sbouchex
Github user sbouchex commented on the issue: https://github.com/apache/nifi/pull/2276 I open the issue as the issue is still there... the processor status is reported as null instead of RUNNING ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2017-11-17 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 Thanks @sbouchex! This has been merged to master. ---

[GitHub] nifi issue #2276: NIFI-4615 processor status is set to the ProcessorStatusDT...

2017-11-17 Thread mcgilman
Github user mcgilman commented on the issue: https://github.com/apache/nifi/pull/2276 @sbouchex This is a great catch and thanks for the contribution! Reviewing the code it appears that the runStatus was moved into the status snapshot likely during the 0.x -> 1.x transtion. This