[Building Sakai] Entity broker problems

Steve Swinsburg steve.swinsburg at gmail.com
Mon Jul 25 03:55:43 PDT 2011


Hi Francisco,

This is due to the cross domain restriction imposed by browsers. You can't make an asynchronous request for data on a different domain. You'll find it probably works in Safari though.

You'll need to either create a local proxy to make the requests for you, develop your app on the same domain as Sakai if possible, or rethink your development options with jQuery and remote data.

cheers,
Steve


On 25/07/2011, at 8:26 PM, Francisco wrote:

> Hi again,
> 
> I have new info that I think might be helpful.
> 
> The ajax response I get when calling an entity is empty only for firefox and chrome, but not for ie (incredible, but true). Has anyone worked with this before?
> 
> Thanks and regards.
> 
> -------- Mensaje original --------
> Asunto:	Entity broker problems
> Fecha:	Mon, 25 Jul 2011 08:53:45 +0200
> De:	Francisco <francisco.saez.sakai at gmail.com>
> Para:	sakai-dev at collab.sakaiproject.org
> 
> Hi all,
> we are using sakai entities (from entity broker) and we have found some problems. I hope someone can help us.
> 
> First, when we invoke an entity provider (for example http://localhost:8080/direct/user/current.xml?sakai.session=xxxx) with jQuery, the response we get is empty. The session is correct and no matter the format we test (xml, json or form). The same call using an explorer is fine. In our sakai.properties we have established "session.parameter.allow=true". There is another sakai property that we need to use? Someone know what the problem is?
> 
> And second, when we use the entity to get a new session (for example http://localhost:8080/direct/session?_username=admin&_password=admin), that session is not valid to do calls like the first point (no session created at sakai_session table db). If we use a session from webservices, all is fine. Then, how to use that session?
> 
> Thanks in advance.
> 
> Best regards.
> 
> -- 
> <Mail Attachment.jpeg>
>  
> Francisco Sáez
> Analista - Programador
> francisco.saez at samoo.es
> +34 - 96 393 69 15
> www.samoo.es
>  
> Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario.”
>  
> This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee’s, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files.
>  
> P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.
>  
>  
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110725/b517e054/attachment.html 


More information about the sakai-dev mailing list