Closed Bug 305732 Opened 19 years ago Closed 15 years ago

Firefox does not recognise the 'Complete' state of the lingo cmd getStreamStatus(id)

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: jobej, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

I have a director sw movie that sends data to a server using the Lingo function,
stateID = postNetText(url, data).  The state could be Connecting, Started,
InProgress, Complete, or "Error".  We get this state by using the Lingo
function,getStreamStatus(stateID).state 
For test purposes, we disconnect our network connection to ensure our
handshaking system works, everthing works ok until we reconnect to the network.
 The data is successfully sent to the server URL or backup URL but the sw movie
hangs as the state is still on 'Connecting' and not 'Complete'.
I thought this was a issue with the lingo code but this works fine in IE (it
recognises the streamStatus is Complete) so i'm 80% certain the issue lies
within the firefox browser but i could be wrong.

Any help with this issue would be greatly appreciated.

Thanks.

Reproducible: Always

Steps to Reproduce:
1. Open the html file with the embedded sw movie
2. When the test is loaded, click on start to do the test.
3. Just before finishing the test, disconnect your network connection.
4. Click on Finish to send the test results to the URL.
5. After the correct messages ouput by the handshaking system, reconnect your
network connection. 

Actual Results:  
The shockwave movie keeps sending the test results to the URL, and does not end
as the state from the streamStatus is 'Connecting' and not 'Complete'.
This only happens in the firefox browser.


Expected Results:  
After the shockwave movie sucessfully sent the test results to the URL, the
movie should then end as the state from the streamStatus will be 'Complete'.
The lingo code for sending the data to the URL and checking the state of this is
as follows :-
  if gTestURL.length<2 then
    go to "ENDExam"  
  else 
    if gAttemptCount<10 then
      --alert("gAttemptCount is " & gAttemptCount)
      gStartTimeSending = the ticks
      xmlout=gMyResults.getXML()
      infoList = [:]
      infoList.addProp(#answers, xmlout)
      infoList = ["answers":xmlout]
      gSentToBackUpURL = false
      gPLoadedID = postNetText(gTestURL, infoList)       
    else if gBackupURL.length>=2 then
      alert("There is an error sending results to the Main Server."&RETURN&"To
send your results to the backup server, testwise needs your
permission."&RETURN&"Please choose Allow on the following dialog
screen."&RETURN&"If this persists contact technical support for further help.")
      alert("Please be patient and do not close your browser.")
      xmlout=gMyResults.getXML()
      infoList = [:]
      infoList.addProp(#answers, xmlout)
      infoList = ["answers":xmlout]
      gSentToBackUpURL = true
      gPLoadedID = postNetText(gBackupURL, infoList)
      
      gAttemptCount = 0
    else
      alert("Testwise is having difficulty communicating with your server.
"&RETURN&" Please be patient and do not close your browser. "&RETURN&"If this
persists contact technical support for further help.")
      gAttemptCount = 0
    end if
  end if  

 if getStreamStatus(gPLoadedID).state = "Error" then
    gAttemptCount=gAttemptCount+1
    -- added by jobej 29-09-04
    gSecondsWaiting  = value((the ticks - gStartTimeSending)/60.0) + gSecondsWaiting
    if(gSecondsWaiting > 80) then
      gSecondsWaiting = 0
      alert("The network is busy so please be patient and do not close your
browser.")
    end if     
    go to "RepeatSend"
  else if getStreamStatus(gPLoadedID).state = "Complete" then
    if(gSentToBackUpURL = true) then
      alert("We have sent your results to the backup
server:"&RETURN&string(gBackupURL)&RETURN&"Testwise did this as it couldn't send
the results to the main server." &RETURN&"Please contact Technical Support and
inform them of this.")
    end if  
    go to "ENDExam"
  else if (getStreamStatus(gPLoadedID).state = "Connecting")  and
(gDefaultBrowser = "Firefox") then
    gAttemptCount=gAttemptCount+1
    gSecondsWaiting  = value((the ticks - gStartTimeSending)/60.0) + gSecondsWaiting
    if(gSecondsWaiting > 80) then
      gSecondsWaiting = 0
      alert("The network is busy so please be patient and do not close your
browser.")
    end if     
    go to "RepeatSend" 
  else
    go to the frame -- Loop Frame
  end if  

This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Version: unspecified → 1.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.3 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.