[TYPO3-core] RFC #16342 : Bug: TCA tree throws Fatal error on displaying deleted records

Steffen Ritter info at rs-websystems.de
Tue Nov 23 11:32:30 CET 2010


Am 23.11.2010 11:19, schrieb Steffen Kamper:
>> Change the call to getRecordWSOL not to use the deleteClause, since
>> some "layer" below already would have to check if the node is about to
>> be shown. The call only is to display the correct overlaid information.
>>
>
> i don't get it - how is "to display the correct overlaid information"
> related to not showing deleted records? And if NULL is returned, doesn't
> it mean there is no record?


getRecordWSOL returns null if there is no record - right.
There is no record, if it is deleted and the deleteClause is evaluated.

There are, two levels in the Data-Provider, one building the tree on 
nothing else as uids - this checks if deleted records are included, 
pages are allowed etc. It's on "create" of the Provider*.

the function buildRepresentationNode is called whenever a node is 
requested for display - the uid is fetched, and the other informatione 
are queried - like title, type etc, and information about "how the node 
has to look" is build and returned.

At this very point, no checks have (and need to take place). If a 
already deleted node is queried at this point, it already has been 
checked that this one explicetly has to be displayed.

The function, just generating a complete view for an already existing 
Node is not meant to be to return NULL.

Therefore, the checks in getRecordWSOL have to be deactivated.

regards

Steffen


* the fix of this ACL-layer checks will be presented as second rfc


More information about the TYPO3-team-core mailing list