Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.1.20 EE GA2, 6.2.5 CE GA6
-
6.2.x
-
Committed
-
1.5
-
3
Description
Reproduction steps:
1) Create a hook with:
<struts-action> <struts-action-path>/calendar/edit_event</struts-action-path> <struts-action-impl>com.liferay.my.calendar.action.MyEditEventPortletAction</struts-action-impl> </struts-action>
The hook works, however the problem with this hook is that it also overrides and other struts action : "/calendar/edit_event_discussion". This is not wanted.
To workaround this issue, I created another <struts-action> tag which is mapped to /calendar/edit_event_discussion and returns with the originalStrutsPortletAction.
<struts-action> <struts-action-path>/calendar/edit_event_discussion</struts-action-path> <struts-action-impl>com.liferay.my.calendar.action.DiscussionEditEventPortletAction</struts-action-impl> </struts-action>
It would be nice if the hook won't be executed for the other /calendar/edit_event... struts action paths.
Attachments
Issue Links
- is duplicated by
-
LPS-52754 Hooks bug: When a Struts action has been overridden, the overridden action can be invoked by incorrect Struts action paths
- Closed
-
LPS-69179 Action is returned even if it only matches with the beginning of the path
- Closed
- relates
-
LPE-15619 Hook for a specific struts-action overrides too many actions
-
- Closed
-