Project

General

Profile

Actions

Bug #90563

closed

Widgets are executed, even if they are not used

Added by Michael Schams over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Dashboard
Target version:
Start date:
2020-02-28
Due date:
% Done:

0%

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

Description

I have the impression that data is loaded for all widgets that are installed, even if no user has added them to any dashboard (so they are not used).
I understand that this is more a design/concept issue, rather than a bug.

How to reproduce

Assumption: the SimpleFileBackend is used.

  • I am the only BE user in the system and I removed all widgets from the default dashboard, except for the TYPO3 News.
  • I deleted all files in typo3temp/var/cache/data/dashboard_rss/ and accessed the dashboard.
  • Two new files are stored in the cache directory: the data for the "TYPO3 News" and the for the "TYPO3 Security advisories".
  • I expected only one file ("TYPO3 News"), not the "TYPO3 Security advisories".

Background

There are two main issues with the current behavior: performance and privacy.

If all installed widgets are triggered, no matter if they are used or not, this would clearly have a performance impact. In particular if a number of widgets are installed that execute resource-hungry operations or external services (e.g. remote API calls).

Widgets that access external services by executing API calls, inform the remote service about the originating IP address of the TYPO3 site. There is not much you can do about this, but in the light of minimizing this action, a TYPO3 instance should not establish connections to remote services if this is not required. If no user uses the widget in question, the widget should not be executed.

Uninstalling the extension that provides the widget is not an option as the administrator user (or integrator) cannot know which widgets are used by the BE users, or will be used in the future.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90660: Allow creation of Widgets through API using only configurationClosedDaniel Siepmann2020-03-06

Actions
Actions

Also available in: Atom PDF