benjaminkott / benjaminkott/bootstrap_package

Exception while deleting Timeline record (recycler)

Open
#1,405 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

# Bug Report

## Prerequisites

* [ ] Can you reproduce the problem on TYPO3 v11.5 LTS
* [x] Can you reproduce the problem on TYPO3 v12.4 LTS
* [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package)
to see if your bug or enhancement is already reported?

## Description

Wenn deleting a Timeline record in the recycler module, the following exception is thrown:

```
PHP Warning: Trying to access array offset on value of type null in /var/www/work/iak-clone-website/site/vendor/bk2k/bootstrap-package/Classes/Userfuncs/Tca.php line 18
```

## Steps to Reproduce

1. Delete a Timeline record
2. Start recycler module
3. delete or batch delete the record permanently

### Expected behavior

Delete the record without exception.

### Actual behavior

Exception thrown because of invalid array offset.

### Screenshots

![exception](https://github.com/benjaminkott/bootstrap_package/assets/2939625/d7bef751-8f6a-4bbb-a6b9-8046526e349a)

## Versions

```
bacon/bacon-qr-code 2.0.8 BaconQrCode is a QR code generator for PHP.
bk2k/bootstrap-package 14.0.6 Bootstrap Package delivers a full configured frontend theme for TYPO3, based on t...
christian-riesen/base32 1.6.0 Base32 encoder/decoder according to RFC 4648
dasprid/enum 1.0.4 PHP 7.1 enum implementation
doctrine/annotations 2.0.1 Docblock Annotations Parser
doctrine/cache 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many d...
doctrine/dbal 3.6.4 Powerful PHP database abstraction layer (DBAL) with many features for database sc...
doctrine/deprecations v1.1.1 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with op...
doctrine/event-manager 2.0.0 The Doctrine Event Manager is a simple PHP event system that was built to be used...
doctrine/instantiator 2.0.0 A small, lightweight utility to instantiate objects in PHP without invoking their...
doctrine/lexer 3.0.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent...
egulias/email-validator 4.0.1 A library for validating emails against several RFCs
enshrined/svg-sanitize 0.15.4 An SVG sanitizer for PHP
firebase/php-jwt v6.8.1 A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should confor...
georgringer/numbered-pagination 1.0.5 Improved pagination for TYPO3
guzzlehttp/guzzle 7.7.0 Guzzle is a PHP HTTP client library
guzzlehttp/promises 2.0.0 Guzzle promises library
guzzlehttp/psr7 2.5.0 PSR-7 message implementation that also provides common utility methods
helhum/config-loader v0.12.5 Generic config loader with context and environment support.
helhum/php-error-reporting v1.0.1 Create ErrorException with clean trace from PHP error handler errors, inspired by...
helhum/typo3-console v8.0.3 A reliable and powerful command line interface for TYPO3 CMS
lolli42/finediff 1.0.2 PHP implementation of a Fine granularity Diff engine
masterminds/html5 2.8.0 An HTML5 parser and serializer.
nikic/php-parser v4.16.0 A PHP parser written in PHP
phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.3.0 With this component, a library can provide support for annotations via DocBlocks ...
phpdocumentor/type-resolver 1.7.2 A PSR-5 based resolver of Class names, Types and Structural Element Names
phpstan/phpdoc-parser 1.22.1 PHPDoc parser with support for nullable, intersection and generic types
psr/cache 3.0.0 Common interface for caching libraries
psr/clock 1.0.0 Common interface for reading the clock.
psr/container 2.0.2 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 Standard interfaces for event handling.
psr/http-client 1.0.2 Common interface for HTTP clients
psr/http-factory 1.0.2 Common interfaces for PSR-7 HTTP message factories
psr/http-message 2.0 Common interface for HTTP messages
psr/http-server-handler 1.0.2 Common interface for HTTP server-side request handler
psr/http-server-middleware 1.0.2 Common interface for HTTP server-side middleware
psr/log 3.0.0 Common interface for logging libraries
ralouphie/getallheaders 3.0.3 A polyfill for getallheaders.
roave/security-advisories dev-master 277fc8e Prevents installation of composer packages with known security vulnerabilities: n...
scssphp/scssphp v1.11.0 scssphp is a compiler for SCSS written in PHP.
symfony/cache v6.3.1 Provides extended PSR-6, PSR-16 (and tags) implementations
symfony/cache-contracts v3.3.0 Generic abstractions related to caching
symfony/clock v6.3.1 Decouples applications from the system clock
symfony/config v6.3.0 Helps you find, load, combine, autofill and validate configuration values of any ...
symfony/console v6.3.0 Eases the creation of beautiful and testable command line interfaces
symfony/dependency-injection v6.3.1 Allows you to standardize and centralize the way objects are constructed in your ...
symfony/deprecation-contracts v3.3.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-messenger v6.3.1 Symfony Doctrine Messenger Bridge
symfony/event-dispatcher v6.3.0 Provides tools that allow your application components to communicate with each ot...
symfony/event-dispatcher-contracts v3.3.0 Generic abstractions related to dispatching event
symfony/expression-language v6.3.0 Provides an engine that can compile and evaluate expressions
symfony/filesystem v6.3.1 Provides basic utilities for the filesystem
symfony/finder v6.3.0 Finds files and directories via an intuitive fluent interface
symfony/http-foundation v6.3.1 Defines an object-oriented layer for the HTTP specification
symfony/mailer v6.3.0 Helps sending emails
symfony/messenger v6.3.1 Helps applications send and receive messages to/from other applications or via me...
symfony/mime v6.3.0 Allows manipulating MIME messages
symfony/options-resolver v6.3.0 Provides an improved replacement for the array_replace PHP function
symfony/polyfill-ctype v1.27.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme v1.27.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn v1.27.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.27.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.27.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.27.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80 v1.27.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php83 v1.27.0 Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/polyfill-uuid v1.27.0 Symfony polyfill for uuid functions
symfony/process v6.3.0 Executes commands in sub-processes
symfony/property-access v6.3.0 Provides functions to read and write from/to an object or array using a simple st...
symfony/property-info v6.3.0 Extracts information about PHP class' properties using metadata of popular sources
symfony/rate-limiter v6.3.0 Provides a Token Bucket implementation to rate limit input and output in your app...
symfony/routing v6.3.1 Maps an HTTP request to a set of configuration variables
symfony/service-contracts v3.3.0 Generic abstractions related to writing services
symfony/string v6.3.0 Provides an object-oriented API to strings and deals with bytes, UTF-8 code point...
symfony/uid v6.3.0 Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper v6.3.1 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v6.3.0 Allows exporting any serializable PHP data structure to plain PHP code
symfony/yaml v6.3.0 Loads and dumps YAML files
typo3/class-alias-loader v1.1.4 Amends the composer class loader to support class aliases to provide backwards co...
typo3/cms-adminpanel v12.4.3 TYPO3 CMS Admin Panel - The Admin Panel displays information about your site in t...
typo3/cms-backend v12.4.3 TYPO3 CMS backend
typo3/cms-belog v12.4.3 TYPO3 CMS Log - View logs from the sys_log table in the TYPO3 backend modules Sys...
typo3/cms-beuser v12.4.3 TYPO3 CMS Backend User - TYPO3 backend module System>Backend Users for managing b...
typo3/cms-cli 3.1.0 TYPO3 command line binary
typo3/cms-composer-installers v5.0.0 TYPO3 CMS Installers
typo3/cms-core v12.4.3 TYPO3 CMS Core
typo3/cms-dashboard v12.4.3 TYPO3 CMS Dashboard - TYPO3 backend module used to configure and create backend w...
typo3/cms-extbase v12.4.3 TYPO3 CMS Extbase - Extension framework to create TYPO3 frontend plugins and TYPO...
typo3/cms-extensionmanager v12.4.3 TYPO3 CMS Extension Manager - Backend module (Admin Tools>Extensions) for viewing...
typo3/cms-felogin v12.4.3 TYPO3 CMS Frontend Login - A template-based plugin to log in website users in the...
typo3/cms-filelist v12.4.3 TYPO3 CMS Filelist - TYPO3 backend module (File>Filelist) used for managing files.
typo3/cms-fluid v12.4.3 TYPO3 CMS Fluid Integration - Integration of the Fluid templating engine into TYPO3.
typo3/cms-fluid-styled-content v12.4.3 TYPO3 CMS Fluid Styled Content - Fluid templates for TYPO3 content elements.
typo3/cms-form v12.4.3 TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend...
typo3/cms-frontend v12.4.3 TYPO3 CMS Frontend
typo3/cms-indexed-search v12.4.3 TYPO3 CMS Indexed Search - Provides indexing functionality for TYPO3 pages and re...
typo3/cms-info v12.4.3 TYPO3 CMS Info - TYPO3 backend module for displaying information, such as a paget...
typo3/cms-install v12.4.3 TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, syst...
typo3/cms-lowlevel v12.4.3 TYPO3 CMS Lowlevel - Technical analysis of the system. This includes raw database...
typo3/cms-opendocs v12.4.3 TYPO3 CMS Open Docs - Shows opened documents for the TYPO3 backend user.
typo3/cms-reactions v12.4.3 TYPO3 CMS Reactions - Handle incoming Webhooks for TYPO3
typo3/cms-recycler v12.4.3 TYPO3 CMS Recycler - Restore deleted records or remove them from the database per...
typo3/cms-redirects v12.4.3 TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automa...
typo3/cms-reports v12.4.3 TYPO3 CMS Reports - Show status reports and installed services in the (System>Rep...
typo3/cms-rte-ckeditor v12.4.3 TYPO3 CMS RTE CKEditor - Integration of CKEditor as a Rich Text Editor for the TY...
typo3/cms-scheduler v12.4.3 TYPO3 CMS Scheduler - Schedule tasks to run once or periodically at a specific time.
typo3/cms-seo v12.4.3 TYPO3 CMS SEO - SEO features including specific fields for SEO purposes, renderin...
typo3/cms-setup v12.4.3 TYPO3 CMS Setup - Allows users to edit a limited set of options for their user pr...
typo3/cms-sys-note v12.4.3 TYPO3 CMS System Notes - Records with messages which can be placed on any page an...
typo3/cms-t3editor v12.4.3 TYPO3 CMS T3Editor - JavaScript-driven editor with syntax highlighting and code c...
typo3/cms-tstemplate v12.4.3 TYPO3 CMS TypoScript - TYPO3 backend module for the management of TypoScript reco...
typo3/cms-viewpage v12.4.3 TYPO3 CMS Viewpage - Use the (Web>View) backend module to view a frontend page in...
typo3/cms-webhooks v12.4.3 TYPO3 CMS Webhooks - Handle outgoing Webhooks for TYPO3
typo3/html-sanitizer v2.1.1 HTML sanitizer aiming to provide XSS-safe markup based on explicitly allowed tags...
typo3fluid/fluid 2.9.2 The TYPO3 Fluid template rendering engine
webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Classes/Userfuncs/Tca.php at line 18 and reproduce the failure through the TYPO3 recycler module using a Timeline record. Check the delete and batch-delete paths described in the report; the work is done when permanent deletion completes without the invalid array-offset exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.