Project

General

Profile

Actions

Bug #58050

closed

Using gridelements without EXT:workspaces gives SQL-warnings

Added by Stefan Neufeind about 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-04-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Gridelements seems to somewhere still create SQL-queries with a workspace-parameter although EXT:worksapces is not loaded (and the DB does not have those extra column). This happened to me in the page-module.

exec_SELECTquery
caller TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
ERROR Unknown column 'workspace' in 'where clause'
lastBuiltQuery SELECT * FROM sys_refindex WHERE tablename='tt_content' AND recuid=101 AND workspace=0 ORDER BY sorting
debug_backtrace require(typo3_src-git/typo3/sysext/recordlist/mod1/index.php),typo3_src-git/typo3/mod.php#45 // TYPO3\CMS\Recordlist\RecordList->main#44 // TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList->generateList#345 // GridElementsTeam\Gridelements\Xclass\DatabaseRecordList->getTable#446 // GridElementsTeam\Gridelements\Xclass\DatabaseRecordList->renderListRow#324 // GridElementsTeam\Gridelements\Helper\Helper->getChildren#826 // TYPO3\CMS\Version\Dependency\ElementEntity->getChildren#41 // TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTgetRows#225 // TYPO3\CMS\Core\Database\DatabaseConnection->debug#369

Actions #1

Updated by Jo Hasenau about 10 years ago

  • Category set to 1363
  • Status changed from New to Needs Feedback
  • Assignee set to Dirk Hoffmann
  • Priority changed from Should have to Must have

Since the XCLASS is still based on TYPO3 6.0.x code, I guess this will be fixed after applying the changes between 6.0 and 6.2

Actions #2

Updated by Stefan Neufeind about 10 years ago

This appeared with the latest git-master. Are there pending changes for 6.2 somewhere, which we might help to review? Nothing open in gerrit at the moment.

Actions #3

Updated by Jo Hasenau about 10 years ago

Actually there are no pending changes, but we have to make a DIFF between the list module in 6.0 and 6.2 and then merge that into the current XCLASS.

Actions #4

Updated by Jo Hasenau about 10 years ago

  • Status changed from Needs Feedback to Accepted
Actions #5

Updated by Jo Hasenau about 10 years ago

  • Assignee changed from Dirk Hoffmann to Ernesto Baschny

It seems that the problem lies in a core class:

\TYPO3\CMS\Version\Dependency\ElementEntity::getChildren

In line 223 there is:

$where = 'tablename=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->table, 'sys_refindex') . ' AND recuid='
                . $this->id . ' AND workspace=' . $this->dependency->getWorkspace();

As far as I understood, versioning should be independent from workspaces, so there is a check missing.
I will move this issue to the core tracker for further discussion.

Actions #6

Updated by Jo Hasenau about 10 years ago

  • Project changed from 2513 to 624
  • Category deleted (1363)
Actions #7

Updated by Michael Stucki about 10 years ago

  • Project changed from 564 to TYPO3 Core
Actions #8

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29710

Actions #9

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29710

Actions #10

Updated by Oliver Hader about 10 years ago

  • Status changed from Under Review to Needs Feedback
  • Assignee deleted (Ernesto Baschny)
  • Priority changed from Must have to Could have
  • Is Regression set to No

The field "workspaces" of the table "sys_refindex" is defined in the "core" system extension. Please upgrade SQL schema first before modifying the codes...

Actions #11

Updated by Alexander Opitz over 9 years ago

Hi Stefan,

is this issue solved for you with the hint from Oliver?

Actions #12

Updated by Stefan Neufeind over 9 years ago

  • Status changed from Needs Feedback to Rejected

Didn't manage to reproduce it anymore on current master. Thanks for taking a look though.

Actions

Also available in: Atom PDF