On Thu, Nov 20, 2008 at 11:26 AM, Citron, David <[EMAIL PROTECTED]>wrote:

> Kevin,
>
> Sorry, I wasn't clear. iGoogle/Orkut Developer Sandboxes both appear to
> use current builds of Shindig, since every time a change goes into
> Shindig, I see it reflected on the iGoogle/Orkut developer sandboxes
> (including this breakage).
>
> Just wondering how often they take updates, aka. how soon they will have
> your fix.


Ahh, sorry. We generally update the sandbox environment weekly, though we
frequently update more often than that.


>
>
> Thanks!
> Dave
>
> -----Original Message-----
> From: Kevin Brown [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 20, 2008 2:16 PM
> To: [email protected]
> Subject: Re: svn commit: r719145 - in
> /incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/g
> adgets: render/RenderingContentRewriter.java spec/MessageBundle.java
>
> On Thu, Nov 20, 2008 at 11:03 AM, Citron, David
> <[EMAIL PROTECTED]>wrote:
>
> > Great! Thanks!
> >
> > What's the update schedule for iGoogle/Orkut?
>
>
> Those are different products with different engineering teams and
> different
> release cycles. What does it have to do with this change?
>
>
> >
> >
> > Thanks,
> > Dave
> >
> > -----Original Message-----
> > From: Kevin Brown [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, November 20, 2008 1:45 PM
> > To: [email protected]
> > Subject: Re: svn commit: r719145 - in
> >
> /incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/g
> > adgets: render/RenderingContentRewriter.java spec/MessageBundle.java
> >
> > Fixed.
> >
> > This is why we write tests.
> >
> > On Thu, Nov 20, 2008 at 10:00 AM, Citron, David
> > <[EMAIL PROTECTED]>wrote:
> >
> > > BTW, a fix that works for me locally is:
> > >
> > > Index:
> > src/main/java/org/apache/shindig/gadgets/spec/MessageBundle.java
> > > ===================================================================
> > > --- src/main/java/org/apache/shindig/gadgets/spec/MessageBundle.java
> > > (revision 719292)
> > > +++ src/main/java/org/apache/shindig/gadgets/spec/MessageBundle.java
> > > (working copy)
> > > @@ -86,6 +86,7 @@
> > >     }
> > >     messages = Collections.unmodifiableMap(merged);
> > >     languageDirection = dir;
> > > +    jsonString = new JSONObject(messages).toString();
> > >   }
> > >
> > >    private MessageBundle() {
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Citron, David [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, November 20, 2008 12:40 PM
> > > To: [email protected]
> > > Subject: Re: svn commit: r719145 - in
> > >
> >
> /incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/g
> > > adgets: render/RenderingContentRewriter.java spec/MessageBundle.java
> > >
> > > Hi!
> > >
> > > Commit r719145 broke the messagebundles behavior.
> > >
> > > AbstractMessageBundleFactory.getBundle() gets parent and child
> > > MessageBundles, then creates and returns a new MessageBundle that's
> > the
> > > union of both.
> > >
> > > However, MessageBundle(MessageBundle parent, MessageBundle child)
> > leaves
> > > this.jsonString null, so when
> > > RenderingContentRewriter.injectMessageBundles() calls
> > > bundle.toJSONString(), it just gets null back.
> > >
> > > This results in JavaScript being generated like
> > > gadgets.Prefs.setMessages_(), which effectively sets the
> > prefs.messages
> > > value to undefined, causing any gadget that uses message bundles to
> > fail
> > > on the first prefs.getMsg() call.
> > >
> > > iGoogle/Orkut are broken as a result.
> > >
> > > Thanks,
> > > Dave
> > >
> > >
> >
>

Reply via email to