You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Henry Saputra (Created) (JIRA)" <ji...@apache.org> on 2012/03/02 00:34:58 UTC

[jira] [Created] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
------------------------------------------------------------------------------------------------------------------------------------

                 Key: SHINDIG-1719
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
             Project: Shindig
          Issue Type: Bug
          Components: Java
    Affects Versions: 2.5.0
            Reporter: Henry Saputra
            Priority: Minor


I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.

If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221205#comment-13221205 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------



bq.  On 2012-03-02 12:52:49, Stanton Sievers wrote:
bq.  > Hi Henry,
bq.  > 
bq.  > You should also remove the logic in org.apache.shindig.auth.BlobCrypterSecurityToken.fromToken(SecurityToken) where we eat the UnsupportedOperationException when calling getActiveUrl().  
bq.  > 
bq.  > I'm also looking at org.apache.shindig.gadgets.oauth.GadgetOAuthCallbackGenerator.checkGadgetCanRender(SecurityToken, OAuthArguments, OAuthResponseParams) and it seems like a value of "null" here is going to throw other exceptions when create a Uri.parse.  I'm wondering if we can handle "null" more gracefully here... although we really weren't handling UnsupportedOperationException gracefully here either.
bq.  > 
bq.  > Do you know why the exception was being thrown in the first place?  Looking at the rest of the APIs in SecurityToken that one strikes me as odd.

Thanks for the BlobCrypterSecurityToken.fromToken change. 
 
Yeah, I am aware of the checkGadgetCanRender call. I wouldnt worry about it tho bc most of times the UrlParameterAuthenticationHandler should do its job to inject the right activeUrl to the token.


- Henry


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


On 2012-03-01 23:38:41, Henry Saputra wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4135/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-03-01 23:38:41)
bq.  
bq.  
bq.  Review request for shindig.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Simplify the SecurityToken.getActiveUrl implementation and definition.
bq.  
bq.  If not set simply return null should be suffice.
bq.  
bq.  
bq.  This addresses bug SHINDIG-1719.
bq.      https://issues.apache.org/jira/browse/SHINDIG-1719
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 
bq.  
bq.  Diff: https://reviews.apache.org/r/4135/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Henry
bq.  
bq.


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221217#comment-13221217 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------


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

(Updated 2012-03-02 19:56:52.007316)


Review request for shindig.


Changes
-------

Updated diff per review from Stanton


Summary
-------

Simplify the SecurityToken.getActiveUrl implementation and definition.

If not set simply return null should be suffice.


This addresses bug SHINDIG-1719.
    https://issues.apache.org/jira/browse/SHINDIG-1719


Diffs (updated)
-----

  trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenTest.java 1295758 
  trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 
  trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
  trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 

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


Testing (updated)
-------

Updated unit test and run apps in common container


Thanks,

Henry


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221949#comment-13221949 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------


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

Ship it!


LGTM

- Stanton


On 2012-03-02 19:56:52, Henry Saputra wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4135/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-03-02 19:56:52)
bq.  
bq.  
bq.  Review request for shindig.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Simplify the SecurityToken.getActiveUrl implementation and definition.
bq.  
bq.  If not set simply return null should be suffice.
bq.  
bq.  
bq.  This addresses bug SHINDIG-1719.
bq.      https://issues.apache.org/jira/browse/SHINDIG-1719
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenTest.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 
bq.  
bq.  Diff: https://reviews.apache.org/r/4135/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  Updated unit test and run apps in common container
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Henry
bq.  
bq.


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220487#comment-13220487 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------


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

Review request for shindig.


Summary
-------

Simplify the SecurityToken.getActiveUrl implementation and definition.

If not set simply return null should be suffice.


This addresses bug SHINDIG-1719.
    https://issues.apache.org/jira/browse/SHINDIG-1719


Diffs
-----

  trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
  trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 
  trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 

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


Testing
-------


Thanks,

Henry


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222494#comment-13222494 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------


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


Committed as 1297157

- Henry


On 2012-03-02 19:56:52, Henry Saputra wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4135/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-03-02 19:56:52)
bq.  
bq.  
bq.  Review request for shindig.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Simplify the SecurityToken.getActiveUrl implementation and definition.
bq.  
bq.  If not set simply return null should be suffice.
bq.  
bq.  
bq.  This addresses bug SHINDIG-1719.
bq.      https://issues.apache.org/jira/browse/SHINDIG-1719
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    trunk/java/common/src/test/java/org/apache/shindig/auth/BlobCrypterSecurityTokenTest.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 
bq.  
bq.  Diff: https://reviews.apache.org/r/4135/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  Updated unit test and run apps in common container
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Henry
bq.  
bq.


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Assignee: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>             Fix For: 2.5.0
>
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "jiraposter@reviews.apache.org (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220888#comment-13220888 ] 

jiraposter@reviews.apache.org commented on SHINDIG-1719:
--------------------------------------------------------


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


Hi Henry,

You should also remove the logic in org.apache.shindig.auth.BlobCrypterSecurityToken.fromToken(SecurityToken) where we eat the UnsupportedOperationException when calling getActiveUrl().  

I'm also looking at org.apache.shindig.gadgets.oauth.GadgetOAuthCallbackGenerator.checkGadgetCanRender(SecurityToken, OAuthArguments, OAuthResponseParams) and it seems like a value of "null" here is going to throw other exceptions when create a Uri.parse.  I'm wondering if we can handle "null" more gracefully here... although we really weren't handling UnsupportedOperationException gracefully here either.

Do you know why the exception was being thrown in the first place?  Looking at the rest of the APIs in SecurityToken that one strikes me as odd.

- Stanton


On 2012-03-01 23:38:41, Henry Saputra wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/4135/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2012-03-01 23:38:41)
bq.  
bq.  
bq.  Review request for shindig.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  Simplify the SecurityToken.getActiveUrl implementation and definition.
bq.  
bq.  If not set simply return null should be suffice.
bq.  
bq.  
bq.  This addresses bug SHINDIG-1719.
bq.      https://issues.apache.org/jira/browse/SHINDIG-1719
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BasicSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/BlobCrypterSecurityToken.java 1295758 
bq.    trunk/java/common/src/main/java/org/apache/shindig/auth/SecurityToken.java 1295758 
bq.  
bq.  Diff: https://reviews.apache.org/r/4135/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Henry
bq.  
bq.


                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

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

Henry Saputra resolved SHINDIG-1719.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.0
         Assignee: Henry Saputra

Rev 1297157
                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0
>            Reporter: Henry Saputra
>            Assignee: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>             Fix For: 2.5.0
>
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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] [Closed] (SHINDIG-1719) Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl

Posted by "Paul Lindner (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner closed SHINDIG-1719.
---------------------------------


part of 2.5.0-beta1 release.

                
> Remove throwing UnsupportedOperationException with call to BlobCrypterSecurityToken.getActiveUrl and BasicSecurityToken.getActiveUrl
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1719
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1719
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.5.0-beta1
>            Reporter: Henry Saputra
>            Assignee: Henry Saputra
>            Priority: Minor
>              Labels: security_token, shidnig
>             Fix For: 2.5.0-beta1
>
>
> I dont see any value throwing UnsupportedOperationException in calling getActiveUrl method in basic and blob crypter security token.
> If not set simply return null should be suffice.

--
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