Problem/Motivation
MyrestRedirectEventSubscriber receives the messenger service. Messenger messages are queued into the session and later rendered on an unrelated HTML page, which is meaningless for API clients and can leak internal details to end users.
Proposed resolution
- Replace messenger calls with a dedicated logger channel.
- Remove the
messengerargument from the service definition.
Remaining tasks
Refactor the subscriber and update myrest.services.yml.
User interface changes
API requests no longer queue status messages.
API changes
None.
Issue fork myrest-3615498
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented