Menu
Feedback
Start here

Known issues

Known issues
Catalog Brand API REST allows the client to break the information if sending request with wrong values
Catalog
ID: 269109
Fixed
Published on3/10/2023
Last updated on5/11/2023
1 min read

Summary

There are a lot of routes that support some type of value, but if the costumer uses another type of value (for example, insert null instead of boolean) can broke the product / SKU / category / brand interface. Denying the client to update the information through admin.

Simulation

For the routes api/catalog/pvt/brand?an=or /api/catalog/pvt/brand/?an=, the documentation says that the field MenuHome only accepts boolean values. But if we send a request with "null" for example, the route will return a 200 and we are able ti insert this value. After this, if we try to edit the brand on the admin interface, we will not be able. It will return a Something Went Wrong error with the exception_message="Object cannot be cast from DBNull to other types."

Workaround

Update the information again, through the API.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback