Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16387

The configuration parameter "xwiki.url.protocol" in "xwiki.cfg" is not always taken into account

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      • XWiki standard Jetty + HSQLDB zip package version 11.3
      • In "xwiki.cfg", configure "xwiki.url.protocol" to "https"
      • Copy the code below in a page and head to that page over http:
      $doc.getExternalURL()
      $xwiki.XWiki.Param("xwiki.url.protocol") 

      Expected behaviour

      • The output URL contains the https scheme

      Actual behaviour

      • The output scheme is http, while the configuration parameter is correctly output to "https"

      NB: the bug is not present in XWiki 10.2

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: