Skip to content

Processing incorrect filter causes to infinity loop #49

@boris-meerovich-sp

Description

@boris-meerovich-sp

Hi,
Looks like our QA team found a bug when sending incorrect filter like
"v2/users/?filter=username eq fff@cc.com"
The value quotes are missing and there is a dot(.) into it.

How to reproduce:
Just change row in ExecuteUser method in example console log to the following:
//var json = await client.GetStringAsync("v2/users/" + user.Id);
var json = await client.GetStringAsync("v2/users/?filter=username eq fff@cc.com");

Af far as I debug it, the problem is in Owin.Scim-master\source\Owin.Scim\Querying\ScimFilter.cs in ProcessFilter() method. The loop became infinity loop when parsing the incorrect value.

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