Opened 11 years ago

Closed 11 years ago

#1729 closed defect (fixed)

[patch] Null file path fails to generate filename

Reported by: rhettg@… Owned by: Adrian Holovaty
Component: Core (Other) Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you have a file field that is null, calling get_FIELD_filename will result in an exception from os.path.join.

I created a simliar solution already implemented in get_FIELD_url to avoid this problem.

Attachments (1)

NullPath.diff (637 bytes) - added by rhettg@… 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by rhettg@…

Attachment: NullPath.diff added

comment:1 Changed 11 years ago by anonymous

Summary: Null file path fails to generate filename[patch] Null file path fails to generate filename

comment:2 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2839]) Fixed #1729 -- Changed get_FIELD_filename() to return an empty string when field fiel's value is null. Thanks, rhettg@…

Note: See TracTickets for help on using tickets.
Back to Top