Skip to content

load_chain_config returns true on empty chain config #89

@OscarMrZ

Description

@OscarMrZ

Hello!

I've noticed that the load_chain_config function returns true if there's no chain configuration in the parameters. Consequently, this means that the filter chain is correctly configured, but with an empty list of filters.

As far as my understanding goes, this means that there's no easy way to tell if the chain is operating without any filters, which could be problematic. For example, if I have a controller that may or may not have a filter chain, I don't have a way to tell if the user provided the config for a filter chain.

Is this the intended behaviour? I was wondering if it would just be better to return false is empty and let the caller handle it as needed.

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions