[ 
https://issues.apache.org/jira/browse/NIFI-14143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17911755#comment-17911755
 ] 

ASF subversion and git services commented on NIFI-14143:
--------------------------------------------------------

Commit f63dcc7f568f0b9cd7f73a4ce3909ec5da7d77c5 in nifi's branch 
refs/heads/main from Zoltán Kornél Török
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=f63dcc7f56 ]

NIFI-14143 Fixed ProxiedEntitiesChain Header in Toolkit Config (#9619)

Signed-off-by: David Handermann <[email protected]>

> ProxiedEntity passing is failing in nifi toolkit cli
> ----------------------------------------------------
>
>                 Key: NIFI-14143
>                 URL: https://issues.apache.org/jira/browse/NIFI-14143
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Zoltán Kornél Török
>            Assignee: Zoltán Kornél Török
>            Priority: Major
>             Fix For: 2.2.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The change introduced in https://issues.apache.org/jira/browse/NIFI-14026 use 
> header
> {code:java}
> private static final String PROXIED_ENTITIES_CHAIN_HEADER = 
> "X-Proxied-Entities-Chain"; {code}
> But in {color:#000000}ProxiedEntitiesUtils server side class the expected 
> header name is the following:
> {color}
> {code:java}
> public static final String PROXY_ENTITIES_CHAIN = "X-ProxiedEntitiesChain"; 
> {code}
> {color:#000000}This cause that the cli pass the prossied entity in a header 
> which is not processed and the cli call, which worked before, now throws http 
> 403:
> {color}
> {code:java}
> nifi cluster-summary -verbose
> ERROR: Error executing command 'cluster-summary' : Error retrieving cluster 
> summary: Unable to view the user interface. Contact the system administrator.
> org.apache.nifi.toolkit.cli.api.CommandException: Error executing command 
> 'cluster-summary' : Error retrieving cluster summary: Unable to view the user 
> interface. Contact the system administrator.
>       at 
> org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:65)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.AbstractPropertyCommand.execute(AbstractPropertyCommand.java:74)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processCommand(CommandProcessor.java:248)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.processGroupCommand(CommandProcessor.java:229)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.CommandProcessor.process(CommandProcessor.java:184)
>       at 
> org.apache.nifi.toolkit.cli.CLIMain.runInteractiveCLI(CLIMain.java:127)
>       at org.apache.nifi.toolkit.cli.CLIMain.main(CLIMain.java:70)
> Caused by: org.apache.nifi.toolkit.client.NiFiClientException: Error 
> retrieving cluster summary: Unable to view the user interface. Contact the 
> system administrator.
>       at 
> org.apache.nifi.toolkit.client.impl.AbstractJerseyClient.executeAction(AbstractJerseyClient.java:96)
>       at 
> org.apache.nifi.toolkit.client.impl.JerseyFlowClient.getClusterSummary(JerseyFlowClient.java:251)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.nifi.flow.ClusterSummary.doExecute(ClusterSummary.java:44)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.nifi.flow.ClusterSummary.doExecute(ClusterSummary.java:29)
>       at 
> org.apache.nifi.toolkit.cli.impl.command.nifi.AbstractNiFiCommand.doExecute(AbstractNiFiCommand.java:63)
>       ... 6 more
> Caused by: jakarta.ws.rs.ForbiddenException: HTTP 403 Forbidden
>       at 
> org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:962)
>       at 
> org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:770)
>       at 
> org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:687)
>       at 
> org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:709)
>       at 
> org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:703)
>       at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
>       at org.glassfish.jersey.internal.Errors.process(Errors.java:274) {code}
> {color:#000000} {color}



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

Reply via email to