Project

General

Profile

Actions

Bug #100756

closed

JavaScript errors in install tool

Added by Simon Schaufelberger about 1 year ago. Updated almost 1 year ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2023-04-26
Due date:
% Done:

100%

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

Description

I have updated my TYPO3 core test environment running on PHP 8.1 and nginx and the backend is running find but the install tool is not working at all. These are the console errors that I get:

Browser: Firefox 105 under Ubuntu 18 (latest released version)

After some git checkouts I've noticed that the first breaking commit is this one: https://github.com/TYPO3/typo3/commit/df97f469c1d8e0c00fcee34d04384d813341ec62 which updates some npm dependencies. It seams like Firefox 105 is not compatible with them.


Files

ContentSecurityPolicy.png (76.9 KB) ContentSecurityPolicy.png Simon Schaufelberger, 2023-04-26 09:13

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #100805: TypeError: Error resolving module specifier "@typo3/install/install.js"Closed2023-05-04

Actions
Actions #1

Updated by Simon Schaufelberger about 1 year ago

  • Related to Feature #99499: Introduce Content Security Policy handling added
Actions #2

Updated by Simon Schaufelberger about 1 year ago

  • Description updated (diff)
Actions #3

Updated by Simon Schaufelberger about 1 year ago

  • Description updated (diff)
Actions #4

Updated by Simon Schaufelberger about 1 year ago

  • Description updated (diff)
Actions #5

Updated by Simon Schaufelberger about 1 year ago

  • Description updated (diff)
Actions #6

Updated by Simon Schaufelberger about 1 year ago

  • Description updated (diff)
Actions #7

Updated by Simon Schaufelberger about 1 year ago

  • Subject changed from Content Security Policy errors in install tool to JavaScript errors in install tool
  • Description updated (diff)
  • Category set to Backend JavaScript
Actions #8

Updated by Simon Schaufelberger about 1 year ago

  • Related to deleted (Feature #99499: Introduce Content Security Policy handling)
Actions #9

Updated by Andreas Kienast about 1 year ago

  • Status changed from New to Needs Feedback

Does your nginx server already set CSP headers that might be incompatible? I just tested this with Firefox 112 on Fedora 38 and everything works as intended here.

Actions #10

Updated by Andreas Kienast about 1 year ago

Wait, the source of the CSP violations is "moz-extension". Can you please check whether you have a browser extension installed that may cause the issue?

Actions #11

Updated by Simon Schaufelberger about 1 year ago

Andreas Fernandez wrote in #note-9:

Does your nginx server already set CSP headers that might be incompatible? I just tested this with Firefox 112 on Fedora 38 and everything works as intended here.

no, it doesn't.

Wait, the source of the CSP violations is "moz-extension". Can you please check whether you have a browser extension installed that may cause the issue?

Yes, that is one of my addons. I've just done the whole thing in an incognito window and there the error messages are gone but as mentioned in the description before, the main issue is not CSP but a npm dependency issue even though I don't see the actual error in the console.

The last working commit is 3c54a7f97baa83ec66cc0404a6fa4372e6220a4c and the first breaking one is df97f469c1d8e0c00fcee34d04384d813341ec62

Actions #12

Updated by Andreas Kienast about 1 year ago

  • Status changed from Needs Feedback to Accepted

Confirmed with Firefox ESR (currently 102). There seems to be an incompatibility with es-module-shims.

Actions #13

Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78881

Actions #14

Updated by Andreas Fernandez almost 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Oliver Hader 12 months ago

  • Is duplicate of Bug #100805: TypeError: Error resolving module specifier "@typo3/install/install.js" added
Actions

Also available in: Atom PDF