Attachment file name too long
Versions
- OS: Linux
- GTK Version: 3.24.31
- PyGObject Version: 3.42.0
- GLib Version : 2.70.2
- python-nbxmpp Version: 3.0.0-dev1
- Gajim Version: 1.4.0-dev1
Traceback
Traceback (most recent call last):
File "/app/lib/python3.9/site-packages/gajim/gtk/controls/base.py", line 1461, in fetch_n_lines_history
self.add_messages(messages)
File "/app/lib/python3.9/site-packages/gajim/gtk/controls/base.py", line 1520, in add_messages
self.conversation_view.add_message(
File "/app/lib/python3.9/site-packages/gajim/gtk/conversation/view.py", line 281, in add_message
message_row = MessageRow(
File "/app/lib/python3.9/site-packages/gajim/gtk/conversation/rows/message.py", line 131, in __init__
app.interface.preview_manager.create_preview(
File "/app/lib/python3.9/site-packages/gajim/common/preview.py", line 277, in create_preview
elif not preview.thumb_exists():
File "/app/lib/python3.9/site-packages/gajim/common/preview.py", line 136, in thumb_exists
return self.thumb_path.exists()
File "/usr/lib/python3.9/pathlib.py", line 1424, in exists
self.stat()
File "/usr/lib/python3.9/pathlib.py", line 1232, in stat
return self._accessor.stat(self)
OSError: [Errno 36] Nom de fichier trop long: '/home/arnaud/.var/app/org.gajim.Gajim.Devel/cache/gajim/downloads.thumb/framapiaf_s3_framasoft_org_framapiaf_media_attachments_files_107_571_327_955_223_796_origi_aa77bb5b0033a89cb3117d924a5841c8dc79d0ef_thumb_400.jpg'
Steps to reproduce the problem
I started Gajim and it downloaded an attachment with a long name.