Skip to content

When creating a new term, if the key is a child of another key that has assigned a value, clear cache gives a 500 server error #76

@martanducas

Description

@martanducas

This issue has been updated, the real problem is as follows:

I have added some new terms with the following keys:
custom.pae.services
custom.pae.services.1
custom.pae.services.2

I have cleared cache.
The server has crashed (error 500 Internal server error).

@microstudi (https://github.com/microstudi) can give more technical details, but the problem is that according to the YAML format, a key (custom.pae.services) cannot have assigned a value if it has child keys (custom.pae.services.1). Since a user like me is not aware of this restriction, it is necessary to have some kind of validation that avoids this behaviour (otherwise, any admin user can crash a Decidim by adding new terms).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions