Skip to content

QueuedTracking intercepts bulk JSON requests it cannot process, silently dropping all events #320

@oajara

Description

@oajara

When QueuedTracking and BulkTracking are both active, QueuedTracking hooks Tracker.newHandler first and replaces the handler unconditionally.

Because PHP only populates $_GET/$_POST for form-encoded bodies, a bulk request sent with Content-Type: application/json leaves RequestSet empty by the time the handler runs. Queue::addRequestSet() silently discards it at the !$requests->hasRequests() guard.

Any application using the Bulk Tracking API alongside QueuedTracking loses all tracking data without any error signal.

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