Skip to content

[Bug]: Session is used for stateless routes #527

@aarongerig

Description

@aarongerig

Expected behavior

Calling webservice URLs should not cause any problems.

Actual behavior

The call to /__customermanagementframework/webservice/newsletter/get-queue-size causes following error message:

Session was used while the request was declared stateless.

Steps to reproduce

Install the CMF on a Pimcore 11 instance and load into the Pimcore backend. The API call to the newsletter queue check is triggered and throws the exception.

Because the CMF firewall is configured as stateless (https://github.com/pimcore/customer-data-framework/blob/4.x/src/Resources/config/pimcore/config.yml#L26) the routes are expected to not use a session.

See: https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php#L224

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions