Github user janhoy commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/457#discussion_r222759422
  
    --- Diff: 
solr/core/src/java/org/apache/solr/security/AuthenticationPlugin.java ---
    @@ -52,11 +80,73 @@
       public abstract boolean doAuthenticate(ServletRequest request, 
ServletResponse response,
           FilterChain filterChain) throws Exception;
     
    +  /**
    +   * This method is called by SolrDispatchFilter in order to initiate 
authentication.
    +   * It does some standard metrics counting.
    +   */
    +  public final boolean authenticate(ServletRequest request, 
ServletResponse response, FilterChain filterChain) throws Exception {
    +    Timer.Context timer = requestTimes.time();
    +    requests.inc();
    +    try {
    +      return doAuthenticate(request, response, filterChain);
    +    } catch(Exception e) {
    +      numErrors.mark();
    +      throw e;
    --- End diff --
    
    Is this re-throw safe?


---

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

Reply via email to