Issue 10330

Filename too long
Nosy list
Timitos, ced, pokoli, reviewbot
Assigned to

Created on 2021-04-22.14:29:10 by Timitos, last changed 1 month ago by reviewbot.


Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-04-23.18:17:10

I guess instead of limiting the record names to 5 to construct the report name, we should also limit the size of the name.
According to 255 chars seem to be a very common limit. So as anyway such long filename are neither practical, I guess we could limit to for example to 200 chars or 5 records.

Author: [hidden] (Timitos) Tryton translator
Date: 2021-04-22.14:29:10

Expanding the tree on the account type statement balance report leads to the following error when creating the report.
As the report seems to use the rec_name it may be an option to find a better rec_name implementation.

File "/home/kpreisler/dev/tryton-client/trytondevupstreamnochanges/tryton/common/", line 1113, in process

File "/home/kpreisler/dev/tryton-client/trytondevupstreamnochanges/tryton/action/", line 34, in callback
fp_name = file_write((name, type), data)
File "/home/kpreisler/dev/tryton-client/trytondevupstreamnochanges/tryton/common/", line 491, in file_write
with open(filepath, 'wb') as fp:

OSError: [Errno 36] Der Dateiname ist zu lang: '/tmp/tryton_vrw3tgx4/Statement-Kontentypenplan-SKR03-Germany-Kontentypenplan-SKR03-GermanyAktiva-Kontentypenplan-SKR03-GermanyAktivaAusstehende-Einlagen-Kontentypenplan-SKR03-GermanyAktivaAufwendungen-fur-die-Ingangsetzung-und-Erweiterung-des-Geschaftsbetriebs-Kontentypenplan-SKR03-GermanyAktivaAufwendungen-fur-die-Wahrungsumstellung-auf-den-Euro__14.odt'

Date User Action Args
2021-04-29 12:23:26reviewbotsetmessages: + msg67066
2021-04-29 11:12:54reviewbotsetmessages: + msg67052
nosy: + reviewbot
2021-04-29 11:06:24Timitossetreviews: 332771003
status: in-progress -> testing
2021-04-29 10:38:20Timitossetreviews: 344101002 -> (no value)
2021-04-29 10:37:46Timitossetassignedto: Timitos
status: chatting -> in-progress
2021-04-29 10:36:42Timitossetkeyword: + review
reviews: 344101002
2021-04-23 18:17:10cedsetmessages: + msg66867
nosy: + ced
status: unread -> chatting
2021-04-22 16:01:34pokolisetnosy: + pokoli
2021-04-22 14:29:10Timitoscreate

Showing 10 items. Show all history (warning: this could be VERY long)