HiCurrently in Joomla 3.0.2 you can't install an extension directly from an URL, if said URL is dynamically created using a tool like ARS or cTransifex. It only works if the URL is pointing to the real file or has a valid filename behind the latest slash. Stuff like 'www.domain.com/download.html?dlid=06d028362cf9256ac96619571aa0ed8c&jcompat=my.zip' doesn't work.
The fix is quite simple: The function which fetchs the package (JInstallerHelper::downloadPackage()) used to get the header data using stream_get_meta_data() and this got changed to JHttpFactory::getHttp(). But apparently the check for the filename in 'Content-Disposition' is still done in the old place.I've done the PR (https://github.com/joomla/joomla-platform/pull/1795) in the platform to fix this. But since the installer got moved to libraries/legacy, I'm not even sure if the platform is the right place for it. However in CMS it's still in the /libraries/joomla tree.I think it would be a rather important fix as a core function is broken in some cases.
El domingo, 13 de enero de 2013 10:36:02 UTC+1, Bakual escribió:
> Hi
>
> Currently in Joomla 3.0.2 you can't install an extension directly from an URL, if said URL is dynamically created using a tool like ARS or cTransifex. It only works if the URL is pointing to the real file or has a valid filename behind the latest slash. Stuff like 'www.domain.com/download.html?dlid=06d028362cf9256ac96619571aa0ed8c&jcompat=my.zip' doesn't work.
>
> The fix is quite simple: The function which fetchs the package (JInstallerHelper::downloadPackage()) used to get the header data using stream_get_meta_data() and this got changed to JHttpFactory::getHttp(). But apparently the check for the filename in 'Content-Disposition' is still done in the old place.
>
> I've done the PR (https://github.com/joomla/joomla-platform/pull/1795) in the platform to fix this. But since the installer got moved to libraries/legacy, I'm not even sure if the platform is the right place for it. However in CMS it's still in the /libraries/joomla tree.
>
> I think it would be a rather important fix as a core function is broken in some cases.
Seems that it finally didn't make it to 3.0.3... Any plan for integrating the patch in 3.0.4? I also find this a rather critical issue...
--
+1
Best,
Matt Thomas
Founder betweenbrain™
Lead Developer Construct Template Development Framework
Phone: 203.632.9322
Twitter: @betweenbrain
Github: https://github.com/betweenbrain
Composed and delivered courtesy of Nexus 7.
I'm all in for a modular design pattern. It apparently works. :D
--
The ISS is a good example of tightly coupled dependancies built with a modular architecture (aka the Joomla CMS).
How about my Orbital Design Pattern
The core libraries (nucleus) and its files (quarks) will remain tightly coupled, yet light, portable, and extensible.
"Orbits" can be groups of modules or even other libraries dependent on the core.So when making updates or changes to something, only it's orbit and direct descendants (if any) are concerned.
Eventually... we'll end up with string theory.