Gajim auto downloads files in MUC PMs from strangers
Steps to reproduce
- Join the Gajim MUC with Gajim ("MyJID")
- Join with a second account "dinoUser" (in my case with Dino 0.3.1) whereby none of the accounts is in the other's roster
- Open a private chat from "dinoUser" with "MyJID"
- Send e.g. an image or an audio file from "dinoUser" to "MyJID"
Result
The files are auto downloaded and previewed.
Expected Result
Files are only offered and need to be downloaded manually.
Log
13:48:47 (I) nbxmpp.connection (conversations.im) ::::: DATA RECEIVED ::::
<message xml:lang='en' to='MyJID/gajim.resource' from='gajim@conference.gajim.org/dinoUser' type='chat' id='e2593263-8b42-4bf1-b123-95de4a001653'>
<archived by='MyJID' id='1668516527701801' xmlns='urn:xmpp:mam:tmp'/>
<stanza-id by='MyJID' id='1668516527701801' xmlns='urn:xmpp:sid:0'/>
<x xmlns='jabber:x:oob'>
<url>https://share.conversations.im/dinoUser/hash/filename.png</url>
</x>
<request xmlns='urn:xmpp:receipts'/>
<active xmlns='http://jabber.org/protocol/chatstates'/>
<markable xmlns='urn:xmpp:chat-markers:0'/>
<x xmlns='http://jabber.org/protocol/muc#user'/>
<body>https://share.conversations.im/dinoUser/hash/filename.png</body>
</message>
13:48:47 (I) nbxmpp.connection (conversations.im) Signal: data-received
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Signal: before-dispatch
13:48:47 (I) nbxmpp.stream (conversations.im) Signal: stanza-received
13:48:47 (D) gajim.c.ged Raise event: stanza-received
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: BaseMessage._process_message_base
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: BaseMessage._process_message_after_base
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: MUC._process_message
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: OOB._process_message_oob
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Receipts._process_message_receipt
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Chatstates._process_message_chatstate
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: ChatMarkers._process_message_marker
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: MAM._set_message_archive_info
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for get_archive_infos: 1 ms
13:48:47 (I) gajim.c.storage.archive Set message archive info: MyJID {'last_mam_id': '1668516527701801'}
13:48:47 (D) gajim.c.storage.archive Execution time for set_archive_infos: 1 ms
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Message._check_if_unknown_contact
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Receipts._process_message_receipt
13:48:47 (I) gajim.c.m.receipts (conversations.im) Send receipt: gajim@conference.gajim.org/dinoUser
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Chatstate._process_chatstate
13:48:47 (I) gajim.c.m.chatstate (conversations.im) Recv: Chatstate.ACTIVE - gajim@conference.gajim.org/dinoUser
13:48:47 (I) gajim.c.m.contacts (conversations.im) Signal: chatstate-update
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: ChatMarkers._process_chat_marker
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: MUC._on_config_change
13:48:47 (I) nbxmpp.dispatcher (conversations.im) Call handler: Message._message_received
13:48:47 (I) gajim.c.m.message (conversations.im) Received from gajim@conference.gajim.org/dinoUser
13:48:47 (D) gajim.c.ged Raise event: raw-message-received
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for find_stanza_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (D) gajim.c.storage.archive Execution time for get_jid_id: 1 ms
13:48:47 (I) gajim.c.storage.archive Insert into DB: jid: gajim@conference.gajim.org/dinoUser, time: 1668516527.7036781, kind: 4, stanza_id: 1668516527701801
13:48:47 (D) gajim.c.storage.archive Execution time for insert_into_logs: 2 ms
13:48:47 (D) gajim.c.ged Raise event: message-received
13:48:47 (D) gajim.c.ged Call handler _on_message_received on <main.MainWindow object at 0x7f83e59ef480 (gajim+gui+main+MainWindow at 0x561396de8590)>
13:48:47 (D) gajim.c.ged Call handler _on_message_received on <chat_stack.ChatStack object at 0x7f83e58559c0 (gajim+gui+chat_stack+ChatStack at 0x561396e12d70)>
13:48:47 (D) gajim.c.preview_helpers Guessed MIME type: image/png
13:48:47 (D) gajim.c.ged Raise event: notification
13:48:47 (D) gajim.c.ged Call handler _on_notification on <gajim.gui.notification.Linux object at 0x7f83e5758110>
13:48:47 (I) gajim.gui.notification Sending notification: new-message,conversations.im,gajim@conference.gajim.org/dinoUser
13:48:47 (D) gajim.c.ged Call handler _on_event on <chat_list_stack.ChatListStack object at 0x7f83e5857600 (gajim+gui+chat_list_stack+ChatListStack at 0x56139714f970)>
13:48:47 (D) gajim.c.preview_helpers Guessed MIME type: image/png
13:48:47 (D) gajim.c.storage.cache Execution time for get_unread_count: 1 ms
13:48:47 (D) gajim.c.storage.cache Execution time for set_unread_count: 1 ms
13:48:47 (D) gajim.c.ged Call handler _on_message_received on <chat_banner.ChatBanner object at 0x7f83e3617800 (gajim+gui+chat_banner+ChatBanner at 0x561396fadf10)>
13:48:47 (D) gajim.c.ged Call handler _on_message_received on <gajim.gui.control.ChatControl object at 0x7f83e58ed250>
13:48:47 (I) gajim.c.preview Start downloading: https://share.conversations.im/dinoUser/hash/filename.png
13:48:47 (D) gajim.c.ged Call handler _on_message_received on <gajim.common.dbus.remote_control.GajimRemote object at 0x7f83e3616990>
13:48:47 (I) gajim.c.dbus.remote_control Send event NewMessage
(...)
13:48:48 (I) gajim.c.preview Thumbnail stored: filename.png
13:48:48 (I) gajim.c.preview File stored: filename.png
Setup
- Gajim 1.5.3
- GTK Version: 3.24.34
- GLib Version: 2.74.0
- Pango Version: 1.50.11
- PyGObject Version: 3.42.2
- cairo Version: 1.17.6
- pycairo Version: 1.21.0
- python-nbxmpp Version: 3.2.5