I think I know whats the problem, I remove the check for the
UnsupportedOperationException in the
BlobCrypterSecurityTokenCodec.fromToken to get activeUrl.

The gadget handler code use the "delegator" to mock the security token
instance and miss setting the active URL.

Hence when the call to token.getActiveUrl it chokes.

Honestly I think the whole delegator stuff is not working well.  I
will put up the patch to fix this.

- Henry

On Wed, Mar 7, 2012 at 8:11 AM, daviesd <[email protected]> wrote:
> Henry,
>
> I changed our security token implementation to extend AbstractSecurityToken
> instead of just implementing SecurityToken.  No difference.  As I said, if I
> use a non-encrypted security token I don't see this error.  I'm fighting a
> couple of issues (including the one I mentioned to Paul earlier concerning
> the google collection changes he made).  Getting a little frustrating
> getting things back in synch.
>
> doug
>
>
> On 3/6/12 4:41 PM, "Henry Saputra" <[email protected]> wrote:
>
>> Do you extend the OurDefaultSecurityTokenCodec from AbstractSecurityToken?
>>
>> If you do then you dont need to do anything I think
>>
>> - Henry
>>
>> On Tue, Mar 6, 2012 at 1:03 PM, daviesd <[email protected]> wrote:
>>> Ya it's the difference between insecure and secure. ?If I use insecure
>>> tokens it works. ?If I switch to secure (our default) it gets this exception
>>> when encoding the token.
>>>
>>> doug
>>>
>>>
>>> On 3/6/12 3:29 PM, "Henry Saputra" <[email protected]> wrote:
>>>
>>>> Hey Doug,
>>>>
>>>> Sorry about the trouble.
>>>>
>>>> How do you reproduce this?
>>>>
>>>> - Henry
>>>>
>>>> On Tue, Mar 6, 2012 at 12:13 PM, daviesd <[email protected]> wrote:
>>>>> Henry,
>>>>>
>>>>> I¹m having issues with the fix for SHINDIG-1719. ? The stacktrace looks as
>>>>> follows:
>>>>>
>>>>> Mar 6, 2012 3:04:20 PM
>>>>> org.apache.shindig.gadgets.servlet.GadgetsHandlerService
>>>>> createErrorResponse
>>>>> WARNING: Error handling request:
>>>>> java.lang.UnsupportedOperationException: Unsupported function: 
>>>>> getActiveUrl
>>>>> ? ?at
>>>>>
> org.apache.shindig.protocol.conversion.BeanDelegator$DelegateInvocationHand>>>>
> l
>>>>> er.invoke(BeanDelegator.java:257)
>>>>> ? ?at $Proxy90.getActiveUrl(Unknown Source)
>>>>> ? ?at
>>>>>
> org.apache.shindig.auth.BlobCrypterSecurityToken.fromToken(BlobCrypterSecur>>>>
> i
>>>>> tyToken.java:74)
>>>>> ? ?at
>>>>>
> org.apache.shindig.auth.BlobCrypterSecurityTokenCodec.encodeToken(BlobCrypt>>>>
> e
>>>>> rSecurityTokenCodec.java:171)
>>>>>
>>>>> Ideas?
>>>>>
>>>>> Doug
>>>>
>>>
>>>
>>
>
>

Reply via email to