Hi,
Current implementation of crossdomain.xml policy is broken in services (6.x is also affected). This is a short list of issues with this feature:
So.. this is the current proposal list for crossdomain.xml file handling:
It worths a discussion.. remember, #drupal-services channel on freenode.
Additional "crossdomain.xml" information:
Comments
Comment #1
ilo commenteduuuh too many li items, and hitted submit instead of preview by error.. :/
Comment #2
Hugo Wetterberg commentedHi ilo,
I just spotted the same thing as http://drupal.org/node/620938 while working on my endpoints (my very unofficial 3.x draft) for services and rewrote services_crossdomain_xml() as follows.
Maybe this covers at least one or two of the points in your list. It doesn't cover all of them that's for sure :)
It would be nice to go all out on this one and use the DOM, allowing even more flexible alters. We would probably have to cache the results to keep it snappy.
The checking for and loading of any manually created crossdomain.xml file will not help us, as file system always trumps menu system unless special .htaccess stuff is written, but honestly who *doesn't* use clean urls. But extensibility & export help/instructions are needed.
Comment #3
ilo commentedThanks Huggo.. I'm scared, because we are just relying in the menu system, and that will not work at all when "clean urls" is not enabled. (try inurl:?q=node at google.. 29 Million unfiltered entries is not "Nobody"). I will not recommend to use this approach without the consensus of other module maintainers having their own crossdomain.xml. Services will hijack any chance of their modules to work.
So the feature will not be at all 'functional', if we depend on something external to Drupal: the http redirect, I would preffer not to handle it then.
Comment #4
gavri commentedif other modules might use there own crossdomain when can build a crossdoamin drupal hook implementation and also a drupal_alter function to prevent collision.
what do you think about that option?
further more the services module can to see if the srever is using clean URLs and act accordingly
Comment #5
Hugo Wetterberg commented@gavri that's what
...is for in the above example.
Comment #6
gavri commentedsorry i didn't see it.
Comment #7
Hugo Wetterberg commented