Flash and XML

36 views
Skip to first unread message

rc

unread,
Jun 10, 2011, 11:52:02 PM6/10/11
to Google App Engine
Is anyone aware of an issue in GAE that prevents .swf files from
loading .xml files? My application works perfectly fine when I host on
my own development machine, but when I upload into GAE the .xml files
appear to be unable to load. At least that's how it feels. I have
double-checked and .xml files are uploaded and accessible directly in
URL bar. All the .xml files referenced are hosted within my app,
nothing is attempting to be accessed from another site.

The logs are cryptic, within app engine dashboard --> Logs. It says
status:[45]\d\d path:/global/assets/objects/media/swf/portfolio/
nhcvr2005/XMLObje (This is not even the full path)

I've tried to find what status:[45] means, but I haven't been able to
find anything. Any ideas are appreciated.

-rc

Calvin

unread,
Jun 11, 2011, 12:36:48 AM6/11/11
to google-a...@googlegroups.com
I think you need a crossdomain.xml file hosted on your app engine app.  Flash doesn't allow swfs to read data from other domains unless permission is granted by crossdomain.xml.

You can find a sample crossdomain.xml in the h5bp.com package.
Message has been deleted

rc

unread,
Jun 15, 2011, 8:22:22 PM6/15/11
to Google App Engine
The xml files in question reside within the same domain and the .swf.
Everything is hosted on GAE.

stevep

unread,
Jun 16, 2011, 5:20:31 PM6/16/11
to Google App Engine
I've found Flash security perplexing. Did get it working, but not sure
what the final key was. Have you tried these Actionscript lines in
your main module??

Security.allowDomain("http://YourAppName.appspot.com");
Security.allowDomain("http://www.YourDomainName.com");

Also agree that you should load a cross domain xml (I include this
with lines above - and remember to set up statis/xml or what ever else
in your app.yaml):
Security.loadPolicyFile("http://YourAppName.appspot.com/static/xml/
crossdomain.xml");

Sample (very open) crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/
dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="YourAppDomain.appspot.com"
secure="false" />
<site-control permitted-cross-domain-policies="master-only" />
</cross-domain-policy>


HTH, stevep

rc

unread,
Aug 28, 2011, 10:05:31 PM8/28/11
to google-a...@googlegroups.com
FINALLY figured it out. The issue was case sensitivity on folder and file names. I was testing this on a windows box, so my tests locally were working. All URL calls appear to be case sensitive with GAE. I take it that's a Linux thing.

Thank you to everyone for the ideas.

Ikai Lan (Google)

unread,
Aug 29, 2011, 3:11:02 PM8/29/11
to google-a...@googlegroups.com
It's actually a spec thing:


It's Windows doing it incorrectly. Case sensitivity only doesn't matter for domains.

--
Ikai Lan 
Developer Programs Engineer, Google App Engine



On Sun, Aug 28, 2011 at 7:05 PM, rc <robert...@gmail.com> wrote:
FINALLY figured it out. The issue was case sensitivity on folder and file names. I was testing this on a windows box, so my tests locally were working. All URL calls appear to be case sensitive with GAE. I take it that's a Linux thing.

Thank you to everyone for the ideas.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/FeygMfytYssJ.

To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages