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
0016847phplist applicationpluginspublic24-08-13 17:5501-09-13 18:45
PrioritynormalSeveritymajorReproducibilityhave not tried
PlatformOSOS Version
Product Version3.0.2 
Target Version3.0.XFixed in Version3.0.4 
Summary0016847: Plugin update failed due to caching
DescriptionWhen updating a plugin using the update button on the plugin page, I kept getting the message "Plugin installation failed" even though the plugin zip file could be manually downloaded from GitHub.

Looking into the problem showed a few issues:
the function fetchUrl() is used to get the zip file. This function seems to cache the retrieved content in the urlcache table or the global $urlcache. This doesn't seem correct for the case of retrieving a plugin file. The file should always be retrieved.

When the retrieved content is stored in the urlcache table, the definition of the content column, long text,is incompatible with holding a binary file such as a zip file. In the two cases that I looked at, the zip file content had been truncated in the table. It was this truncated content that was causing the 'Plugin installation failed' message, due to a badly-formed zip file.

After replacing fetchUrl() with the php function file_get_contents(), I could reliably update the plugins.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker