Project

General

Profile

Actions

Bug #16636

closed

INSERT cache_hash ident value needs to be truncated to 20 chars manually

Added by Michiel Roos about 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-10-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When inserting a cache_hash the field 'ident' is a length of 20. When the string is longer, MySQL will just truncate the value.

Postgres however, will not. It will fail the insert and throw an error.

This is bad. ;-)

This can be fixed by manually truncating the value that goes into 'ident' to 20 chars.

(issue imported from #M4363)


Files

class.t3lib_page.php.diff (466 Bytes) class.t3lib_page.php.diff Administrator Admin, 2006-10-10 16:02
class.t3lib_befunc.php.diff (339 KB) class.t3lib_befunc.php.diff Administrator Admin, 2006-10-10 16:02
Actions #1

Updated by Martin Kutschker about 18 years ago

No, the solution is wrong. The documentation clearly says that the ident may only be 20 chars long. So it's up to the caller to supply correct values.

I suggest we close the bug (no-fix) and you file a bug with for the code (Core or extension) that produces the error.

Perhaps we could make the field longer to allow for tx_<extkey>_<info>. 20 chars is probably to small for such an ident.

Actions #2

Updated by Karsten Dambekalns about 18 years ago

Full ACK.

Actions #3

Updated by Karsten Dambekalns about 18 years ago

As has been pointed out, this field is not supposed to hold more than 20 characters.

Please file a new bug report on the component that actually tries to do that - it should be fixed.

Actions #4

Updated by Michiel Roos about 18 years ago

Please remark as resolved . . .

Just to let you know that the essence of this bug lives on as:

http://bugs.typo3.org/view.php?id=4460

Template autoparser is the culprit.

Actions

Also available in: Atom PDF