ResourceHandler can't serialize a stdClass

Created on 17 February 2015, over 10 years ago
Updated 4 January 2024, over 1 year ago

ResourceResponse should treat \stdClass as an array. Otherwise we receive an exception because we cannot find a normalizer.

I found this problem while working on #2403307: RPC endpoints for user authentication: log in, check login status, log out because I need to use a stdClass object with the current user and session data.

Patch attached.

🐛 Bug report
Status

Closed: works as designed

Version

8.4 ⚰️

Component
REST 

Last updated 2 months ago

Created by

🇪🇸Spain marthinal

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024