? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
12 Jun 2017

On a multilingual site, when associations are enabled, the articles model will throw an error because the group_by clause doesn't contain all selected columns. Which is a requirement in MySQL strict mode.

Summary of Changes

Adds the missing a.modified column to the group

Testing Instructions

  • Make sure you have at least two languages installed (french should work) and associations are enabled
  • Try accessing the articles manager

Expected result

Article list

Actual result

Error page

Documentation Changes Required

None

avatar Bakual Bakual - open - 12 Jun 2017
avatar Bakual Bakual - change - 12 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jun 2017
Category Administration com_content
avatar wilsonge
wilsonge - comment - 12 Jun 2017

@csthomas or @alikon can you check if this is required for postgres in staging? I know mysql strict and postgres have similar requirements

avatar alikon
alikon - comment - 12 Jun 2017

i'll check for postgresql in 3.7.x staging , but i suspect for MSsql too

avatar wilsonge
wilsonge - comment - 12 Jun 2017

Thanks! This PR is clearly fine. Just want to check if it needs to go via staging

avatar infograf768
infograf768 - comment - 12 Jun 2017

I guess no use in staging as no strict sql

avatar Bakual
Bakual - comment - 12 Jun 2017

I guess no use in staging as no strict sql

The thing is that PostgreSQL always uses strict. So George is right that this fix should go into staging instead. However looking at the respective code at https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/models/articles.php#L206, this column isn't the only one missing there ?

avatar infograf768
infograf768 - comment - 12 Jun 2017

well, we may have that issue in many places as the changes in 4.0 are related to strict sql. See all recent patches on this: #12494 and thereafter.

avatar Bakual
Bakual - comment - 12 Jun 2017

I know. That's one reason why Joomla on PostgreSQL most likely is broken badly. ?

avatar alikon
alikon - comment - 12 Jun 2017

tested as per test instruction
on a fresh postgresql latest staging (3.7.x) multilanguage 3(it,fr,gb)
however articles manager seems to works fine to me ?

avatar wilsonge wilsonge - change - 12 Jun 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-12 18:39:10
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 12 Jun 2017
avatar wilsonge wilsonge - merge - 12 Jun 2017
avatar wilsonge
wilsonge - comment - 12 Jun 2017

If not required for 3.x all good by me!

avatar Bakual
Bakual - comment - 12 Jun 2017

The wonders of databases we don't have to understand ?

Add a Comment

Login with GitHub to post a comment