Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary matching issue? #27

Closed
ostinelli opened this issue Jun 3, 2012 · 2 comments
Closed

binary matching issue? #27

ostinelli opened this issue Jun 3, 2012 · 2 comments

Comments

@ostinelli
Copy link

I've created a user admin on a node running on localmac (which points to localhost). When I connect to the XMMP server, I get the following clause error, which seems to be related to work done to 'binarize' ejabberd.

It looks like that this might be related to s2s communication, maybe due to localmac not being a proper and valid domain name?

=INFO REPORT==== 2-Jun-2012::14:01:27 ===
I(<0.338.0>:ejabberd_listener:281) : (#Port<0.3517>) Accepted connection {{127,0,0,1},51318} -> {{127,0,0,1},5222}

=INFO REPORT==== 2-Jun-2012::14:01:27 ===
I(<0.346.0>:ejabberd_c2s:769) : ({socket_state,gen_tcp,#Port<0.3517>,<0.345.0>}) Accepted authentication for admin by ejabberd_auth_odbc

=INFO REPORT==== 2-Jun-2012::14:01:27 ===
I(<0.346.0>:ejabberd_c2s:892) : ({socket_state,gen_tcp,#Port<0.3517>,<0.345.0>}) Opened session for admin@localmac/Robertos-Mac

=ERROR REPORT==== 2-Jun-2012::14:01:28 ===
E(<0.346.0>:ejabberd_s2s:76) : {function_clause,
                               [{string,tokens1,
                                 [<<"proxy.eu.jabber.org">>,".",[]],
                                 [{file,"string.erl"},{line,202}]},
                                {ejabberd_s2s,parent_domains,1,
                                 [{file,"src/ejabberd_s2s.erl"},{line,426}]},
                                {ejabberd_s2s,is_service,2,
                                 [{file,"src/ejabberd_s2s.erl"},{line,417}]},
                                {ejabberd_s2s,find_connection,2,
                                 [{file,"src/ejabberd_s2s.erl"},{line,295}]},
                                {ejabberd_s2s,do_route,3,
                                 [{file,"src/ejabberd_s2s.erl"},{line,254}]},
                                {ejabberd_s2s,route,3,
                                 [{file,"src/ejabberd_s2s.erl"},{line,74}]},
                                {ejabberd_router,route,3,
                                 [{file,"src/ejabberd_router.erl"},
                                  {line,68}]},
                                {ejabberd_c2s,session_established2,2,
                                 [{file,"src/ejabberd_c2s.erl"},
                                  {line,1066}]}]}
when processing: {{jid,<<"admin">>,<<"localmac">>,<<"Robertos-Mac">>,
                     <<"admin">>,<<"localmac">>,<<"Robertos-Mac">>},
                 {jid,<<>>,<<"proxy.eu.jabber.org">>,<<>>,<<>>,
                     <<"proxy.eu.jabber.org">>,<<>>},
                 {xmlelement,<<"iq">>,
                     [{<<"xml:lang">>,<<>>},
                      {<<"type">>,<<"get">>},
                      {<<"id">>,<<"purpledfb32023">>},
                      {<<"to">>,<<"proxy.eu.jabber.org">>}],
                     [{xmlelement,<<"query">>,
                          [{<<"xmlns">>,
                            <<"http://jabber.org/protocol/bytestreams">>}],
                          []}]}}
@goj goj closed this as completed in 470bbf8 Jun 4, 2012
@goj
Copy link
Contributor

goj commented Jun 4, 2012

Thanks for pointing that out.

Quick glance at the code shows that there are more things to fix besides that single function.
For example ejabberd_s2s_in and ejabberd_s2s_out modules seem untouched. I've created issue #28 for that.

@ostinelli
Copy link
Author

Thank you @goj for this fast response :)

r.

NelsonVides added a commit that referenced this issue Jul 23, 2021
[FUL-25329] Document XMPP interface to all bkpr inbox extensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants