You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Jeffrey E Rodriguez (JIRA)" <ji...@apache.org> on 2017/04/01 21:54:41 UTC
[jira] [Commented] (RANGER-1489) Solr plugin fails to get client
address
[ https://issues.apache.org/jira/browse/RANGER-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952436#comment-15952436 ]
Jeffrey E Rodriguez commented on RANGER-1489:
----------------------------------------------
context.getRemoteAddr returns the Internet Protocol (IP) address of the client or last proxy that sent the request. If Solr is going through a balancer it may return the IP of the balancer instead of the client making the request.
So if there are no proxy's in between client and server they should be equivalent.
> Solr plugin fails to get client address
> ---------------------------------------
>
> Key: RANGER-1489
> URL: https://issues.apache.org/jira/browse/RANGER-1489
> Project: Ranger
> Issue Type: Bug
> Components: plugins
> Affects Versions: 0.6.3, 1.0.0
> Reporter: Yan
> Assignee: Yan
> Priority: Minor
>
> A immediate consequence is that IP-range conditions all fail for Solr authorizations.
> context.getHttpHeader("REMOTE_ADDR") is used; instead context.getRemoteAddr() is more appropriate.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)