Problem/Motivation

Issue identified by Claude Fable:

 Errors are returned as successful JSON-RPC results.
  'Error: Invalid email address.' comes back in result, not as a JSON-RPC error object. A sloppy client that displays or stores result treats the error string as the new email. Throw JsonRpcException with an invalid-params error instead — that's also what the protocol expects. (Related: the catch only covers \LogicException; an EntityStorageException from save() escapes your logger entirely.)
Command icon 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

ptmkenny created an issue. See original summary.

  • ptmkenny committed 19a8668f on 3.0.x
    fix: #3608389 Errors should be JsonRpcException, not success
    
    By:...
ptmkenny’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.