Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.2
    • Fix Version/s: None
    • Component/s: Core & storage
    • Labels:
      None

      Description

      Could we get rid of jspwiki.baseURL and calculate it on HttpServletRequest#getContextPath() ?

      It's the only mandatory property you have to set for JSPWiki, so removing it would make installation much easier.

      And, first and foremost, it makes JSPWiki only work on exactly this URL, i.e. you cannot use the same JSPWiki instance in an intranet and on the internet (e.g. wiki.firm.com and wiki.firm.private), neither with and without JK'ed Apache, neither SSL and non-SSL.

      If you look at the source of https://jspwiki-wiki.apache.org/
      there are not many places where the whole base url is used. So, I wonder, if context relative links could be sufficient.

      http://stackoverflow.com/questions/4764405/how-to-use-relative-paths-without-including-the-context-root-name

        Attachments

        1. DefaultURLConstructor.java.patch
          0.8 kB
          Jürgen Weber
        2. jspwiki.properties.patch
          0.9 kB
          Jürgen Weber
        3. WikiEngine.java.patch
          1 kB
          Jürgen Weber

          Issue Links

            Activity

              People

              • Assignee:
                brushed brushed
                Reporter:
                weberjn Jürgen Weber
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: