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

Buttons in various portlets don't work on when setting virtual.hosts.valid.hosts property

Details

    Description

      Steps to reproduce:

      1. Set the following property to your ip address in portal.ext.properties:
        virtual.hosts.valid.hosts
        
      2. Navigate to the portal instance through the ip address
      3. Add a Wiki portlet to a page
      4. Navigate to the "All Pages" tab of the wiki portlet
      5. Tap on "Add Page"

      Expected results:
      The page should reload to the Add Page page

      Actual results:
      Tapping on the button does nothing. Also occurs on message boards buttons.

      Tested on:
      iPad (3rd Gen) + iOS 7.0.4 + Safari
      ASUS Nexus 7 + Android 4.4.2 + Google Chrome 32

      Additional information:
      I inspected the element on the Android device and found that the html is actually different on the touch devices, and appears to have been generated incorrectly. On the mobile devices it appears as:

      <button class="btn btn-default" href="null" id="_36_addPageButton" type="button"> Add Page </button>
      

      On the desktop it appears as:

      <a id="_36_addPageButton" href="http://localhost:7080/web/guest/wiki-page?p_p_id=36&amp;p_p_lifecycle=0&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1&amp;p_p_col_count=1&amp;_36_editTitle=1&amp;p_r_p_185834411_title=&amp;p_r_p_185834411_nodeId=10510&amp;_36_redirect=http%3A%2F%2Flocalhost%3A7080%2Fweb%2Fguest%2Fwiki-page%2F-%2Fwiki%2FMain%2Fall_pages&amp;_36_struts_action=%2Fwiki%2Fedit_page&amp;_36_type=all_pages" class="btn btn-default"> Add Page </a>
      

      Attachments

        Issue Links

          Activity

            People

              kenji.heigel Kenji Heigel
              kenji.heigel Kenji Heigel
              Rafaela Nascimento Rafaela Nascimento
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 12 weeks, 6 days ago

                Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1