Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-33605

Hook for a specific struts-action overrides too many actions

    Details

      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

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              zoltan.takacs Zoltan Takacs
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              11 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 2 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE