Skip to content

Magento 2 Can't upload images for "disabled" aka "inactive" products using API #36743

@joepperkins

Description

@joepperkins

Summary:

When calling the REST API to upload images for product that are "disabled" aka "inactive, the API responds with.
{"message":"The product can't be saved."}
HTTP status 400 bad request

Preconditions (*)

Adobe Cloud Magento ver. 2.4.3-p2

Steps to reproduce (*)

  1. Set product inactive.
  2. Wait for indexing to complete.
  3. Call API to add image fails.
  4. Set product Active.
  5. Wait for indexing to complete.
  6. Call API to add image succeeds.

Expected result (*)

HTTP Status 200 - OK

Actual result (*)

HTTPS Status 400 - Bad Request
{"message":"The product can't be saved."}

Metadata

Metadata

Labels

Issue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: needs updateAdditional information is require, waiting for responseReported on 2.4.3-p2Indicates 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