Skip to content

Unable to save certain product properties via Rest API #6486

Closed
@cherreman

Description

@cherreman

Preconditions

  1. Magento 2.1.1

Steps to reproduce

  1. Create a product via the Rest API, including a price and weight

Expected result

  1. The product is saved with the price and weight

Actual result

  1. The price and weight are not saved and are not returned in the result of the POST request.

I traced this down to the BeforeEntitySave observer, where the price seems to be stripped off the product when $entity->beforeSave() is called. I did not continue research after that.

Workaround is to execute the post request again. During the update of the product, the price seems the be saved correctly.

Metadata

Metadata

Assignees

Labels

Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogComponent: TaxFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions