Easy redirects for update managers

If you have any 'mechanical' forge related issues/suggestions, pop them in here.

Moderators: RussW, ChiefGoFor

Locked
ewel
Joomla! Guru
Joomla! Guru
Posts: 522
Joined: Mon Oct 01, 2007 11:35 am

Easy redirects for update managers

Post by ewel » Sun Dec 27, 2009 4:37 pm

Today i was reminded of something I wanted to suggest as an improvement of JoomlaCode.

There are several update managers in circulation, and all seem to work well. However, when I took those as an example to create my own updater in a standalone malware removal script, I realised that all update managers are struggling with the same two problems:
1) There is no URL where some PHP code can check what the latest Joomla version is; and
2) For some PHP code to download an update package, part of the URLs of update packages needs to be hard-coded by hand because there is no logic in them. What I mean is the second number (45628) in a URL like this: http://joomlacode.org/gf/download/frsrelease/11395/45628/Joomla_1.5.14_to_1.5.15-Stable-Patch_Package.zip.

I am leaving out the third problem here, which is that there is no file in Joomla which can easily be read by some PHP code to check the version currently in use.

Some update extensions solve this by reading and dissecting Joomla download webpages, others by calling home to the server of their developer to read an XML file with updated information. I just hard-coded some URLs.

My suggestion is that JoomlaCode or another Joomla website makes use of one of the extensions available for redirecting, so that some easy permanent URLs can be made available for update scripts.

Ad 1) For example, a file containing no more than "1.5.15" could be made available under a redirect URL like http://joomlacode.org/Joomla_latest_version_txt
Ad 2) For example, the following URL could be made available which will redirect to the above URL: http://joomlacode.org/Joomla_1.5.14_to_1.5.15-Stable-Patch_Package.zip

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13419
Joined: Fri Aug 12, 2005 12:38 am
Location: Sydney - Australia
Contact:

Re: Easy redirects for update managers

Post by brad » Sun Dec 27, 2009 8:16 pm

Have you seen how Sam's update script handles this issue? http://extensions.joomla.org/extensions ... llers/9332
Brad Baker
https://xyzulu.hosting
https://www.joomlatutorials.com <-- Joomla Help & Tutorials

ewel
Joomla! Guru
Joomla! Guru
Posts: 522
Joined: Mon Oct 01, 2007 11:35 am

Re: Easy redirects for update managers

Post by ewel » Sun Dec 27, 2009 11:26 pm

Yes, I had seen that, and that's what I meant by some solving it by calling home to read an XML file with updated information. It would be great if there was a Joomla URL to call home to.

User avatar
brad
Joomla! Master
Joomla! Master
Posts: 13419
Joined: Fri Aug 12, 2005 12:38 am
Location: Sydney - Australia
Contact:

Re: Easy redirects for update managers

Post by brad » Sun Dec 27, 2009 11:41 pm

I think the 'hard coded' page you would want to focus on is: http://www.joomla.org/download.html

If the Production Team (Dev team) consider it necessary for us to host a .html page (better than a .txt file from my perspective managing the project's infrastructure) they will do doubt request it.

I suggest you perhaps post this suggestion on the relevant developer list and see what the developers have to say about this. I don't think this is something we need to host on JoomlaCode or something for the JoomlaCode admins to handle until the Joomla Production WG makes a call about it.
Brad Baker
https://xyzulu.hosting
https://www.joomlatutorials.com <-- Joomla Help & Tutorials


Locked

Return to “JoomlaCode.org”