hello
I've been beating my forehead for a while on this one.
when used with XIFF, there is a security violation case appears.
here is the error I'm getting:
401 not-authorized
ejabberd log:
=ERROR REPORT==== 2009-09-10 20:35:22 ===
{xmlrpc_http,153,
{mod_xmlrpc,handler,
{'EXIT',
{function_clause,
[{mysql,get_result_reason,
[[70,97,105,108,101,100,32,115,101,110,100,105,110,103,
32,100,97,116,97,32,111,110,32,115,111,99,107,101,116,
32,58,32,"closed"]]},
{mod_chat_restrict,get_result,1},
{mod_chat_restrict,check_is_paused,1},
{mod_xmlrpc,handler,2},
{xmlrpc_http,eval_payload,6},
{tcp_serv,start_session,3},
{proc_lib,init_p_do_apply,3}]}}}}
=ERROR REPORT==== 2009-09-10 20:35:22 ===
{xmlrpc_http,153,
{mod_xmlrpc,handler,
{'EXIT',
{function_clause,
[{mysql,get_result_reason,
[[70,97,105,108,101,100,32,115,101,110,100,105,110,103,
32,100,97,116,97,32,111,110,32,115,111,99,107,101,116,
32,58,32,"closed"]]},
{mod_chat_restrict,get_result,1},
{mod_chat_restrict,get_chat_timer,1},
{mod_xmlrpc,handler,2},
{xmlrpc_http,eval_payload,6},
{tcp_serv,start_session,3},
{proc_lib,init_p_do_apply,3}]}}}}
and a XIFF gui shows :
>>outgoing: <?xml version="1.0"?><stream:stream to="
app-dev.amcluster.com" xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams" />
XIFFErrorEvent onXIFFError: type:auth message:Not Authorized
The pl script from Hemlock works fine and shows :
Connection from <IP>
Valid request received
Sent policy file
And here is flash log :
1
Warning: Found secure='true' in policy file from xmlsocket://
app-dev.amcluster.com:843,
but host
app-dev.amcluster.com does not appear to refer to the local
machine. This may be insecure. See
http://www.adobe.com/go/strict_policy_files
for details.
there was a security error of type: securityError
Error: Error #2048: Security sandbox violation:
http://app-dev.amcluster.com/_pinf_app/amsite_v2/_pinf/structure/private/chat/XIFFGUI.swf
cannot load data from
app-dev.amcluster.com:5222.
I use ejabberd.2.0.4, flash player 10 dev, XIFF beta 2, flex 3.
Thank you for your assistance )
Denys