PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-22287

ConfigurationActions defined in sdk portlets cannot use resource actions

    Details

    • Fix Priority:
      3
    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce :

      1. Deploy the attached minimal test case
      2. Drag the minimal testcase portlet from the sample category to your page
      3. Open the configuration window for this portlet by clicking the wrench in the right hand corner and selecting configuration
      4. click the link called "click me"

      Notice that nothing happens where it should output the text "This got written to the response"

      The reason for this problem is that in EditConfigurationAction.java the following line gets called

      ResourceServingConfigurationAction resourceServingConfigurationAction =
      (ResourceServingConfigurationAction)getConfigurationAction(
      portlet);

      This results in the following exception being raised

      java.lang.ClassCastException: $Proxy356 cannot be cast to com.liferay.portal.kernel.portlet.ResourceServingConfigurationAction

        Activity

        Hide
        Jelmer Kuperus added a comment -

        Attached possible fix

        Show
        Jelmer Kuperus added a comment - Attached possible fix
        Hide
        Jelmer Kuperus added a comment -

        first patch was missing imports. d0h

        Show
        Jelmer Kuperus added a comment - first patch was missing imports. d0h
        Hide
        Paul Piao (Inactive) added a comment -

        Hi Jelmer,
        Thank you for your report. I was able to reproduce this issue in 6.0.6 GA. I have also tested this issue on 6.1.x and trunk revision (96306) and I was also reproduce. I will update the this ticket to reflect the issue.

        Show
        Paul Piao (Inactive) added a comment - Hi Jelmer, Thank you for your report. I was able to reproduce this issue in 6.0.6 GA. I have also tested this issue on 6.1.x and trunk revision (96306) and I was also reproduce. I will update the this ticket to reflect the issue.
        Hide
        Edward Gonzales added a comment -

        Hi Jelmer! We are in the process of simplifying the contribution process. To do this, we plan to remove the "Community Resolved" state. This will directly affect your "Community Resolved" issues.

        Where will your ticket go? It will be moved to "Contributed Solution". So this message is a notice that we will perform this move soon.

        Once we do make the move, there will be one less step in getting your contribution implemented. Thanks for your hard work!

        Show
        Edward Gonzales added a comment - Hi Jelmer! We are in the process of simplifying the contribution process. To do this, we plan to remove the "Community Resolved" state. This will directly affect your "Community Resolved" issues. Where will your ticket go? It will be moved to "Contributed Solution". So this message is a notice that we will perform this move soon. Once we do make the move, there will be one less step in getting your contribution implemented. Thanks for your hard work!
        Hide
        Edward Gonzales added a comment -

        Hi Jelmer! Please test this bug against Milestone 4 (http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+4+Testing) to see if you can reproduce it. Thanks for your hard work!

        Show
        Edward Gonzales added a comment - Hi Jelmer! Please test this bug against Milestone 4 ( http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+4+Testing ) to see if you can reproduce it. Thanks for your hard work!
        Hide
        Jelmer Kuperus added a comment -

        Thanks for taking a mere 475d 15h 58m to resolve this ticket!

        Show
        Jelmer Kuperus added a comment - Thanks for taking a mere 475d 15h 58m to resolve this ticket!
        Hide
        Jelmer Kuperus added a comment -

        oh wait it's not even resolved? you've got to be kidding me

        Show
        Jelmer Kuperus added a comment - oh wait it's not even resolved? you've got to be kidding me
        Hide
        Edward Gonzales added a comment - - edited

        Hello Jelmer, we are truly sorry for the time it has taken. I have updated the bug's component based on our newly updated list of components. I will update you with any news regarding the implementation of your fix for this bug. Thanks for your patience.

        Show
        Edward Gonzales added a comment - - edited Hello Jelmer, we are truly sorry for the time it has taken. I have updated the bug's component based on our newly updated list of components. I will update you with any news regarding the implementation of your fix for this bug. Thanks for your patience.
        Hide
        Gregory Amerson added a comment - - edited

        Hello Jelmer,

        I imported your minimal test case and deployed it to 6.2.0-M4 and I still some errors. So I also tried the same thing on current trunk, upstream/master. I took your 2nd patch and ported it to current upstream/master and then tried it. Now I get this error:

        05:33:23,843 ERROR [http-bio-8080-exec-6][PortletRequestProcessor:515] 86 does not have any paths specified

        And the screen is just white. I set breakpoint in PortletBagFactory newConfigurationAction but I don't see any breakpoints getting stopped. Sorry, I can't help anymore, not a portal-core expert.

        Show
        Gregory Amerson added a comment - - edited Hello Jelmer, I imported your minimal test case and deployed it to 6.2.0-M4 and I still some errors. So I also tried the same thing on current trunk, upstream/master. I took your 2nd patch and ported it to current upstream/master and then tried it. Now I get this error: 05:33:23,843 ERROR [http-bio-8080-exec-6] [PortletRequestProcessor:515] 86 does not have any paths specified And the screen is just white. I set breakpoint in PortletBagFactory newConfigurationAction but I don't see any breakpoints getting stopped. Sorry, I can't help anymore, not a portal-core expert.

          People

          • Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              2 years, 20 weeks, 6 days ago

              Development

                Structure Helper Panel