#1021 Prosody with mod_unsafe_compression responds with <unsupported-stanza-type/> to client's <compress/>

Reporter Florian Schmaus
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Compliance
  • Status-Accepted
  • Type-Defect
  • Priority-Medium
  • Component-Community
  1. Florian Schmaus on

    It looks like Matt's latest changes, which where supposed to fix mod_unsafe_compression on prosdody 0.10 (thanks for that), are not complete. Here is an XMPP trace from MAXS trying to enable compression after authentication: 10-14 15:29:34.258 D/MAXS/XMPPTCPConnection(30584): Established TCP connection to /37.221.197.223 at port 5222 10-14 15:29:34.264 D/MAXS/JulDebugger(30584): SENT (3): <stream:stream xmlns='jabber:client' to='geekplace.eu' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='flo-motog4@geekplace.eu' xml:lang='en'> 10-14 15:29:34.359 D/MAXS/JulDebugger(30584): RECV (3): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' from='geekplace.eu' id='a10586bb-8afe-4df3-a6fe-7ad505130dcf' version='1.0' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>SCRAM-SHA-1</mechanism></mechanisms><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></stream:features> 10-14 15:29:34.361 D/MAXS/JulDebugger(30584): SENT (3): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'></starttls> 10-14 15:29:34.416 D/MAXS/JulDebugger(30584): RECV (3): <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/> 10-14 15:29:34.898 D/MAXS/MemorizingTrustManager(30584): checkCertTrusted([Lcom.android.org.conscrypt.OpenSSLX509Certificate;@74a6584, DHE_RSA, true) 10-14 15:29:34.898 D/MAXS/MemorizingTrustManager(30584): checkCertTrusted: trying appTrustManager 10-14 15:29:34.909 D/MAXS/MemorizingTrustManager(30584): checkCertTrusted: appTrustManager did not verify certificate. Will fall back to secondary verification mechanisms (if any). (java.security.cert.CertificateException: Unacceptable certificate: EMAILADDRESS=support@cacert.org, CN=CA Cert Signing Authority, OU=http://www.cacert.org, O=Root CA) 10-14 15:29:34.910 D/MAXS/MemorizingTrustManager(30584): checkCertTrusted: trying defaultTrustManager 10-14 15:29:35.124 D/MAXS/JulDebugger(30584): SENT (3): <stream:stream xmlns='jabber:client' to='geekplace.eu' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='flo-motog4@geekplace.eu' xml:lang='en'> 10-14 15:29:35.167 D/MAXS/JulDebugger(30584): RECV (3): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' from='geekplace.eu' id='e2939e40-fffb-40d1-af78-43e514022189' version='1.0' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>SCRAM-SHA-1-PLUS</mechanism></mechanisms></stream:features> 10-14 15:29:35.168 D/MAXS/XMPPService(30584): tryToConnect: connect() returned without exception, calling login() 10-14 15:29:35.172 D/MAXS/JulDebugger(30584): SENT (3): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'></auth> 10-14 15:29:35.324 D/MAXS/JulDebugger(30584): RECV (3): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></challenge> 10-14 15:29:35.683 D/MAXS/JulDebugger(30584): SENT (3): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></response> 10-14 15:29:35.736 D/MAXS/JulDebugger(30584): RECV (3): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></success> 10-14 15:29:35.738 D/MAXS/JulDebugger(30584): SENT (3): <stream:stream xmlns='jabber:client' to='geekplace.eu' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='flo-motog4@geekplace.eu' id='e2939e40-fffb-40d1-af78-43e514022189' xml:lang='en'> 10-14 15:29:35.786 D/MAXS/JulDebugger(30584): RECV (3): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' from='geekplace.eu' id='8b2f7942-6e8e-43f1-958a-e99934409bf5' version='1.0' xmlns='jabber:client'><stream:features><csi xmlns='urn:xmpp:csi:0'/><ver xmlns='urn:xmpp:features:rosterver'/><c hash='sha-1' ver='lRweeq06rG1X+ZZSiVfGW+vuAqk=' node='http://prosody.im' xmlns='http://jabber.org/protocol/caps'/><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session><sm xmlns='urn:xmpp:sm:2'><optional/></sm><sm xmlns='urn:xmpp:sm:3'><optional/></sm><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression></stream:features> 10-14 15:29:35.794 D/MAXS/JulDebugger(30584): SENT (3): <compress xmlns='http://jabber.org/protocol/compress'><method>zlib</method></compress> 10-14 15:29:35.836 D/MAXS/JulDebugger(30584): RECV (3): <stream:error><unsupported-stanza-type xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>

  2. MattJ on

    Changes
    • tags Status-Accepted Component-Community

New comment

Not published. Used for spam prevention and optional update notifications.