[ECOMMERCE-483] Cannot run the rest endpoint of categoryById on SAP Created: 12/Oct/21  Updated: 18/Oct/22  Resolved: 18/Jan/22

Status: Closed
Project: E-commerce
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.2

Type: Bug Priority: Major
Reporter: Thuy To Assignee: Thuy To
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: 1h
Time Spent: 2d 1.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: AuthorX Maintenance
Sprint: AuthorX 1
Story Points: 5

 Description   

Document: https://docs.magnolia-cms.com/product-docs/6.2/Connector-Packs/Commerce-Connector-Pack/E-commerce-REST-endpoints/Category-endpoint-API.html

 

The rest endpoint to get category by ID:

`/.rest/ecommerce/v1/categories/{categoryId}`

 

Reproduce:

+ We have a category id from SAP:  electronicsProductCatalog/Online

+ Run the rest endpoint on postman with this categoryId

http://localhost:8080/magnolia_addon_webapp_war_exploded/.rest/ecommerce/v1/categories/electronicsProductCatalog/Online?definitionName=sap-commerce&connectionName=electronics

 

Dev notes:  

 



 Comments   
Comment by Thuy To [ 17/Jan/22 ]

The solution is using the URL encode for "/" >> "%2F" and set -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true in configuration of tomcat

Generated at Mon Feb 12 01:44:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.