Skip to content

Invalid XML generated by OOB split feature #357

@mbirth

Description

@mbirth

Since upgrading from 2.0.10 to 2.0.12 I can't receive images/photos from purple-hangouts anymore. Usually they popped up in Gajim and/or Conversations as a HTML message (with "View full image" link pointing to googleusercontent.com and a thumbnail) and were stored in the MAM history as only the link to the jpg at googleusercontent.com.

Since the upgrade, I don't even get notified when someone sends me a photo. Nothing happens in any client. Also no entry appears in the history.

backend.log:

5796: 2019-07-17 12:27:56,475 INFO  backend: conv_write_im()
5796: 2019-07-17 12:27:56,475 INFO  backend: conv_write_im(): msg='<a href='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg'>View full image <img id='3' src='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg' /></a>', flags=4098
5796: 2019-07-17 12:27:56,476 INFO  backend: Received image body='<a href='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg'>View full image <img id='3' src='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg' /></a>'
5796: 2019-07-17 12:27:56,476 INFO  backend: Image ID = '3' 165 166
5796: 2019-07-17 12:27:56,476 INFO  libpurple: imgstore:retrieved image id 3
5796: 2019-07-17 12:27:56,477 INFO  backend: Storing image to /var/www/html/chat/uploads/c9bc7a7c6a7dfb5648b9e79cd78a00160377bc78.jpg
5796: 2019-07-17 12:27:56,499 INFO  backend: New image body='<a href='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg'>View full image <img src="https://xmpp.myserver.com/uploads/c9bc7a7c6a7dfb5648b9e79cd78a00160377bc78.jpg" src='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg' /></a>'
5796: 2019-07-17 12:27:56,500 INFO  backend: Received message body='View full image  <https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg>' xhtml='<a href="https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg">View full image <img src='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg' alt='' /></a>' name='117102903236799523736'

spectrum2.log:

2019-07-17 12:27:55,819 INFO  ConversationManager: [email protected]: Adding conversation 117102903236799523736
2019-07-17 12:27:55,929 INFO  Component.RAW: RAW DATA OUT <message from="[email protected]/bot" to="[email protected]" type="chat"><body></body><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><html/></body></html><active xmlns="http://jabber.org/protocol/chatstates"/></message>
2019-07-17 12:27:56,533 DEBUG NetworkPluginServer: wrapIncomingMedia: matchCount==1
2019-07-17 12:27:56,535 INFO  Component.RAW: RAW DATA OUT <message from="[email protected]/bot" to="[email protected]" type="chat"><body>View full image  &lt;</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><a href="https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg">View full image</body></html><active xmlns="http://jabber.org/protocol/chatstates"/></message>
2019-07-17 12:27:56,539 INFO  Component.RAW: RAW DATA OUT <message from="[email protected]/bot" to="[email protected]" type="chat"><body>https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><img src='https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg' alt='' /></body></html><x xmlns='jabber:x:oob'><url>https://lh3.googleusercontent.com/-mGD4raf_nlU/XS74KqWcDnI/AAAAAAAABwc/2qpUlz_ibCIbZaDOZBs9AON9ITbDPgYGACK8BGAs/s0/2019-07-17.jpg</url></x><active xmlns="http://jabber.org/protocol/chatstates"/></message>
2019-07-17 12:27:56,543 INFO  Component.RAW: RAW DATA OUT <message from="[email protected]/bot" to="[email protected]" type="chat"><body>&gt;</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"></a></body></html><active xmlns="http://jabber.org/protocol/chatstates"/></message>
2019-07-17 12:27:56,544 INFO  Component.RAW: RAW DATA IN <stream:error><not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>mismatched tag</text></stream:error>
2019-07-17 12:27:56,549 INFO  Component.RAW: RAW DATA OUT </stream:stream>
2019-07-17 12:27:56,549 INFO  Component.RAW: RAW DATA IN </stream:stream>
2019-07-17 12:27:56,622 INFO  Component: Disconnected from Frontend server. Error: Unexpected element error

I've set this in hangouts.cfg:

web_directory=/var/www/html/chat/uploads
web_url=https://xmpp.myserver.com/uploads

And from the log above, it seems to download the thumbnail and put it into web_directory just fine (it's there, I've checked). (I believe this worked before this way, too.) But it fails to send the generated message to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions