Issue Bug Closed

#102512SyntaxError: Unexpected end of JSON input on installing extensions via ExtensionManager

Oliver Bartsch 11/24/23, 16:41 updated 07/09/24, 15:12

Description

In case installing a extension, which contains code to stop the PHP request,
e.g. a die(); statement, the following JavaScript error occurs:

Uncaught (in promise) SyntaxError: Unexpected end of JSON input at repository.js

Using such statement is common as extensions previously contained checks like

defined('TYPO3_MODE') or die();

Because this variable does no longer exist, the request is stopped.

Reviews 2

History 27

  1. Gerrit Code Review pushed patch set 1 for main to change 81956 status New Under Review 11/24/23, 16:49

  2. Gerrit Code Review pushed patch set 2 for main to change 81956 11/24/23, 17:47

  3. Gerrit Code Review pushed patch set 3 for main to change 81956 11/24/23, 17:52

  4. Gerrit Code Review pushed patch set 4 for main to change 81956 11/26/23, 17:50

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 81966 11/26/23, 18:16

  6. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 11/26/23, 19:55

    Applied in changeset commit:620b199bbedb52d87207ff9fb4d5b7474bc1418e.

  7. Benni Mack changed status Resolved Closed 07/09/24, 15:12