Skip to content

Join Condition Parsing Fails for Array Values (e.g. Date Ranges) #68

@ZaidMaslouhi

Description

@ZaidMaslouhi

Description

When using a join condition that includes an array-like value (such as a date range) in the on clause, the current parsing mechanism fails to correctly convert the query string to a plain object.

Specific Example

The following query string causes issues:
join[]=events||id,name||on[0]=event.date||$between||16-12-2023,23-12-2023

Current Behavior

  • The parsing logic breaks when encountering comma-separated values within the on clause
  • This prevents the correct transformation of the query string to a usable object for filtering

Expected Behavior

The join condition should successfully parse the query string, correctly handling array-like values such as date ranges.

Potential Impact

  • Prevents users from using complex join conditions with range-based filters
  • Limits the flexibility of querying across related entities with multiple condition types

Reproduction Steps

  1. Construct a query string with a join condition containing a comma-separated value
  2. Attempt to parse the query string
  3. Observe the parsing failure

Additional Context

This issue is particularly problematic for date range queries and similar scenarios requiring multiple values in a single condition.

Possible Solutions

  • Enhance the parsing logic to correctly handle comma-separated values
  • Implement a more flexible parsing mechanism for complex join conditions

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