You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Colin Ma <ju...@intel.com> on 2015/08/14 09:12:22 UTC

Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/
-----------------------------------------------------------

Review request for Sqoop.


Repository: sqoop-sqoop2


Description
-------

There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.


Diffs
-----

  core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
  core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 

Diff: https://reviews.apache.org/r/37472/diff/


Testing
-------


Thanks,

Colin Ma


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Jarek Cecho <ja...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/#review95518
-----------------------------------------------------------

Ship it!


Ship It!

- Jarek Cecho


On Aug. 14, 2015, 7:42 a.m., Colin Ma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37472/
> -----------------------------------------------------------
> 
> (Updated Aug. 14, 2015, 7:42 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
>   core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
>   security/src/main/java/org/apache/sqoop/security/authorization/AuthorizationEngine.java 57e0da5 
>   server/src/main/java/org/apache/sqoop/handler/AuthorizationRequestHandler.java a730413 
>   server/src/main/java/org/apache/sqoop/handler/JobRequestHandler.java 0d06085 
>   server/src/main/java/org/apache/sqoop/handler/LinkRequestHandler.java f056686 
>   server/src/main/java/org/apache/sqoop/server/RequestContext.java 01aed41 
> 
> Diff: https://reviews.apache.org/r/37472/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin Ma
> 
>


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Colin Ma <ju...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/
-----------------------------------------------------------

(Updated Aug. 14, 2015, 7:42 a.m.)


Review request for Sqoop.


Repository: sqoop-sqoop2


Description
-------

There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.


Diffs (updated)
-----

  core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
  core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
  security/src/main/java/org/apache/sqoop/security/authorization/AuthorizationEngine.java 57e0da5 
  server/src/main/java/org/apache/sqoop/handler/AuthorizationRequestHandler.java a730413 
  server/src/main/java/org/apache/sqoop/handler/JobRequestHandler.java 0d06085 
  server/src/main/java/org/apache/sqoop/handler/LinkRequestHandler.java f056686 
  server/src/main/java/org/apache/sqoop/server/RequestContext.java 01aed41 

Diff: https://reviews.apache.org/r/37472/diff/


Testing
-------


Thanks,

Colin Ma


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Dian Fu <di...@gmail.com>.

> On Aug. 14, 2015, 7:31 a.m., Dian Fu wrote:
> > LGTM. A minor issue: In method RequestContext#getUserName(), there is code like this: AuthenticationManager.getAuthenticationHandler().isSecurityEnabled(). This should be fixed accordingly too.
> 
> Dian Fu wrote:
>     Should also change all reference to AuthorizationManager.getAuthorizationHandler() accordingly too.
> 
> Colin Ma wrote:
>     Sorry, the patch miss some files. I'll update the patch soon.

+1 to the latest patch.


- Dian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/#review95398
-----------------------------------------------------------


On Aug. 14, 2015, 7:42 a.m., Colin Ma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37472/
> -----------------------------------------------------------
> 
> (Updated Aug. 14, 2015, 7:42 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
>   core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
>   security/src/main/java/org/apache/sqoop/security/authorization/AuthorizationEngine.java 57e0da5 
>   server/src/main/java/org/apache/sqoop/handler/AuthorizationRequestHandler.java a730413 
>   server/src/main/java/org/apache/sqoop/handler/JobRequestHandler.java 0d06085 
>   server/src/main/java/org/apache/sqoop/handler/LinkRequestHandler.java f056686 
>   server/src/main/java/org/apache/sqoop/server/RequestContext.java 01aed41 
> 
> Diff: https://reviews.apache.org/r/37472/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin Ma
> 
>


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Dian Fu <di...@gmail.com>.

> On Aug. 14, 2015, 7:31 a.m., Dian Fu wrote:
> > LGTM. A minor issue: In method RequestContext#getUserName(), there is code like this: AuthenticationManager.getAuthenticationHandler().isSecurityEnabled(). This should be fixed accordingly too.

Should also change all reference to AuthorizationManager.getAuthorizationHandler() accordingly too.


- Dian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/#review95398
-----------------------------------------------------------


On Aug. 14, 2015, 7:12 a.m., Colin Ma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37472/
> -----------------------------------------------------------
> 
> (Updated Aug. 14, 2015, 7:12 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
>   core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
> 
> Diff: https://reviews.apache.org/r/37472/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin Ma
> 
>


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Colin Ma <ju...@intel.com>.

> On Aug. 14, 2015, 7:31 a.m., Dian Fu wrote:
> > LGTM. A minor issue: In method RequestContext#getUserName(), there is code like this: AuthenticationManager.getAuthenticationHandler().isSecurityEnabled(). This should be fixed accordingly too.
> 
> Dian Fu wrote:
>     Should also change all reference to AuthorizationManager.getAuthorizationHandler() accordingly too.

Sorry, the patch miss some files. I'll update the patch soon.


- Colin


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/#review95398
-----------------------------------------------------------


On Aug. 14, 2015, 7:12 a.m., Colin Ma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37472/
> -----------------------------------------------------------
> 
> (Updated Aug. 14, 2015, 7:12 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
>   core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
> 
> Diff: https://reviews.apache.org/r/37472/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin Ma
> 
>


Re: Review Request 37472: SQOOP-2483: Sqoop2: Findbugs: Fix singleton class problem in AuthenticationManager and AuthorizationManager

Posted by Dian Fu <di...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37472/#review95398
-----------------------------------------------------------


LGTM. A minor issue: In method RequestContext#getUserName(), there is code like this: AuthenticationManager.getAuthenticationHandler().isSecurityEnabled(). This should be fixed accordingly too.

- Dian Fu


On Aug. 14, 2015, 7:12 a.m., Colin Ma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/37472/
> -----------------------------------------------------------
> 
> (Updated Aug. 14, 2015, 7:12 a.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Repository: sqoop-sqoop2
> 
> 
> Description
> -------
> 
> There has some problems when using singleton pattern in AuthenticationManager and AuthorizationManager.
> 
> 
> Diffs
> -----
> 
>   core/src/main/java/org/apache/sqoop/security/AuthenticationManager.java 603643f 
>   core/src/main/java/org/apache/sqoop/security/AuthorizationManager.java 7699862 
> 
> Diff: https://reviews.apache.org/r/37472/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Colin Ma
> 
>