Opened 9 years ago

Closed 9 years ago

#1729 closed defect (fixed)

[patch] Null file path fails to generate filename

Reported by: rhettg@… Owned by: adrian
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@… 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by rhettg@…

comment:1 Changed 9 years ago by anonymous

  • Summary changed from Null file path fails to generate filename to [patch] Null file path fails to generate filename

comment:2 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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