a7mdfm / flexpaper

Automatically exported from code.google.com/p/flexpaper
1 stars 0 forks source link

flexpaper does not load documents from an https url #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a https address to a swf document

What is the expected output? What do you see instead?
We should see the document, but instead nothing is loaded : the spinner load 
indicator is spinning 
with no percentage indication of progression.

What version of the product are you using? On what operating system?
V1.2.4

Please provide any additional information below.

Original issue reported on code.google.com by fabien.j...@gmail.com on 26 Apr 2010 at 10:57

GoogleCodeExporter commented 8 years ago
should work fine (have seen other cases reported where they got it to work), 
are you 
using escape(url) when pointing to your https url?

Original comment by erik.eng...@gmail.com on 26 Apr 2010 at 11:07

GoogleCodeExporter commented 8 years ago
It is working perfectly when using the same url without ssl (http), but if I 
just change from http to https, it stops 
to work.

Original comment by fabien.j...@gmail.com on 26 Apr 2010 at 11:23

GoogleCodeExporter commented 8 years ago
is the http service returning the correct mime-type? 
(application/x-shockwave-flash)

Should be ok if you can get the swf file to show in the browser by accessing it 
directly

Original comment by erik.eng...@gmail.com on 26 Apr 2010 at 11:59

GoogleCodeExporter commented 8 years ago
content type is for both cases : application/x-octet-stream

But it is working for plain http even with this content type.

I can download the swf file from my browser using both urls.

Original comment by fabien.j...@gmail.com on 27 Apr 2010 at 12:22

GoogleCodeExporter commented 8 years ago
does the swf file display in your browser when using https or does it trigger 
your 
browser to download it?

Original comment by erik.eng...@gmail.com on 27 Apr 2010 at 12:43

GoogleCodeExporter commented 8 years ago
in both cases, it is downloaded.

Original comment by fabien.j...@gmail.com on 27 Apr 2010 at 8:48

GoogleCodeExporter commented 8 years ago
We are having the same kind of problems, but with IE only. Different behaviour 
between versions:

On all version when serving with content-type :application/x-shockwave-flash IE 
(6,7,8) fails to load the 
document with error: #2118

When not serving the content-type header at all IE 7 & 8 display the document 
correctly

Original comment by OriPekel...@gmail.com on 5 May 2010 at 1:44

GoogleCodeExporter commented 8 years ago
I am no where near a flex expert, so please someone who knows better verify, 
but I think there is a problem 
in the error handling: the original error is discarded:

 private function ioErrorHandler(event:IOErrorEvent):void
                {
                        loader.contentLoaderInfo.dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
                }

This I would believe be better:

   private function ioErrorHandler(event:IOErrorEvent):void
                {
                        loader.contentLoaderInfo.dispatchEvent(event);
                }

Our problem is linked to a known IE bug: with the change in the error handling 
code I got to   Error #2032: 
Stream Error.

A quick google search brought up a bunch of sites talking about IE only 
problems with this error. Different 
sites proposed different recipes. I didn't test them all but it boils down to 
having the script serving the content 
over ssl add a header.

Pragma: public
and if ever using cache control headers:

Cache-Control: no-store

played the trick for me..

Original comment by o...@af83.com on 13 May 2010 at 5:30

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I Have the same problem. I can access the .swf using 'swf/name.swf' or 
'http://localhost:8080/project/swf/name.swf'
But If I try 'http://190.168.1.27:8080/project/swf/name.swf' it doesn't load!
The same occurs when I use a Servlet that return a .swf
What do I have to do, to load using a dynamic link?

Alexandro Tommy
alexandro.tommy@gmail.com

Original comment by alexandr...@gmail.com on 12 Jul 2010 at 5:00

GoogleCodeExporter commented 8 years ago
Ok will take a look at this again thanks for the report.

Original comment by erik.eng...@gmail.com on 12 Jul 2010 at 9:40

GoogleCodeExporter commented 8 years ago
Please remember to add the following content-header on the server end if 
experiencing any problems:

Cache-Control: no-store

Original comment by erik.eng...@gmail.com on 20 Jul 2010 at 4:10

GoogleCodeExporter commented 8 years ago
Anyone tell me how to load a dynamic link? 

i got the same problems, plz help

Original comment by SuperLiu...@gmail.com on 16 Mar 2011 at 7:55

GoogleCodeExporter commented 8 years ago
First please post the version you are using. What are you using on the server 
side. What browser at what version are you using; Also if there is an error 
message please post the exact error message.
You might want to use the debugger version of flash in order to see error 
messages.

Again, please verify if this is an IE Specific problem. If this problem only 
exists on IE add the Pragma and cache control headers.

In PHP for example  this would be:

header ("Pragma: public");
header ("Cache-Control: no-store");

Original comment by o...@af83.com on 16 Mar 2011 at 11:42