joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.77k stars 3.65k forks source link

[5.3] fix preprocess rule if contains alias (pgsql) #44459

Closed heelc29 closed 5 days ago

heelc29 commented 1 week ago

Summary of Changes

fix database exception in preprocessrule (new in #43992)

Only with PostgreSQL database

Testing Instructions

Actual result BEFORE applying this Pull Request

PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type integer: "xx:xxx"
CONTEXT:  unnamed portal parameter $1 = '...'

redirect to home menu item (see also systemtests in upmerge pr #44456)

Expected result AFTER applying this Pull Request

redirect to contact menu item

Link to documentations

Please select:

richard67 commented 1 week ago

I have tested this item :white_check_mark: successfully on 998dfad63721fc2b7e633517206057f0b6a7268a

Hint for other testers: The error mentioned in the actual result of the testing instructions is not shown anywhere on the site. It can be found in the database server log, e.g. on Ubuntu with PostgreSQL 14 in file "/var/log/postgresql/postgresql-14-main.log".


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

richard67 commented 1 week ago

@alikon Could you test this PR here with PostgreSQL?