[jira] [Commented] (NIFI-5747) InvokeHTTP Processor NPE

2018-10-26 Thread ASF subversion and git services (JIRA)


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

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

Commit fdbcf34281bf6ee71f4f5ba6b9445254bc874752 in nifi's branch 
refs/heads/master from juliansniff
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=fdbcf34 ]

NIFI-5747 fix NPE when redirecting from HTTPS to HTTP for InvokeHTTP

Signed-off-by: Koji Kawamura 


> InvokeHTTP Processor NPE
> 
>
> Key: NIFI-5747
> URL: https://issues.apache.org/jira/browse/NIFI-5747
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.0.0
>Reporter: Julian Sniffen
>Assignee: Julian Sniffen
>Priority: Major
> Fix For: 1.9.0
>
> Attachments: nifi-5747.patch.zip
>
>
>  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 can be fixed by checking the responseHttp object for SSL rather than the 
> original URL.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5747) InvokeHTTP Processor NPE

2018-10-26 Thread Koji Kawamura (JIRA)


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

Koji Kawamura commented on NIFI-5747:
-

The patch looks good. Confirmed the issue has been addressed. Merging to 
master. Thanks again, [~juliansniff]!

> InvokeHTTP Processor NPE
> 
>
> Key: NIFI-5747
> URL: https://issues.apache.org/jira/browse/NIFI-5747
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.0.0
>Reporter: Julian Sniffen
>Assignee: Julian Sniffen
>Priority: Major
> Fix For: 1.9.0
>
> Attachments: nifi-5747.patch.zip
>
>
>  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 can be fixed by checking the responseHttp object for SSL rather than the 
> original URL.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (NIFI-5747) InvokeHTTP Processor NPE

2018-10-26 Thread Koji Kawamura (JIRA)


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

Koji Kawamura commented on NIFI-5747:
-

[~juliansniff] Thanks for sending the patch! I've assigned you to this JIRA. 
I'll review the patch.

> InvokeHTTP Processor NPE
> 
>
> Key: NIFI-5747
> URL: https://issues.apache.org/jira/browse/NIFI-5747
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Julian Sniffen
>Assignee: Julian Sniffen
>Priority: Major
> Attachments: nifi-5747.patch.zip
>
>
>  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 can be fixed by checking the responseHttp object for SSL rather than the 
> original URL.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)