Product Insert/Update API allows '
' in the textLink field.
ID: 486459
No Fix
Published on 6/28/2022
•
Last update on 2/16/2024
Summary
Currently, the APIs for the Catalog product Insertion or Update allows the character "\n" in the textLink
Simulation
-
Use the GET product API to fetch data from a product https://developers.vtex.com/vtex-rest-api/reference/catalog-api-product#catalog-api-get-product
-
Update the product data via API inserting a "\n" character in the textLink field: https://developers.vtex.com/vtex-rest-api/reference/catalog-api-product#catalog-api-put-product
-
Open the given product URL, you'll receive a 404 response.
Workaround
Saving this data via UI (Produto.aspx) saves the data correctly, allowing for the product page to be properly rendered.