Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating FOF to 2.4.1 (solves major issue in Control Panel) #5236

Merged
merged 2 commits into from
Nov 28, 2014
Merged

Updating FOF to 2.4.1 (solves major issue in Control Panel) #5236

merged 2 commits into from
Nov 28, 2014

Conversation

nikosdion
Copy link
Contributor

Executive summary

This PR updates the FOF version included in Joomla! to FOF 2.4.1. This is required to fix a major bug in com_postinstall (Post Installation Messages) which results in the Joomla! Control Panel displaying a SQL error complaining about invalid SQL. This is a show stopper bug affecting a small but significant number of people (they've started asking me about it directly, that's how I found out).

Technical description

When updating some sites to Joomla! 3.3.6 you get a strange situation where the filter_order user state is set to an empty string and the FOF table cache is broken. This leads to PostinstallModelMessages to generate an invalid SQL query ending in ORDER BY `` ASC (note the empty column name). This happens because FOFModel lacks a safeguard against ordering by an empty column. Moreover, it is possible to set the filter_order_Dir user state to something other than ASC/DESC, also resulting in invalid SQL because there is no check on the validity of its value.

Test instructions

Before installing this PR go to Components, Post-Installation Messages. Edit the URL at the top of the page and append &filter_order_Dir=foobar. You get an immediate error message.

Install this PR. Repeat the steps above. There is no SQL error and the component works correctly.

Also check that after installing the PR you can hide post-installation messages, show them again and that the Two Factor Authentication still works.

Backwards compatibility

This new version of FOF is fully backwards compatible with the one already shipped with Joomla!.

Translation impact

There are no translation strings added

@wilsonge
Copy link
Contributor

File permissions again :)

@nikosdion
Copy link
Contributor Author

Dammit. Git hates me! I always file permissions and uppercase/lowercase woes. Let me try again...

@wilsonge
Copy link
Contributor

Looks awesome! Thanks man!

@brianteeman
Copy link
Contributor

@test - issue confirmed and patch resolves it

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5236.

@infograf768 infograf768 added this to the Joomla! 3.4.0 milestone Nov 28, 2014
@infograf768
Copy link
Member

OK here. Thanks.

infograf768 added a commit that referenced this pull request Nov 28, 2014
Updating FOF to 2.4.1 (solves major issue in Control Panel)
@infograf768 infograf768 merged commit 4553635 into joomla:staging Nov 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants