You are not logged in.

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Monday, December 23rd 2013, 5:47pm

KRPano unable to load certain resources when the URL is constructed with parameters.

The below code fails and the layer is forever loading. Setting the url again when its in this stuck state causes krpano actions to stop working.
Environment: Flash+Chrome|Firefox etc.

Source code

1
set(layer[test].url,https://graph.facebook.com/547734552/picture?type=normal);


The below code works without issue.

Source code

1
set(layer[test].url,https://graph.facebook.com/547734552/picture);


Sometimes the following WILL work. In some cases it will not.

Source code

1
2
set(layer[test].url,https://graph.facebook.com/547734552/picture);
set(layer[test].url,https://graph.facebook.com/547734552/picture?type=normal);
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Monday, December 23rd 2013, 5:58pm

Hi,

that's a problem related to Flashplayer security.
Try to use/install the DEBUG Flashplayer to see the problem in detail.

The content returned from that server when using the query doesn't allow to be accessed.

Best regards,
Klaus

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Monday, December 23rd 2013, 6:29pm

That's confusing still.

krpano does not throw and security errors.
I can pull down the resource in chrome directly.

https://graph.facebook.com/547734552/picture?type=normal

facebooks crossdomain.xml looks good.

I can load the query resource by loading another one without a query first usually
I can load the query resource by redirecting to it as.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Monday, December 23rd 2013, 8:04pm

krpano does not throw and security errors.
krpano not, but the Flashplayer and you would need to use the DEBUG Flashplayer to be able see it (popup window).

I can pull down the resource in chrome directly.
There is a VERY BIG difference between Chrome and the Flashplayer and additionally also between direct requests and Javascript/Flash requests!

It seems the Flashplayer isn't requesting the crossdomain.xml files in this case.
Try to specify them manually by adding this code:

Source code

1
2
3
4
<security>
  <crossdomainxml url="https://graph.facebook.com/crossdomain.xml" />
  <crossdomainxml url="https://fbcdn-profile-a.akamaihd.net/crossdomain.xml" />
</security>


Best regards,
Klaus

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

5

Monday, December 23rd 2013, 8:25pm

That appears to work!

So how come it works on the link without the "?" or by doing the preload trick or by redirecting?
Both links go to the same cdn domain.
Mystifying.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

6

Monday, December 23rd 2013, 8:59pm

Please ask me something easier!
That Flashplayer crossdomain security stuff is always a bit special...