1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00
No description
Find a file
Florian Schmaus a942863ffe Move saslFeatureReceived check in connect()
so that APIs that need a fully connected but not yet authenticated
connection (e.g. AccountManager) can use the connection after connect()
returns.

Also move "connected = true" after saslFeatureReceived check, as if the
check would throw, the boolean would still be 'true' resulting in an
inconsistent state.

Otherwise this could result in

D/SMACK﹕ SENT (12): <stream:stream xmlns='jabber:client' to='*server*' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
D/SMACK﹕ SENT (12): <iq id='miS03-37' to='*server*' type='get'><query xmlns='jabber:iq:register'></query></iq>
D/SMACK﹕ RCV (12): <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4280133582' from='*server*' version='1.0' xml:lang='en'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism >DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='a4WL1hRFRX38OouQz3okC+ayK2o='/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
D/SMACK﹕ SENT (12): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'></starttls>
D/SMACK﹕ RCV (12): <iq from='*server*' id='miS03-37' type='result'><query xmlns='jabber:iq:register'><instructions>Choose a username and password to register with this server</instructions><username></username><password/></query></iq>
D/SMACK﹕ SENT (12): <iq id='miS03-39' to='*server*' type='set'><query xmlns='jabber:iq:register'><password>s0r73pgojeopmssjaairu6kcmk3v4l</password>< username>nqcjloj4v6uk52bug16hrrhspfanlr</username></query></iq>
D/SMACK﹕ RCV (12): <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
W/AbstractXMPPConnection﹕ Connection closed with error
    javax.net.ssl.SSLException: Connection closed by peer
            at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
            at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.ja va:405)
            at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.<init>(OpenSSLSocket Impl.java:661)
            at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.ja va:632)
            at org.jivesoftware.smack.tcp.XMPPTCPConnection.initReaderAndWriter(XMPPTCPConnect ion.java:661)
            at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnecti on.java:768)
2014-09-29 20:06:48 +02:00
config Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
documentation Add support for XEP-0352: Client State Indication 2014-09-19 23:52:14 +02:00
resources Merge branch '4.0' 2014-09-29 14:00:48 +02:00
smack-android Add ServerPingWithAlarmManager to smack-android 2014-09-22 10:13:33 +02:00
smack-android-extensions Make smack-android-extensions depend on smack-android 2014-09-24 12:48:01 +02:00
smack-bosh Move saslFeatureReceived check in connect() 2014-09-29 20:06:48 +02:00
smack-compression-jzlib Add a setting for the used flush mode when compressing data 2014-08-07 16:18:44 +02:00
smack-core Fix StringIndexOutOfBoundsException in ConnectionException 2014-09-29 08:58:39 +02:00
smack-debug Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
smack-debug-slf4j SmackDebugger initialization moved to dedicated factory. 2014-08-18 12:03:54 +02:00
smack-experimental Add support for XEP-0352: Client State Indication 2014-09-19 23:52:14 +02:00
smack-extensions Ensure that connection is authenticated in PingManager 2014-09-29 17:04:18 +02:00
smack-java7 Filter sun.security.* from smack-java7 Import-Package 2014-09-20 13:22:34 +02:00
smack-jingle-old Renamed smack-jingle to smack-jingle-old 2014-08-20 00:26:02 +02:00
smack-legacy Create smack.util.stringencoder for Base64, Base32,… 2014-09-04 11:07:55 +02:00
smack-resolver-dnsjava Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
smack-resolver-javax Make resolver-dnsjava, -minidns initializer 2014-08-11 19:39:31 +02:00
smack-resolver-minidns Make resolver-dnsjava, -minidns initializer 2014-08-11 19:39:31 +02:00
smack-sasl-javax Remove smack-core sasl configuration 2014-08-12 21:54:22 +02:00
smack-sasl-provided Add SASL PLAIN implementation to smack-sasl-provided 2014-08-16 09:29:32 +02:00
smack-tcp Move saslFeatureReceived check in connect() 2014-09-29 20:06:48 +02:00
.gitignore Migrate from Ant to Gradle (SMACK-265) 2014-02-14 18:46:33 +01:00
.travis.yml Add smack-android and redesign SASL authentication 2014-08-01 10:34:47 +02:00
build.gradle Merge branch '4.0' 2014-09-29 14:00:48 +02:00
README.md Update the (second) flattr link in README.md 2014-09-27 17:18:19 +02:00
settings.gradle Add ServerPingWithAlarmManager to smack-android 2014-09-22 10:13:33 +02:00

Smack

Build Status Project Stats Flattr this git repo

About

Smack is an Open Source, cross-platform, easy to use Java XMPP client library.

Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java library, it can be embedded into your applications to create anything from a full XMPP client to simple XMPP integrations such as sending notification messages and presence-enabling devices.

Confused? Have a look at the Overview.

Smack - an Ignite Realtime community project.

Bug Reporting

Only a few usrs have acces for for filling bugs in the tracker. New users should:

  1. Create a forums account (only e-mail is a requirement, you can skip all the other fields).
  2. Login to the forum account
  3. Press New in your toolbar and choose Discussion
  4. Choose the Smack Developers Forum of Smack and add the tag 'bug_report' to your new post

Please search for your issues in the bug tracker before reporting.

Contact

The developeres hang around in #smack (freenode, IRC) and open_chat@conference.igniterealtime.org (XMPP MUC room). Remember that it may take some time (~hours) to get a response.

You can also reach us via the Smack Users Forum if you have questions or need support, or the Smack Developers Forum if you want to discuss Smack development.

Resources

Donate

If you find Smack useful and feel like donating, then you can use one of the following systems:

Ignite Realtime

Ignite Realtime is an Open Source community composed of end-users and developers around the world who are interested in applying innovative, open-standards-based Real Time Collaboration to their businesses and organizations. We're aimed at disrupting proprietary, non-open standards-based systems and invite you to participate in what's already one of the biggest and most active Open Source communities.