You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Ryan Baxter (JIRA)" <ji...@apache.org> on 2012/07/05 21:28:37 UTC

[jira] [Resolved] (SHINDIG-1814) Unserializable cache keys

     [ https://issues.apache.org/jira/browse/SHINDIG-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Baxter resolved SHINDIG-1814.
----------------------------------

    Resolution: Fixed

Committed revision 1357819.
                
> Unserializable cache keys
> -------------------------
>
>                 Key: SHINDIG-1814
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1814
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Java
>    Affects Versions: 2.5.0-beta2
>            Reporter: Erik BI
>              Labels: patch
>             Fix For: 2.5.0, 2.5.0-beta3
>
>         Attachments: UriToString.patch, UriToString.patch
>
>
> Unserializable cache keys:
> Right now the Shindig Caches the 'messageBundles' and 'gadgetSpecs' with Uri object as key, but for some cache implementation, for example, DynaCache, it requires the key to be serializable, which Uri is not. 
> There are two solution for this, one, make Uri serializable; 2. using a 'string' for the key, uri.toString is good enough. Propose to use "string"
> The reason for this is that Uri is a complex object that includes a Uri parsers so you would need to be VERY careful to get this right.  It would be trivial to use a string key instead.

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