View Issue Details

IDProjectCategoryView StatusLast Update
0001814Composrcore_addon_managementpublic2015-03-05 13:33
ReporterPatrick SchmalstigAssigned To 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0001814: 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.
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2015-03-03 05:52

administrator  

Untitled.jpg (536,765 bytes)

Patrick Schmalstig

2015-03-03 05:55

administrator  

Untitled2.jpg (480,300 bytes)

Patrick Schmalstig

2015-03-03 05:55

administrator  

Untitled3.jpg (461,835 bytes)

Patrick Schmalstig

2015-03-03 05:55

administrator  

Untitled4.jpg (477,893 bytes)

Patrick Schmalstig

2015-03-03 05:56

administrator   ~0002585

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

reporter   ~0002587

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."

Brat Rat

2015-03-04 13:50

reporter   ~0002589

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

Chris Graham

2015-03-05 13:33

administrator   ~0002592

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   ~0002593

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   ~0002594

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/).

hotfix-1814, 2015-03-05 2pm.tar (104,960 bytes)

Issue History

Date Modified Username Field Change