znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
355 stars 85 forks source link

Filename cleanup and attachment handling fixes #374

Open pboguslawski opened 1 year ago

pboguslawski commented 1 year ago

Proposed change

This mod fixes several problems in filename cleanup and attachment handling:

Note: This mod does not resolve problems with WebUploadCacheModule = Kernel::System::Web::UploadCache::DB because it'll require DB schema change (no column for original filename in SQL web_upload_cache table available now); uploading long filenames (i.e 0123456ąćę111110123456ąćę0123456ąćę01234 56ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę01234 56ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę01234 56ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę0123456ąćę01234 56ąćę0123456ąćę0123456ąćę005.txt) will generate broken attachment list and sending such article will generate ugly trimmed attachement filename.

Additional information

Replaces: https://github.com/znuny/Znuny/pull/77 Related: https://github.com/OTRS/otrs/pull/1181 Related: https://github.com/OTRS/otrs/pull/1959 Author-Change-Id: IB#1016067

Type of change

Checklist