Skip to content

PUT /V1/products/:sku/media/:entryId does not change the file #22402

@philippsander

Description

@philippsander

Preconditions (*)

  1. Magento Commerce Edition 2.2.8
  2. Have a Product with an image uploaded (Luma sample data provides this)

Steps to reproduce (*)

  1. Send the following request to "/V1/products/24-WG080/media/52"
    base64_encoded_data is empty as this would bloat the issue-text

{"entry":{"media_type":"image","label":"Label for my Image":1,"disabled":false,"types":["image","small_image","thumbnail"],"content":{"base64_encoded_data":"...","type":"image/jpeg","name":"luma-yoga-kit-2"},"id":52}}

Expected result (*)

  1. Everything provided by the request is updated for the media entity
  2. The actual file-content is replaced with what is provided in the base64_encoded_data
  3. The endpoint returns true

Actual result (*)

  1. label, types and disabled is updated for the media entity
  2. The actual file-content is NOT replaced with what is provided in the base64_encoded_data
  3. The endpoint returns true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogComponent: WebapiUse with concrete module component label E.g. "Component: Webapi" + "Catalog"Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions