Uploaded image for project: '{RETIRED} XWiki Enterprise'
  1. {RETIRED} XWiki Enterprise
  2. XE-991

Sometimes an IP address is displayed instead of the hostname in the emails sent by the Share Page feature

    XMLWordPrintable

Details

    Description

      ServletRequest.getLocalName usually resolves correctly to the server name, but the specification states that the returned value is the "host name of the Internet Protocol (IP) interface on which the request was received". The correct method to use is ServletRequest.getServerName, which always corresponds to the requested host.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: