You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Shinichiro Abe (JIRA)" <ji...@apache.org> on 2011/09/20 06:08:08 UTC

[jira] [Created] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Input-able response lifetime for Active Directory authority
-----------------------------------------------------------

                 Key: CONNECTORS-257
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
             Project: ManifoldCF
          Issue Type: Improvement
          Components: Active Directory authority
    Affects Versions: ManifoldCF 0.2, ManifoldCF 0.1, ManifoldCF 0.3
            Reporter: Shinichiro Abe
            Assignee: Shinichiro Abe
            Priority: Minor
             Fix For: ManifoldCF 0.4
         Attachments: CONNECTORS-257-1.patch

The access tokens are cached for one minute, and up to 1000 different
users' access tokens will be cached at any one time.

The access token's cache per username remains idle before expiring.
Its expiration time depends response lifetime, and 
expiration time is updated after looking up the cache.
Currently response lifetime is 1 minute.

Since I want to access Active Directory frequently, 
I make this response lifetime to be input-able for users.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108456#comment-13108456 ] 

Karl Wright commented on CONNECTORS-257:
----------------------------------------

I also found a technical problem - sorry!

The line:
  protected static long responseLifetime = 60000L;

... obviously cannot remain the same, since it is a static.  Instead you will need to pass the response lifetime as an argument to the AuthorizationResponseDescription class - either that, or make that class non-static and move the responseLifetime variable to be a non-static member variable of the connector class.  Otherwise individual authorities will have their cache lifetimes conflated.


> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shinichiro Abe updated CONNECTORS-257:
--------------------------------------

    Attachment: CONNECTORS-257-1.patch

> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108454#comment-13108454 ] 

Karl Wright commented on CONNECTORS-257:
----------------------------------------

The patch looks technically correct.  A couple of things I recommend changing, however:
(1) A point of English: Let's call it "Cache lifetime" in the UI and in the configuration data, not "Response lifetime".
(2) It's probably better to parse the cache lifetime into a numeric member variable (a long) at either connect() or getSession() time.  At getSession() time you can report an error if the number is incorrect.
(3) When you parse the cache lifetime, you need to be careful because the parameter may be null (e.g. from an older installation).


> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117028#comment-13117028 ] 

Shinichiro Abe commented on CONNECTORS-257:
-------------------------------------------

r1177173
                
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch, CONNECTORS-257-3.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shinichiro Abe updated CONNECTORS-257:
--------------------------------------

    Description: 
The access tokens are cached for one minute, and up to 1000 different
users' access tokens will be cached at any one time.

The access token's cache per username remains idle before expiring.
Its expiration time depends response lifetime, and 
expiration time is updated after looking up the cache.
Currently response lifetime is 1 minute.

Since I want not to access Active Directory frequently, 
I make this response lifetime to be input-able for users.



  was:
The access tokens are cached for one minute, and up to 1000 different
users' access tokens will be cached at any one time.

The access token's cache per username remains idle before expiring.
Its expiration time depends response lifetime, and 
expiration time is updated after looking up the cache.
Currently response lifetime is 1 minute.

Since I want to access Active Directory frequently, 
I make this response lifetime to be input-able for users.




> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Karl Wright (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Wright updated CONNECTORS-257:
-----------------------------------

    Attachment: CONNECTORS-257-3.patch

Here is a patch that makes the LRU parameters non-static, now that you are setting them per instance.  I hope this clarifies the issue for you.

                
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch, CONNECTORS-257-3.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shinichiro Abe updated CONNECTORS-257:
--------------------------------------

    Attachment: CONNECTORS-257-2.patch

Sorry for delay. This patch is including LRU cache. But changing static class into member is not done. What should I do?
                
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Karl Wright (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115313#comment-13115313 ] 

Karl Wright commented on CONNECTORS-257:
----------------------------------------

Feel free to commit patch 3, if it works for you and you agree that it is correct.

                
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch, CONNECTORS-257-3.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shinichiro Abe resolved CONNECTORS-257.
---------------------------------------

    Resolution: Fixed
    
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch, CONNECTORS-257-3.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Shinichiro Abe (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116957#comment-13116957 ] 

Shinichiro Abe commented on CONNECTORS-257:
-------------------------------------------

Thank you. I confirmed patch 3. I'll commit soon.
                
> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch, CONNECTORS-257-2.patch, CONNECTORS-257-3.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CONNECTORS-257) Input-able response lifetime for Active Directory authority

Posted by "Karl Wright (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CONNECTORS-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114626#comment-13114626 ] 

Karl Wright commented on CONNECTORS-257:
----------------------------------------

Any progress on this ticket?  If you want, I can perhaps attach an updated patch this evening describing what I think needs to be done.


> Input-able response lifetime for Active Directory authority
> -----------------------------------------------------------
>
>                 Key: CONNECTORS-257
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-257
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Active Directory authority
>    Affects Versions: ManifoldCF 0.1, ManifoldCF 0.2, ManifoldCF 0.3
>            Reporter: Shinichiro Abe
>            Assignee: Shinichiro Abe
>            Priority: Minor
>             Fix For: ManifoldCF 0.4
>
>         Attachments: CONNECTORS-257-1.patch
>
>
> The access tokens are cached for one minute, and up to 1000 different
> users' access tokens will be cached at any one time.
> The access token's cache per username remains idle before expiring.
> Its expiration time depends response lifetime, and 
> expiration time is updated after looking up the cache.
> Currently response lifetime is 1 minute.
> Since I want not to access Active Directory frequently, 
> I make this response lifetime to be input-able for users.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira