Sie sind nicht angemeldet.

1

Donnerstag, 2. September 2010, 11:55

Amazon S3 temporary url - ERROR: Security Error

Hi,

I'm getting this error for equirects hosted by amazon S3 that use their temporary url feature:

INFO: krpano 1.0.8 beta 9 (build 2010-02-21)
INFO: Flashplayer MAC 10,1,82,76 PlugIn
INFO: registered to: xyz
ERROR: Security Error -
"http://xyz.s3.amazonaws.com/IMG_8812_panorama_1283356045_stitched.jpg?AWSAccessKeyId=05D4DS26STJWM33795G3&Expires=1283419230&Signature=toOK%2FV%2F6l1%2B5dGKKsH0TPbC2k6U%3D"

When I try to access this url with my browser or wget it works fine. Is it possible that krpano strips some parameters from that url?

Thanks

2

Donnerstag, 2. September 2010, 16:35

Krpano player and images have to be from the same domain, otherwise krpano player which is a flash file cannot access images. This is a restriction set by the flash, not specific to krpano.

3

Donnerstag, 2. September 2010, 16:39

Hi!

I don't know whether krpano uses flash's built-in http or a raw socket. First try the allowdomain.domain in http://krpano.com/docu/xml/#security to give permission to xyz.s3.amazonaws.com .

If it doesn't work, raw sockets in flash will only connect to a domain different from that in which the swf is hosted if the target domain is able to provide a cross-domain policy xml file which explicitly grants the source domain permission to connect. Look into the actionscript 3 documentation to find out how to create this file, then you must be able to make it acessible from http://xyz.s3.amazonaws.com/crossdomain.xml or set a different path using the crossdomainxml.url in http://krpano.com/docu/xml/#security (must be in the same domain).

4

Donnerstag, 2. September 2010, 17:19

Thanks, but it works OK for other equirects hosted on S3 (non temporary url), so I don't think it is cross-domain policy related problem.

5

Donnerstag, 2. September 2010, 17:29

How do you pass that URL to krpano? Is it in the xml?

6

Donnerstag, 2. September 2010, 18:08

Yes, it is in xml.

7

Donnerstag, 2. September 2010, 19:12

You can't directly use & as a URL separator in xml, since it's a reserved character. Whether you can work around that limitation depends on the remote server, I think. Try replacing it with %26 .

8

Freitag, 3. September 2010, 10:33

Hi,

you would need to have a crossdomain.xml on the amazon server,
for easiest case just put it in the servers root folder,

best regards,
Klaus

9

Freitag, 3. September 2010, 10:51

The problem was that I used different subdomains for protected and unprotected equirects and I didn't notice the difference.

http://xyz.s3.amazonaws.com vs. http://s3.amazonaws.com/xyz

I have to put crossdomain.xml to my bucket and it works.

Thanks!

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »vlado« (3. September 2010, 11:35)