bugGnash - The GNU Flash player - Bugs: bug #22334, XML.sendAndLoad() isn't implemented

 
 

bug #22334: XML.sendAndLoad() isn't implemented

Submitted by:  Tomas Groth <tgc>
Submitted on:  Sat 16 Feb 2008 05:46:48 PM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Tue 19 Feb 2008 12:07:04 PM UTC, comment #8:

Well, it's implemented now, for bugs file another item, with a failign testcase.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 18 Feb 2008 07:51:18 PM UTC, comment #7:

200 from HTTP is OK:
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success

See my attached modified version of your sendandload.as.
Note XML.sendAndLoad() should return boolean, not void.

(file #15070)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 18 Feb 2008 07:17:42 PM UTC, comment #6:

Gnash still shows a http 200 error in verbose mode, though to be fair, i don't know if the pp gets one as well... The real test is to print out the xml retrieved from the action, but since I don't know how to make an animation made with ming print something with the pp, I don't know how to test it...
Btw, the function still seems to return boolean, while it should return void...

Tomas Groth <tgc>
Mon 18 Feb 2008 06:13:40 PM UTC, comment #5:

Please try again now, your testcase was tested.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sun 17 Feb 2008 03:05:12 PM UTC, comment #4:

I just tested it with the Actionscript and php I attached earlier, and it didn't work - I get a http error 200.
Also I just had a quick look at the code, and it seems that the result-argument has been forgotten. This is how it is defined:
void sendAndLoad(url:String, resultXML:XML)
But it seems to be implemented as:
bool sendAndLoad(url:String)
I might have misunderstood the code, but for now it doesn't work.

Tomas Groth <tgc>
Sun 17 Feb 2008 02:04:00 PM UTC, comment #3:

Blindly implemented, no support for custom contentType yet (will be log_unimpl when user specifies one).
NOTHING tested, except building, so I'd keep open till we
have some actual testing being done.

Tgc, try to break it with AS code ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 16 Feb 2008 08:13:33 PM UTC, comment #2:

Medra pointed out there's a contentType property of the ActionScript XML class.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 16 Feb 2008 07:32:41 PM UTC, comment #1:

It seems the data format that XML.sendAndLoad() uses for POST is a bit strange: it is raw post data and not form-encoded - ie it does not include variable/content data sets.
Instead it seems to just send the XML as a text string as data.
I've made a simple test with both client (actionscipt) and server (php) to inspect the dataformat, and attached them.

(file #15051, file #15052)

Tomas Groth <tgc>
Sat 16 Feb 2008 05:46:48 PM UTC, original submission:

The XML.sendAndLoad() function isn't implemented. Its use is very widespread with webanimation, and IMHO it should therefore be implemented ASAP.
I'm looking for a simple testcase, but until then the youtube player uses sendAndLoad() it after every movie to get info about related videos.

Tomas Groth <tgc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #15070:  sendandload.as added by strk (622B - application/x-applix-spreadsheet)
file #15051:  sendnload.as added by tgc (340B - application/octet-stream)
file #15052:  test.php added by tgc (179B - application/x-php)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by tgc (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 19 Feb 2008 12:07:04 PM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 18 Feb 2008 07:51:18 PM UTCstrkAttached File-=>Added sendandload.as, #15070
    Sun 17 Feb 2008 02:04:00 PM UTCstrkStatusNone=>Ready For Test
      Assigned toNone=>strk
    Sat 16 Feb 2008 07:32:41 PM UTCtgcAttached File-=>Added sendnload.as, #15051
      Attached File-=>Added test.php, #15052

    Back to the top


    Powered by Savane 3.1-cleanup1