[jira] [Commented] (SOLR-7648) Authorization context doesn't expose remote ip/host

2015-06-08 Thread Ishan Chattopadhyaya (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14578035#comment-14578035
 ] 

Ishan Chattopadhyaya commented on SOLR-7648:


I just verified, and getRemoteHost() returns the correct value even when 
REMOTE_HOST wasn't passed in explicitly.

 Authorization context doesn't expose remote ip/host
 ---

 Key: SOLR-7648
 URL: https://issues.apache.org/jira/browse/SOLR-7648
 Project: Solr
  Issue Type: Bug
Reporter: Ishan Chattopadhyaya
 Attachments: SOLR-7648.patch


 One of the solutions is to expose the entire servlet request object. Another 
 way is to expose only the remote address/host.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7648) Authorization context doesn't expose remote ip/host

2015-06-08 Thread Anshum Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14578068#comment-14578068
 ] 

Anshum Gupta commented on SOLR-7648:


I'll commit this. Thanks.

 Authorization context doesn't expose remote ip/host
 ---

 Key: SOLR-7648
 URL: https://issues.apache.org/jira/browse/SOLR-7648
 Project: Solr
  Issue Type: Bug
Reporter: Ishan Chattopadhyaya
 Fix For: 5.2.1

 Attachments: SOLR-7648.patch


 One of the solutions is to expose the entire servlet request object. Another 
 way is to expose only the remote address/host.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-7648) Authorization context doesn't expose remote ip/host

2015-06-08 Thread Anshum Gupta (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-7648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14577349#comment-14577349
 ] 

Anshum Gupta commented on SOLR-7648:


Looking at the java docs for .getRemoteHost(), 
authorizationContext.getHeader(REMOTE_HOST) should give you just that.

 Authorization context doesn't expose remote ip/host
 ---

 Key: SOLR-7648
 URL: https://issues.apache.org/jira/browse/SOLR-7648
 Project: Solr
  Issue Type: Bug
Reporter: Ishan Chattopadhyaya
 Attachments: SOLR-7648.patch


 One of the solutions is to expose the entire servlet request object. Another 
 way is to expose only the remote address/host.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org