View Issue Details

IDProjectCategoryView StatusLast Update
1814Composrcore_addon_managementpublic2015-03-05 13:33
ReporterPDStig Assigned ToGuest  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary1814: Updating addons results in an addon not supported error
DescriptionWhen trying to update non-bundled addons from Composr (after doing the 9.0.17 update), trying to update addons leaves with an error basically saying the file type "" is not allowed. This error continues even after removing file extension restrictions in security configuration. In order to update the addons, I had to manually do it by downloading the updated addons from Composr and then uploading them through the addon management.


I should have taken a screenshot of the error, but I will try to post it once I get the daily digest.
Steps To Reproduce1. Have an old version of something like Activity Feed addon installed.
2. Upgrade to 9.0.17
3. Attempt to update the addons.
4. You get the addon not supported error.
TagsNo tags attached.
Attach Tags
Attached Files
Untitled.jpg (536,765 bytes)
Untitled2.jpg (480,300 bytes)
Untitled3.jpg (461,835 bytes)
Untitled4.jpg (477,893 bytes)
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2015-03-03 05:56

administrator   ~2585

Screenshots of stack trace uploaded. Most important is Untitled and Untitled2. Untitled shows error message. Untitled2 shows possible cause... where it sends the tmp file generated by addon updater through a file extension check.

Jason Verhagen

2015-03-03 18:32

developer   ~2587

I can also confirm the same issue after updating one of my sites to 9.0.17. Going to adminzone->structure->addons, selecting the 'Import updated addons' link, and then attempting to import those addons results in a stack trace. In my case, the first argument of the check_extension function is showing my domain name 'www.tfo.net' and my error message says "Sorry, but 'net' files can not be uploaded."

Guest

2015-03-04 13:50

reporter   ~2589

I am also getting this error saying "com" and "org" files are not allowed.

Chris Graham

2015-03-05 13:33

administrator   ~2592

Sorry for the bug guys. Our adjusted input filtering was being over-zealous, didn't allow reference to any off-site URLs, while previously this limitation was more focused. It probably affects a few other corners of Composr also. Not an intentional change, but we adjusted our code a lot when reviewing it. Hot-fix coming.

Chris Graham

2015-03-05 13:35

administrator   ~2593

Automated response: Addon installation from compo.sr broken

Addon installation does not work when installing via selecting direct from compo.sr. This is due to the upgraded input-filter being over-zealous with controlling allowed URLs within the system.

Chris Graham

2015-03-05 13:35

administrator   ~2594

Fixed in git commit a991473 (https://github.com/chrisgraham/Composr/commit/a991473 - link will become active once code pushed to github)

A hotfix (a TAR of files to upload) have been uploaded to this issue. These files are made to the latest intra-version state (i.e. may roll in earlier fixes too if made to the same files) - so only upload files newer than what you have already. Always take backups of files you are replacing or keep a copy of the manual installer for your version, and only apply fixes you need. These hotfixes are not necessarily reliable or well supported. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change