Bug #67040

Backend broken on PostgreSQL - missing (string) cast in dbal/DatabaseConnection

Added by Morton Jonuschat 3 months ago. Updated 3 months ago.

Status:Resolved Start date:2015-05-19
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:DBAL Spent time: -
Target version:next-patchlevel
TYPO3 Version:7 Is Regression:Yes
PHP Version:5.6 Sprint Focus:
Complexity:

Description

The backend is completely unusable with TYPO3 CMS 7.1+ in combination with PostgreSQL. Every action/module fails with the message

Oops, an error occurred!

The CSRF protection token for the requested module is missing or invalid

More information regarding this error might be available online.

Versions Prior to 7.1.0 (e.g 7.0.2 or 6.2.12) work fine. A `git bisect` has identified commit 4722b6cf5c97ab415d3d35687ed77750b97e3258 as the likely culprit.


Related issues

related to Core - Bug #67057: DBAL locallang error Closed 2015-05-20
follows Core - Task #54091: Use === operator instead of strlen() to check for zero le... Resolved 2013-11-29

Associated revisions

Revision a27dfad8
Added by Morton Jonuschat 3 months ago

[BUGFIX] Add missing (string) cast in dbal/DatabaseConnection

This is a regression fix for #54091.
It has been forgotten to cast the lastQuery to a string before
checking if it's empty

Resolves: #67040
Related: #54091
Releases: master
Change-Id: I6991cad799e686066f8205749baee4aed20a9127
Reviewed-on: http://review.typo3.org/39625
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Stephan Großberndt <>
Reviewed-by: Wouter Wolters <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Gerrit Code Review 3 months ago

  • Status changed from New 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 http://review.typo3.org/39625

#2 Updated by Stephan Großberndt 3 months ago

  • Subject changed from Backend broken on PostgreSQL to Backend broken on PostgreSQL - missing (string) cast in dbal/DatabaseConnection
  • Target version set to next-patchlevel

#3 Updated by Morton Jonuschat 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF