cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ASM mode not calling custom request mapping for CCV2 2211.42

chris_small
Discoverer
0 Likes
281

We have a SecOrgUnitController in a custom secooc extension with the same request mapping as Hybris’s OrgUnitsController located in b2bocc. When we call the API from the storefront or Postman, the SecOrgUnitController is invoked as expected.
However, when we trigger the same API via ASM mode, we observed that the OrgUnitsController (from b2bocc) is being invoked instead.
Is there is any ASM-specific configuration that needs to be applied to ensure that our custom SecOrgUnitController is invoked when using ASM mode?

Accepted Solutions (0)

Answers (1)

Answers (1)

chris_small
Discoverer
0 Likes

The reason why the overridden request was not invoked was due to the request mapping not be the same. The OOTB endpoint used a request used a mapping of @GetMapping and the override used the older @RequestMapping. Once they were aligned the overridden request endpoint was invoked.