[
https://issues.apache.org/jira/browse/NIFI-5747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Sniffen updated NIFI-5747:
---------------------------------
Description:
When using the InvokeHTTP Processor. If the requested URL redirects from HTTPS
to HTTP, the convertAttributesFromHeaders function attempts to call
{code:java}
responseHttp.handshake().peerPrincipal().getName()
{code}
when
{code:java}
responseHttp.handshake()
{code}
returns null. This throws a NPE.
was:
When using the InvokeHTTP Processor. If the requested URL redirects from HTTPS
to HTTP, the convertAttributesFromHeaders function attempts to call
`responseHttp.handshake().peerPrincipal().getName()` when
`responseHttp.handshake()` returns null. This throws a NPE.
> InvokeHTTP Processor NPE
> ------------------------
>
> Key: NIFI-5747
> URL: https://issues.apache.org/jira/browse/NIFI-5747
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Julian Sniffen
> Priority: Major
>
> When using the InvokeHTTP Processor. If the requested URL redirects from
> HTTPS to HTTP, the convertAttributesFromHeaders function attempts to call
> {code:java}
> responseHttp.handshake().peerPrincipal().getName()
> {code}
> when
> {code:java}
> responseHttp.handshake()
> {code}
> returns null. This throws a NPE.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)