Skip to content

Warning should be given if no valid filter present in file specified using --source-filter #17

Closed
@metasemi

Description

@metasemi

If the file specified using the --source-filter command line option is valid YAML but contains no valid filter, then no exception is thrown and no warning is given. For example, in one test the command line specified

--source-filter ldap:filter.yml

where the specified file's content was just

(cn=Smoke*)

This content is faulty (should have been all_users_filter: "(cn=Smoke*)" ) and doesn't define a valid filter. It's valid YAML though, parsing as a single string, so no exception is thrown.

It would be useful to produce a warning in the log for such a case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions