Hi all, After getting my UserPref-Dialog to work (see other thread), I'm now trying to get the Persistence of my UserPref, using the AppDataService as proposed e.g. in [1]. I have successfully set up my AppDataService by implementing the AppDataService interface and binding it to the AppDataService.class in my AbstractModule. My intention is to use the AppDataService to e.g. set the UserPreferences upon clicking the "save" Button in the rendered Gadget-Preference-Panel. I understand that I need to implement my own UserPrefStore (in shindig-container.js) and the Function "shindig.DefaultUserPrefStore.prototype.savePrefs" is indeed called. However I'm currently missing the connection to my AppDataServce in the backend. I tried using the "osapi.appdata.update()" function as proposed in [1] but sadly my AppDataService isn't called.
I'm getting an error message related a "malformed security token" (is this a good "sign"?): > 08.11.2010 17:02:33 org.apache.shindig.auth.AuthenticationServletFilter > doFilter > INFO: Malformed security token -1:-1:*::*:0:default > org.apache.shindig.auth.SecurityTokenException: Malformed security token > at > org.apache.shindig.auth.BasicSecurityTokenCodec.createToken(BasicSecurityTokenCodec.java:82) > at > org.apache.shindig.auth.DefaultSecurityTokenCodec.createToken(DefaultSecurityTokenCodec.java:68) > at > org.apache.shindig.auth.UrlParameterAuthenticationHandler.getSecurityTokenFromRequest(UrlParameterAuthen > ticationHandler.java:56) > at > org.apache.shindig.auth.AuthenticationServletFilter.doFilter(AuthenticationServletFilter.java:84) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440) > at > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) > at > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) So does this mean I am on the right way and just need to correct something regarding the security token or am I confusing some key concept of shindig in this aspect? -Peter [1] http://www.mail-archive.com/[email protected]/msg01938.html
