dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

walevet.proxyFor(id) wrong behavior #728

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when i use wavelet.proxyFor(id).reply("\nhello");

a new blip is not created. according to the logs in gae it is created and
everything looks ok, but no new blip is added to the wavelet.

i also tried to split the proxying to 2 steps:

Blip b=wavelet.reply("\nhello");
b.proxyFor(id);

in this case a new blip is created and added to a wavelet, but the avatar
and creator are still those of the robot. 

Original issue reported on code.google.com by ata...@gmail.com on 6 Apr 2010 at 1:39

GoogleCodeExporter commented 9 years ago
I assume you are doing this actively.  Did you explicitly call 

this.submit(wavelet, this.getRpcServerUrl());

Active ops must be submitted explicitly on a separate call.  If you have more 
question regarding this, please post 
it to the forum first, we can help you there to verify if this is really a bug. 
 Hope that helps, thanks!

Original comment by austin.c...@gmail.com on 8 Apr 2010 at 12:20

GoogleCodeExporter commented 9 years ago
Can you provide the full code you're using? (Or a minimal test case of it?) 

I know we did already try to hash this out in the forum, and we thought it was 
a bug 
there, but we need more code to replicate.

Thanks!

Original comment by pamela.fox on 8 Apr 2010 at 1:25

GoogleCodeExporter commented 9 years ago
well, there is not much code to add. 
i am not calling submit().
i am trying to do the exact thing i've successfully done with 
TextView doc = blip.getDocument();
doc.setAuthor(participantId); 
in v1.

i get a participant id that triggered my robot by submitting a form in one of 
the
blips via getModifiedBy().
then my robot creates a new blip in a basic manner.
when i do the following:

wavelet.reply("\nhello");
a new blip is created. the creator and avatar displayed are those of my robot.

then i try the following:
wavelet.proxyFor(participantId).reply("\nhello");

no new blip is added to the wave. just nothing. from the logs i add to the code 
i see
that the method is called and there are no exceptions. but there are also no 
blip.

i also tried to do it this way:
Blip b=wavelet.reply("\nhello");
b.proxyFor(participantId);

now the blip is added to the wavelet, but the creator and the avatar are again 
those
of my robots, exactly as if i would just call wavelet.reply("\nhello");

if this info is not enough - i can post the whole method, i just don't have the 
code
with me right now.

thanks!

Original comment by ata...@gmail.com on 8 Apr 2010 at 3:46