Make WordPress Core

Opened 2 years ago

Last modified 21 months ago

#44648 new defect (bug)

User creation even though an error is thrown — at Initial Version

Reported by: apermo Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.9.7
Component: REST API Keywords: needs-patch needs-unit-tests
Focuses: Cc:


I just had an issue, the issue itself pretty mush doubles like this issue https://core.trac.wordpress.org/ticket/40889

When creating a new account including a (registered) custom meta I get the following error message.

"message":"Sorry, you are not allowed to edit the _r24b_remote_id custom field.",

But even though throwing an error, the user is created anyway, but I don't get the User ID in return.

Sending the unchanged request a second time will now cause this answer

"message":"Der Benutzername existiert bereits!",

So besides the bug from the other ticket.

A nested error like in my case should either make the whole creat process fail(or undo the successful first part of the creation) or the error message should contain the information that the user was created and only the meta field failed.

Change History (0)

Note: See TracTickets for help on using tickets.