zD12 / galaxium

Automatically exported from code.google.com/p/galaxium
0 stars 0 forks source link

xmpp service manager: "autoconnect to transport on startup" option #236

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
every transport should have option to autoconnect when xmpp session created.

Original issue reported on code.google.com by jakub.ru...@gmail.com on 3 Jul 2008 at 1:11

GoogleCodeExporter commented 9 years ago
They do.

If a transport is already active, its part of your roster. When you login, your
roster item for the service should be receiving your presence and go online.

I have the MSN transport setup, and it logs in automatically for me everytime 
as long
as its enabled to when you log off.

I'm not even sure what to do for us to test this furhter... i might need to see 
your
logs.

Original comment by dra...@gmail.com on 3 Jul 2008 at 2:32

GoogleCodeExporter commented 9 years ago
in galaxium it doesn't (at least gg xmpp transport).

Original comment by jakub.ru...@gmail.com on 3 Jul 2008 at 4:18

GoogleCodeExporter commented 9 years ago
Info: 
<stream:stream to='jabster.pl' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>

Info: 
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="3619651882"
xml:lang="pl" from="jabster.pl" version="1.0" >

Info: 
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<compression xmlns="http://jabber.org/features/compress">
<method>zlib</method>
</compression>
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>DIGEST-MD5</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns="http://jabber.org/features/iq-register" />
</stream:features>

Info: 
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5" />

Info: 
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">SOMETHING LONG 
HASH-LIKE</challenge>

Info: 
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">SOMETHING LONG 
HASH-LIKE</response>

Info: 
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">SOMETHING LONG 
HASH-LIKE</challenge>

Info: 
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />

Info: 
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />

Info: 
<stream:stream to='jabster.pl' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>

Info: 
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" id="929424382"
xml:lang="pl" from="jabster.pl" version="1.0" >

Info: 
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</stream:features>

Info: 
<iq id="G.1" type="set" to="jabster.pl">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>Galaxium</resource>
</bind>
</iq>

Info: 
<iq xmlns="jabber:client" id="G.1" type="result">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>jakub.rusinek@jabster.pl/Galaxium</jid>
</bind>
</iq>

Info: 
<iq id="G.2" type="set" to="jabster.pl">
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>

Info: 
<iq xmlns="jabber:client" from="jabster.pl" type="result" id="G.2">
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>

Info: 
<iq id="G.3" type="get">
<query xmlns="jabber:iq:roster" />
</iq>

[[[ I don't want to share my roster ]]]

Warning: Unable to find contact tree manager for protocol 'XMPP' << displayed 
many times

Original comment by jakub.ru...@gmail.com on 3 Jul 2008 at 4:54

GoogleCodeExporter commented 9 years ago
everything else was my roster (getting and sending vCards, presences) and 
nothing
about my GG transport.

you may want to know - I don't use transport from my server.

I use gg.linux.pl with jabster.pl, it is shown in service manager.

Original comment by jakub.ru...@gmail.com on 3 Jul 2008 at 4:55

GoogleCodeExporter commented 9 years ago

Info: 
<iq id="G.1" type="set" to="jabster.pl">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>Galaxium</resource>
</bind>
</iq>

Info: 
<iq xmlns="jabber:client" id="G.1" type="result">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>jakub.rusinek@jabster.pl/Galaxium</jid>
</bind>
</iq>

Info: 
<iq id="G.2" type="set" to="jabster.pl">
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>

Info: 
<iq xmlns="jabber:client" from="jabster.pl" type="result" id="G.2">
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
</iq>

Info: 
<presence>
<priority>50</priority>
<status>STATUS MESSAGE</status>
</presence>

Info: 
<presence>
<priority>50</priority>
<status>STATUS MESSAGE</status>
</presence>

Info: 
<presence>
<status>STATUS MESSAGE (!)</status>
<priority>5</priority>
<c xmlns="http://jabber.org/protocol/caps" ver="2jmj7l5rSw0yVb/vlWAYkK/YBwk=" />
</presence>

Info: 
<iq xmlns="jabber:client" from="gg.linux.pl" type="result" id="G.4"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="gateway" type="gadu-gadu" name="Gadu-Gadu Transport" />
<feature var="jabber:iq:register" />
<feature var="jabber:iq:search" />
<feature var="jabber:iq:agent" />
<feature var="jabber:iq:gateway" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="vcard-temp" />
<feature var="http://jabber.org/protocol/stats" />
<feature var="http://jabber.org/protocol/disco#items" />
<feature var="http://jabber.org/protocol/disco#info" />
</query>
</iq>

Debug: XMPP: Adding service [gg.linux.pl] to active list.

notice setting status message three times and gg.linux.pl info.

Original comment by jakub.ru...@gmail.com on 3 Jul 2008 at 5:34

GoogleCodeExporter commented 9 years ago
I will need to try out this combination myself. Is anyone allowed to use 
gg.linux.pl
for GG transport? I'll have to setup this myself and test.

Original comment by dra...@gmail.com on 4 Jul 2008 at 12:38

GoogleCodeExporter commented 9 years ago
You can use gg.linux.pl freely ;) .

If you have no friends in GG, then you may want to add me as your buddy
(7774540@gg.linux.pl).

Original comment by jakub.ru...@gmail.com on 4 Jul 2008 at 12:52

GoogleCodeExporter commented 9 years ago
How do you find this service? "gg.linux.pl"

I tried to list services for JID "linux.pl" but it doesn't exist. Who is 
hosting that
service?

Original comment by dra...@gmail.com on 4 Jul 2008 at 5:57

GoogleCodeExporter commented 9 years ago
linux.pl is website and XMPP server. gg.linux.pl is one of the XMPP services 
which
you can discover in service browser.

in Gajim I can discover it. didn't tried with Galaxium...

Original comment by jakub.ru...@gmail.com on 4 Jul 2008 at 6:10

GoogleCodeExporter commented 9 years ago
I dont see how you can. Either this server is somehow region restricted? This 
is what
happens to be in Gajim OR Galaxium for "linux.pl":

<iq to="jabber.pl" type="get" id="68">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

<iq from='jabber.pl' to='draekz@jabber.no/Gajim' type='error' id='68'>
<query xmlns='http://jabber.org/protocol/disco#info'/>
<error code='404' type='cancel'>
<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>

Original comment by dra...@gmail.com on 5 Jul 2008 at 6:25

GoogleCodeExporter commented 9 years ago
Strange.

In Gajim I see that some transports are active and read and in console I see 
only this:

<iq to="irc.linux.pl" type="get" id="66">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

<iq to="users.jabber.org" type="get" id="67">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

<iq from='irc.linux.pl' to='jakub.rusinek@jabster.pl/Biurko' type='error' 
id='66'>
<query xmlns='http://jabber.org/protocol/disco#info'/>
<error code='404' type='cancel'>
<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>

<iq from='users.jabber.org' to='jakub.rusinek@jabster.pl/Biurko' type='error' 
id='67'>
<query xmlns='http://jabber.org/protocol/disco#info'/>
<error code='404' type='cancel'>
<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>

Galaxium talked more:

2008/07/05 20:42:16 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.66" type="get" to="linux.pl">
<query xmlns="http://jabber.org/protocol/disco#items" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="linux.pl" type="result" id="G.66"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#items">
<item jid="conference.linux.pl" />
<item jid="echo.linux.pl" />
<item jid="gg.linux.pl" />
<item jid="icq.linux.pl" />
<item jid="irc.linux.pl" />
<item jid="pubsub.linux.pl" />
<item jid="users.jabber.org" />
<item jid="vjud.linux.pl" />
</query>
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.67" type="get" to="conference.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.68" type="get" to="echo.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.69" type="get" to="gg.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.70" type="get" to="icq.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.71" type="get" to="irc.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.72" type="get" to="pubsub.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.73" type="get" to="users.jabber.org">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq id="G.74" type="get" to="vjud.linux.pl">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoItems
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="conference.linux.pl" type="result" id="G.67"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="conference" type="text" name="Chatrooms" />
<feature var="http://jabber.org/protocol/muc" />
<feature var="jabber:iq:register" />
<feature var="vcard-temp" />
</query>
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="echo.linux.pl" xml:lang="en" type="get" 
id="G.68"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.OutgoingXml] 
<iq to="echo.linux.pl" id="G.68" type="result">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="gg.linux.pl" type="result" id="G.69"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="gateway" type="gadu-gadu" name="Gadu-Gadu Transport" />
<feature var="jabber:iq:register" />
<feature var="jabber:iq:search" />
<feature var="jabber:iq:agent" />
<feature var="jabber:iq:gateway" />
<feature var="jabber:iq:browse" />
<feature var="jabber:iq:version" />
<feature var="vcard-temp" />
<feature var="http://jabber.org/protocol/stats" />
<feature var="http://jabber.org/protocol/disco#items" />
<feature var="http://jabber.org/protocol/disco#info" />
</query>
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="icq.linux.pl" type="result" id="G.70"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="gateway" type="icq" name="ICQ Transport" />
<feature var="http://jabber.org/protocol/disco" />
<feature var="http://jabber.org/protocol/commands" />
<feature var="jabber:iq:register" />
<feature var="jabber:iq:last" />
<feature var="vcard-temp" />
<feature var="jabber:iq:gateway" />
<feature var="jabber:iq:version" />
<feature var="jabber:iq:time" />
</query>
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="pubsub.linux.pl" type="result" id="G.72"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="pubsub" type="generic" name="Publish-Subscribe" />
<feature var="http://jabber.org/protocol/pubsub" />
<feature var="http://jabber.org/protocol/pubsub#event" />
<feature var="http://jabber.org/protocol/pubsub#owner" />
<feature var="vcard-temp" />
</query>
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="vjud.linux.pl" type="result" id="G.74"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info">
<identity category="directory" type="user" name="vCard User Search" />
<feature var="jabber:iq:search" />
<feature var="vcard-temp" />
</query>
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="echo.linux.pl" xml:lang="en" type="result" 
id="G.68"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info" />
</iq>

2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:28 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="irc.linux.pl" xml:lang="en" type="error" 
id="G.71"
to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info" />
<error code="404" type="cancel">
<remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>

2008/07/05 20:42:28 [DEBUG] [ServiceManager.DiscoveredItemInfo] Received error
response: NotFound
2008/07/05 20:42:28 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo
2008/07/05 20:42:29 [INFO] [XMPPConnection.IncomingXml] 
<iq xmlns="jabber:client" from="users.jabber.org" xml:lang="en" type="error"
id="G.73" to="jakub.rusinek@jabster.pl/Galaxium">
<query xmlns="http://jabber.org/protocol/disco#info" />
<error code="404" type="cancel">
<remote-server-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
</error>
</iq>

2008/07/05 20:42:29 [DEBUG] [ServiceManager.DiscoveredItemInfo] Received error
response: NotFound
2008/07/05 20:42:29 [DEBUG] [XMPPConnection.Iq] IQ Query Type:
agsXMPP.protocol.iq.disco.DiscoInfo

Original comment by jakub.ru...@gmail.com on 5 Jul 2008 at 6:41

GoogleCodeExporter commented 9 years ago
Yeah I dont really believe the problems are caused by the clients. I mean, 
there is
only 1 way to request a list of services.

Its not like we are doing it wrong. For me, that server says NotFound each time.

Anyway, I guess it will mature over time.

Original comment by dra...@gmail.com on 6 Jul 2008 at 4:59

GoogleCodeExporter commented 9 years ago
Current state of transport specific options is very poor, but it will 
autoconnect on
startup always. I'll open another bug on special transport handling.

Original comment by Zarevucky.Jiri on 13 May 2009 at 11:54