Problem/Motivation

Drupal\Core\Config\UnsupportedDataTypeConfigException: Invalid data type in config micon.micon.fa, found in file modules/contrib/micon/config/install/micon.micon.fa.yml : pcre.backtrack_limit reached. in Drupal\Core\Config\FileStorage->read() (Zeile 118 in /web/core/lib/Drupal/Core/Config/FileStorage.php).

appears on install. Any idea how that can happen?

Steps to reproduce

Install micon and micon_link

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Anybody created an issue. See original summary.

anybody’s picture

Might be fixed with the schema changes in #3271002: Fix coding standards, add installation test and fix schema errors I guess?

@Grevil does this make sense to you?

grevil’s picture

No, I don't think this has anything to do with the schema. The module is calling PCRE (Perl Compatible Regular Expression) functions during handling the font-awesome config yaml (fa) and somehow exceeds the backtrack_limit. This limit is apparently exceeded, when the match() function is called more than 1.000.000 times recursively, see here.

I don't know how this is exceeded and what the purpose of the fa.yml is for.

anybody’s picture

Title: "Invalid data type in config micon.micon.fa, found" on install » [PP-1] "Invalid data type in config micon.micon.fa, found" on install
Status: Active » Postponed

Thank you @Grevil, indeed I overread that

pcre.backtrack_limit reached

message part.

Then I think we should postpone this on #3271162: Potential security risk using "unserialize" without limited allowed classes and #3271002: Fix coding standards, add installation test and fix schema errors as I think both are closely related and potentially fix this already.
Let's leave this open to report if someone else runs into this. As the issue is from 2021 it might also have been fixed already, I didn't run into it again yet.

anybody’s picture

Just experienced the same again with 2.0.0-beta3 on a project where micon definitely wasn't installed before. The message makes impossible to install the module.

Using Drupal 8.9

grevil’s picture

This is quite the shot in the dark, but I still believe this error is related to the huge string in the fa.yml. Maybe try the patch from #3271162: Potential security risk using "unserialize" without limited allowed classes as the string gets deleted there (I think so, at least, it is really hard to read the patch).

Patch: https://www.drupal.org/files/issues/2022-03-28/micon_potential-security-...

grevil’s picture

Title: [PP-1] "Invalid data type in config micon.micon.fa, found" on install » "Invalid data type in config micon.micon.fa, found" on install
Status: Postponed » Reviewed & tested by the community

I can confirm, that this issue is fixed in:
https://www.drupal.org/project/micon/issues/3271162

grevil’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.