Development

#2945 (solution: broken under windows)

You must first sign up to be able to contribute.

Ticket #2945 (new defect)

Opened 10 months ago

Last modified 1 month ago

solution: broken under windows

Reported by: pihentagy Assigned to: Kris.Wallsmith
Priority: major Milestone:
Component: sfMediaLibraryPlugin Version: 1.0.11
Keywords: windows separator filename os-independent Cc:
Qualification: Unreviewed

Description

Installing under windows does not work.

It displays absolute filename, but excepts relative ones.

Hint: instead of using '/' try DIRECTORY_SEPARATOR, but this is not enough, can't fix myself

Attachments

sfMediaLibrary.png (18.3 kB) - added by pihentagy on 02/15/08 17:04:08.

Change History

02/15/08 17:04:08 changed by pihentagy

  • attachment sfMediaLibrary.png added.

02/29/08 11:48:00 changed by pihentagy

Please review this thread also. http://www.symfony-project.org/forum/index.php/m/37520/

Since it leaks out the physical directory of the media plugin and makes it unusable, I would raise the priority...

02/29/08 13:22:25 changed by pihentagy

  • summary changed from broken under windows to solution: broken under windows.

change line 44 of file BasesfMediaLibraryActions?.class.php from

    $this->absCurrentDir = $this->uploadDir.'/'.$currentDir;

to

    $this->absCurrentDir = empty($currentDir) ? $this->uploadDir : $this->uploadDir.'/'.$currentDir;

02/29/08 13:44:54 changed by pihentagy

  • priority changed from minor to major.

This should also fix #2416

10/31/08 19:28:23 changed by Kris.Wallsmith

  • owner changed from francois to Kris.Wallsmith.