on 2025 Nov 13 8:43 AM
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?
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.