NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016782phplist applicationpluginspublic01-05-13 20:5203-05-13 02:28
PlatformOSOS Version
Product Version2.11.9 
Target Version2.11.10Fixed in Version2.11.10 
Summary0016782: Update plugin does not overwrite directory
DescriptionWhen updating a plugin the php rename() function does not appear to reliably overwrite an existing directory. On both linux and windows (WAMP) the rename fails for a directory which already exists, but does replace a file that already exists.

see file admin/plugins.php line 108

It is not a permissions problem because I can install and remove the plugin, and then install it again.

Possibly need to treat an update as a remove followed by an install to avoid this problem.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
support (administrator)
01-05-13 21:16

good you found that
michiel (manager)
03-05-13 02:28

interesting in a way. Wonder if this is a PHP bug. The docs say on "rename":

Attempts to rename oldname to newname, moving it between directories if necessary. If newname exists, it will be overwritten.

but obviously that was not the case.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker