drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudheeshkatkam <...@git.apache.org>
Subject [GitHub] drill pull request: DRILL-4354: Remove sessions in anonymous (auth...
Date Fri, 26 Feb 2016 03:15:10 GMT
Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/360#discussion_r54200801
  
    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/DrillRestServer.java
---
    @@ -102,4 +112,34 @@ public void dispose(DrillUserPrincipal principal) {
           // No-Op
         }
       }
    +
    +  // Provider which creates and cleanups DrillUserPrincipal for anonymous (auth disabled)
mode
    +  public static class AnonDrillUserPrincipalProvider implements Factory<DrillUserPrincipal>
{
    +    @Inject WorkManager workManager;
    +
    +    @RequestScoped
    +    @Override
    +    public DrillUserPrincipal provide() {
    +      return new AnonDrillUserPrincipal(workManager.getContext());
    +    }
    +
    +    @Override
    +    public void dispose(DrillUserPrincipal principal) {
    +      // If this worked it would have been clean to free the resources here, but there
are various scenarios
    --- End diff --
    
    Any [specific tickets](https://java.net/jira/browse/JERSEY/)?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message