Missing schema in fetcher_configuration

Created on 9 January 2023, almost 2 years ago
Updated 27 April 2023, over 1 year ago

Problem/Motivation

I am trying to programmaticaly substitute values inside the "headers" field or "post_parameter" fieldset provided by this module when creating a new feed, but I can't access it.
What tokens should I use to set the values of

  • config>x-default>fetcher>headers
  • config>x-default>fetcher>post_parameter

here?

Is it possible at all?
I guess not since I've already tried on similar fields provided by similar module feeds_fetcher_headers
(see here: https://www.drupal.org/project/eca/issues/3309212#comment-14858852 💬 How to set a feed form nested property value with ECA Fixed )
and there are no tokens listed for [feeds:config] (it doesn't exist).

Proposed resolution

Maybe those config items need to be registered somewhere? I'm not an expert :(

Using config_inspector module I can see there is no configuration data regarding httpfetcherpost's fetcher_configuration:

Thank you 🙏🏻

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy kopeboy Milan

    Now I'm stuck with errors, I cannot even content types that referenced to entity types that were referenced in a feed created with the fetcher from this module.

    Apparently without a proper schema my past feeds were not deleted correctly, the error I get is:

    RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "clear own MY_DELETED_FEED_TYPE feeds", "create MY_DELETED_FEED_TYPE feeds", "delete own MY_DELETED_FEED_TYPE feeds", "import own MY_DELETED_FEED_TYPE feeds", "schedule_import own MY_DELETED_FEED_TYPE feeds", "update own MY_DELETED_FEED_TYPE feeds", "view MY_DELETED_FEED_TYPE feeds". in Drupal\user\Entity\Role->calculateDependencies() (line 206 of /var/www/html/web/core/modules/user/src/Entity/Role.php).

  • 🇮🇹Italy kopeboy Milan

    I leave this here in case it can help others:
    I was able to fix the error by

    1. exporting my site configuration (/admin/config/development/configuration/full/export)
    2. uncompress it and search for my broken feed_type_name,
    3. deleting the lines with them in the .yml files that I found,
    4. importing back the single changed files (/admin/config/development/configuration/single/import)
    5. after selecting the right configuration type,
    6. pasting the contents of the file, in the "advanced" section setting typing the id of the entity that the file was defining,
    7. importing.
  • 🇩🇪Germany sleitner

    I'm not a config schema expert. Feel free to test the attached file.

  • 🇩🇪Germany sleitner

    File is added in 1.2.0-alpha1

  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024