Skip to content

Failed to update user via rest endpoint in version 2.4.5-p11 #39682

@mbg0m3s

Description

@mbg0m3s

Preconditions and environment

Magento Commerce version 2.4.5-p11
Magento extension-b2b
PHP 8.1

Steps to reproduce

  1. Use the /rest/async/bulk/default/V1/customers/me endpoint (PUT) to update a customer
    [ { "customer": { "id": 1, "group_id": 1, "email": "user@example.com", "firstname": "Firstname", "lastname": "Lastname", "store_id": 1, "website_id": 1 } } ]
  2. With the bulk uuid returned, query the information received(/rest/default/V1/bulk/{bulkUuid}/detailed-status)
    { "operations_list": [ { "id": 0, "bulk_uuid": "4a4fceda-467a-4215-b4fa-5aea76076b97", "topic_name": "async.magento.customer.api.customerrepositoryinterface.save.put", "serialized_data": "{\"entity_id\":null,\"entity_link\":\"\",\"meta_information\":\"{\\\"customer\\\":{\\\"id\\\":null,\\\"group_id\\\":null,\\\"email\\\":\\\"user@example.com\\\",\\\"firstname\\\":\\\"Firstname\\\",\\\"lastname\\\":\\\"Lastname\\\",\\\"store_id\\\":null,\\\"website_id\\\":null}}\",\"store_id\":\"1\"}", "result_serialized_data": null, "status": 4, "result_message": null, "error_code": null } ], "user_type": 2, "bulk_id": "4a4fceda-467a-4215-b4fa-5aea76076b97", "description": "Topic async.magento.customer.api.customerrepositoryinterface.save.put", "start_time": "2025-02-28 14:24:47", "user_id": 1, "operation_count": 1 }
  3. The id, store_id and website_id data are null and when the bulk is executed a new customer is created

Expected result

The data sent must be kept in order to correctly update the client.

Actual result

A new user is created because the fields are null

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Reported on 2.4.5-p11Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions