zulip/zerver/data_import
Prakhar Pratyush 19d56f77b5 rocketchat: Fix "OSError: [Errno 36] File name too long" error.
Earlier, we were replacing too long attachment name with random uuid
when the character count of the file name was greater than 255.

This results in "OSError: [Errno 36] File name too long" error in
few cases when the file name has less than 255 characters but more
than 255 bytes (file name with Non-ASCII characters).

This commit updates the code to check the file name's byte size
instead of characters count.
2024-08-14 18:18:31 -07:00
..
__init__.py
import_util.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
mattermost.py refactor: Rename `huddle` to `direct_message_group` in non api files. 2024-07-31 23:25:56 -07:00
rocketchat.py rocketchat: Fix "OSError: [Errno 36] File name too long" error. 2024-08-14 18:18:31 -07:00
sequencer.py data_import: Fix IdMapper typing. 2024-07-17 15:56:00 -07:00
slack.py ruff: Fix FURB154 Use of repeated consecutive `global`, `nonlocal`. 2024-07-14 13:53:18 -07:00
slack_message_conversion.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
user_handler.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00