Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. start a new project and this copy this code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Button x="298" y="273" label="test me" click="sendMsg()"/>
<mx:TextInput x="261" y="243" id="input"/>
<mx:HTTPService id = "testSet" url = "http://www.nrutiben.com/cgi-bin/test-set" result="handle(event)" fault="fault(event)"/>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
public function sendMsg():void
{ var o:Object = new Object; o["stuff"] = input.text; testSet.send(o); }public function handle(e:ResultEvent):void
{ Alert.show("there was no fault " + e.result.ROOT.STUFF); }public function fault(e:Event):void
{ Alert ("there was an error "); } ]]
>
</mx:Script>
</mx:Application>
2. this is server code (perl 5.8 running as CGI not mod_perl)
#!/usr/bin/perl -w
use strict;
use CGI;
use FileHandle;
my $cgi = new CGI;
print $cgi->header;
my $fh;
open $fh, ">>", "../test-set-log.txt" || die "cant open $!";
my $now = localtime;
my $stuff = $cgi->param('stuff');
print $fh "$now: $stuff\n";
close($fh);
- return the 'stuff' back to FLEX to ensure it was the same stuff
print "<ROOT><STUFF>$stuff</STUFF></ROOT>";
3. run the flex project
4. type in the box "this is 1" click the button to send to server, type in "this is 2" and click button... repeat until "this is 11"
5. wait 1-7 minutes
6. check the server output file "../test-set-log.txt"
Actual Results:
%tail -20 ../test-set-log.txt
Wed Jul 22 11:00:32 2009: this is one
Wed Jul 22 11:02:27 2009: this is 2
Wed Jul 22 11:02:34 2009: this is 3
Wed Jul 22 11:02:38 2009: this is 4
Wed Jul 22 11:02:42 2009: this is 5
Wed Jul 22 11:03:01 2009: this is 6
Wed Jul 22 11:03:06 2009: this is 7
Wed Jul 22 11:04:30 2009: this is 8
Wed Jul 22 11:05:05 2009: this is 7
Wed Jul 22 11:06:12 2009: this is 9
Wed Jul 22 11:06:17 2009: this is 10
Wed Jul 22 11:06:20 2009: this is 11
Wed Jul 22 11:09:58 2009: this is 6
i have performed this many many times. if you run the test and shut down the browser quickly, it may/probably wont happen, if you leave the browser open, go refresh your coffee mug, it will happen 95+% of the time.
Expected Results:
for the httpservice not to repeat the call.
Workaround (if any): none, and this is a show stopper.
I am perfectly willing to admit that i am a newbie and could be missing something in my code, but i have been looking into this for 22 hours straight and am at wits end. pls help.
i am running XP pro, new machine, up-to-date PC software.
this happens in both IE (8.0.6) as well as firefox (3.0.1)
i have run the update tool in Flex Builder 3, so i ASSUME i have the latest GA code.