timkokes / svgweb

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

Flash only get displayed on localhost #557

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since a few weeks I'm playing arround with svgweb for a project. It works fine 
but only on my localhost. When I try to open a page with svg(web) content in IE 
or with forced flash renderer in other browsers from my remote server nothing 
is displayed.

For testing purposes I created a simple html file and put the svg-files (js, 
htc and swf) in the same directory. svgweb now replaces my "svg-script-part" 
with the flash-object and the browser requests the swf file but nothing is 
diplayed.

Apache-Log:
[11/Oct/2010:13:30:57 +0200] "GET /test/index.html HTTP/1.1" 304 -
[11/Oct/2010:13:30:58 +0200] "GET /test/svg.js HTTP/1.1" 304 -
[11/Oct/2010:13:30:58 +0200] "GET /test/svg.htc HTTP/1.1" 304 -
[11/Oct/2010:13:30:59 +0200] "GET /test/svg.swf HTTP/1.1" 304 -

Diagnostic of tools/config.html => Everything works!

I'm using a Zend Community Server with the included Apache 2.2 on a windows 
server 2003 R2 SP2. The configuration file is attached.

This ticket is the reason of the previous written thread
http://groups.google.com/group/svg-web/browse_thread/thread/f6eb095942239b6e?

Original issue reported on code.google.com by sresch2009@gmail.com on 11 Oct 2010 at 12:02

Attachments:

GoogleCodeExporter commented 9 years ago
Taking a quick look at the "httd.conf", I couldn't find any reference to SVG 
nor Flash MIME types: I'm guessing you've taken a look at the appropriate 
documentation [1] before reporting, right? ;-) (Also, without further 
information, I'm also guessing your default server configuration may already 
have them, reason why I'm asking and not affirming. :-p )

I'd hint towards a possible misconfiguration. Have you tried using an HTTP 
debugger (Firebug and most Web browser debuggers can do that nowadays; more 
specialized tools such as Wireshark and Fiddler allow saving logs; online tools 
such as web-sniffer [2] even allow doing it when a site is "exposed" to the 
Internet). I'd say the next step could be providing at least the HTTP headers 
for the files fetched from the Web server.

Another possible hypothesis for this to happen would be browser configurations: 
many enterprises tweak their browsers so that Internet behaves much differently 
to Intranet and/or local sites (so that most plug-ins aren't exposed to the 
Web). This might also be easy to clarify by double checking zones (Control 
Panel -> Internet Options, Security tab - when using Internet Explorer) or 
using an alternate browser (such as Chrome, which can be installed even without 
administrative rights).

[1] http://code.google.com/p/svgweb/wiki/ChangingServerMIMEType
[2] http://web-sniffer.net/

Original comment by helder.magalhaes on 1 Nov 2010 at 10:28

GoogleCodeExporter commented 9 years ago
The MIME types seems to be correct, cause the svgweb-diagnostic tool displays 
"Everything works!".
htc is set in http.conf (I fixed the uploaded httpd.conf by removing the dot in 
front of 'htc' but it doesn't had any effect)
swf and svg are set in mime.types.

When I load the page, Fiddler shows me that the svg.swf file will be requested 
successfully.

Request header:
GET /MyWebApp/web/js/svg/svg.swf HTTP/1.1
Host: vmwpoqs01
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.12) 
Gecko/20101026 Firefox/3.6.12
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://vmwpoqs01/MyWebApp/web/absenteeism/loadCalendarByYear/year/2010
Cookie: WebApp=t4qpd367o00c1mjsbak1dv4f71

Response header:
HTTP/1.1 200 OK
Date: Mon, 08 Nov 2010 13:33:55 GMT
Server: Apache/2.2.14 (Win32) mod_ssl/2.2.14 OpenSSL/0.9.8k
Last-Modified: Mon, 08 Nov 2010 06:17:02 GMT
ETag: "810000000111de-bb7c-49484928ab380"
Accept-Ranges: bytes
Content-Length: 47996
Keep-Alive: timeout=5, max=73
Connection: Keep-Alive
Content-Type: application/x-shockwave-flash

I've also tested the site from my private pc to check against the enterprise 
settings but there are the same problems - the svg.swf keeps white.

Original comment by sresch2009@gmail.com on 8 Nov 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Is there a possibility to debug the swf file? I've never worked with flash but 
I have the adobe creative web suite which includes flash professional cs3. So 
if it's possible to start a debug session out of the browser - I only need a 
small introduction how to do that!

Original comment by sresch2009@gmail.com on 8 Nov 2010 at 2:49

GoogleCodeExporter commented 9 years ago
Are you sure you have permissions to read all files, specially the SVG file you 
are attempting to access using svgweb? Using the remote server, I mean. Please 
consider attaching (not pasting) the _whole_ Fiddler log (not only the part 
concerning 'svg.swf').

I'm not an expert in debugging flash, but 'svg.js' does contain a bunch of code 
which can be debugged. If you download the SVN version [1] (SVN client instead 
of the Web interface is advised), you'll have the uncompressed version, which 
is easier to debug. Then, using IE8:
1. Open the Developer tools _before_ accessing the page you intend to debug.
2. Browse to the page you are trying to debug.
3. Go to the "Script" tab and press "Start Debugging", as well as "Break On 
Error" (icon button left of "Start Debugging").
4. Reload, if necessary.

(@sresch2009: This somehow feels a support thread either than a bug report, 
consider moving this to the mailing list if no interesting activity happens in 
the future.)

[1] http://code.google.com/p/svgweb/source/browse/#svn/trunk/src

Original comment by helder.magalhaes on 14 Nov 2010 at 10:01

GoogleCodeExporter commented 9 years ago
Thanks for jumping in and helping with this Helder. I agree that this sounds 
like a support issue rather than a bug in SVG Web itself. Please move the rest 
of this discussion over to the mailing list. Marking as INVALID.

Original comment by bradneub...@gmail.com on 16 Nov 2010 at 6:34

GoogleCodeExporter commented 9 years ago
I will move the discussion back to the mailing list 
http://groups.google.com/group/svg-web/browse_thread/thread/f6eb095942239b6e?
(I hope you meant this with mailing list, or is there something different?)

I also uploaded the fiddler logs here, cause I cannot add files to the mailing 
list.

Original comment by sresch2009@gmail.com on 17 Nov 2010 at 4:25

Attachments: