Opened 8 years ago

Closed 8 years ago

#4216 closed (wontfix)

FileField validator bug in django0.95

Reported by: yi.codeplayer at gmail dot com Owned by: adrian
Component: Validators Version: 0.95
Severity: Keywords: FileField validator
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


in file django/db/models/fields/ line 567 (i.e. the second line in function isWithinMediaRoot),
change it from

if not f.startswith(os.path.normpath(settings.MEDIA_ROOT)):


if not f.startswith(os.path.abspath(settings.MEDIA_ROOT)):

i.e. change normpath to abspath.

It's fixed in later django version, but still in django 0.95 .

Change History (1)

comment:1 Changed 8 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

Django 0.95 was a particular release. It's not a moving target. So, yes, any bugs in 0.95 will remain there forever. The bugs that were fixed from 0.95 are in the 0.96 release.

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