Problem/Motivation

We are running ZoomAPI module, which leverages APITools. Running database updates on D10.3.2 throws the an error.

>  [notice] Update started: system_post_update_add_langcode_to_all_translatable_config
>  [error]  AssertionError: Failed on config name 'apitools.client.zoomapi' in assert() (line 264 of /var/www/html/web/core/modules/system/system.post_update.php) #0 /var/www/html/web/core/modules/system/system.post_update.php(264): assert()

The assertion is

    // Simple config is always a mapping.
    assert($typed_config instanceof Mapping, "Failed on config name '$name'");

This seems to be because the APITools schema specifies type sequence when it should be type mapping. Updating the schema fixes the issue for us.

Steps to reproduce

Update to Core 10.3.2

Proposed resolution

Update the config schema type

Issue fork apitools-3469989

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mrweiner created an issue. See original summary.

mrweiner’s picture

Issue summary: View changes

mrweiner’s picture

Status: Active » Needs review
asherry’s picture

it's been a long time since I messed with the schema part, is this going to have backwards compatibility issues with an earlier version of Drupal 10?

mrweiner’s picture

I don't think so, but can't say for sure. Probably want to test.

catch’s picture

Status: Needs review » Reviewed & tested by the community

This looks right and allows for an update to 10.3

Drupal 10.2 is nearly out of support so would be good if this could be committed.

asherry’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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