Opened 18 years ago

Closed 18 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: no UI/UX: no

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@… 18 years ago.

Download all attachments as: .zip

Change History (3)

by rhettg@…, 18 years ago

Attachment: NullPath.diff added

comment:1 by anonymous, 18 years ago

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

comment:2 by Adrian Holovaty, 18 years ago

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