Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 7.0.X
    • Fix Version/s: 7.0.X
    • Component/s: WSRP
    • Labels:

      Description

      Steps to reproduce

      1. Deploy wsrp-api, wsrp-service, and wsrp-admin to 7.0.x
      2. Navigate to Control Panel > Configuration > WSRP Admin
      3. Switch to the Producers tab and add a Producer that has the Hello World portlet available
      4. Copy the URL for the producer that you created
      5. Switch to the Consumers tab and add a Consumer with the URL you copied in step 4
      6. Select the "Manage Portlets" action and add the Hello World portlet from your consumer, and call it WSRP Hello World
      7. Add the WSRP Hello World portlet to a page
      8. Run the following in your browser's Javascript console to get the ID for the WSRP Hello World portlet that you added to the page; it will look something like WSRP_01234567_89abcdef0123_0123456789ab
        var id = document.querySelector('div[id^=p_p_id_WSRP_]').id;
        id.substring('p_p_id_'.length, id.length - 1)
        
      9. Run the following in your browser's Javascript console to get the portal auth token for your current session.
        Liferay.authToken
        
      10. Navigate to the following URL, replacing PORTLET_ID with the portlet ID you got from step 8, and AUTH_TOKEN with the auth token you got from step 9

      frontend-theme-classic (regular 7.0.x)

      http://localhost:8080/web/guest/home/-/consumer/PORTLET_ID/normal/view/cacheLevelPage/-?p_p_lifecycle=2&p_auth={{AUTH_TOKEN}}&_PORTLET_ID_wsrp-secureURL=false&_PORTLET_ID_wsrp-requiresRewrite=false&_PORTLET_ID_wsrp-url=http%3A%2F%2Flocalhost%3A8080%2Fo%2Fclassic-theme%2Fimages%2Fportlet_hello_world%2Fwelcome_bg.jpg
      

      frontend-theme-classic-dxp (setup-profile-dxp 7.0.x)

      http://localhost:8080/web/guest/home/-/consumer/PORTLET_ID/normal/view/cacheLevelPage/-?p_p_lifecycle=2&p_auth={{AUTH_TOKEN}}&_PORTLET_ID_wsrp-secureURL=false&_PORTLET_ID_wsrp-requiresRewrite=false&_PORTLET_ID_wsrp-url=http%3A%2F%2Flocalhost%3A8080%2Fo%2Fclassic-theme%2Fimages%2Fportlet-hello-world%2Fwelcome-bg.jpg
      

      Expected behavior is that the URL successfully loads the background of the Hello World portlet. Actual behavior is that a NullPointerException occurs (but is suppressed), and you are redirected back to the home page.

        Attachments

        1. 404page.png
          404page.png
          26 kB
        2. command.png
          command.png
          18 kB

          Activity

            People

            Assignee:
            hong.zhao Hong Zhao
            Reporter:
            minhchau.dang Minhchau Dang
            Participants of an Issue:
            Recent user:
            Hong Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              17 weeks, 1 day ago

                Packages

                Version Package
                7.0.X