Ticket #1454 (new defect)

Opened 15 months ago

Last modified 7 weeks ago

Files uploaded with no extension can't be saved if a file with the same name already exists

Reported by: mpeel Owned by: sminnee
Priority: medium Milestone: 2.3.1
Component: CMS - Files and Images section Version:
Severity: medium effort / impact Keywords:
Cc: Hours:

Description

Normally, SilverStripe? will try to add numbers to the end of a filename and then try to save the file again. However, the regexp that runs doesn't take into account files without an extension.

We should either add an extra check to make sure files have extensions, or fix the regexp.

The regexp in question is on line 170 of sapphire/branches/2.0.1-uplay/filesystem/File.php (approx. line 170 elsewhere probably)

Change History

Changed 13 months ago by sminnee

  • owner changed from sminnee to ischommer
  • harvest_task set to (Unknown)
  • priority changed from medium to minor
  • component changed from Sapphire Framework to CMS - Files and Images section
  • milestone set to 2.2.1

2.2.1 will focus on bugfixes such as this.

Changed 10 months ago by sminnee

  • priority changed from minor to medium
  • milestone changed from 2.2.2 feature-lock to 2.2.3 feature-lock

Changed 2 months ago by sminnee

  • owner changed from ischommer to sminnee
  • milestone changed from 2.2.3* to 2.3.0

Changed 7 weeks ago by sminnee

  • milestone changed from 2.3.0 to 2.3.1*
Note: See TracTickets for help on using tickets.