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

*hosts.allowed should be cloud friendlier and allow ranges

    Details

      Description

      Currently *hosts.allowed do an exact match to check if an IP is valid. When you want to add a range instead of using the IP/Netmask all the IPs must be manually inserted.

      Steps to test (1st case):

      1. Add the following property in main.servlet.hosts.allowed=127.0.0.2
      2. Start the server and try to navigate into the home.

      Expected Result:

      A forbidden message must be obtained.

       

      Steps to test (2nd case):

      1. Add the following property in main.servlet.hosts.allowed=127.0.0.2/255.255.255.0
      2. Start the server and try to navigate into the home.

      Expected Result:

      A normal navigation can be performed.

        Attachments

          Activity

            People

            Assignee:
            raven.song Raven Song
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Tibor Lipusz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 33 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP76
                7.0.10.11 DXP SP11
                7.1.10 DXP FP9
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.2.0 GA1