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

mindmap macro fails to generate a https url

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 M2
    • Fix Version/s: 1.5 RC1
    • Labels:
      None
    • keywords:
      mindmap macro, https, patch
    • Similar issues:

      Description

      mindmap macro is only creating urls with http.
      Here is a patch to fix this problem.

      — macros.vm.orig 2008-06-27 14:50:32.000000000 +0200
      +++ macros.vm 2008-06-27 14:59:06.000000000 +0200
      @@ -264,7 +264,7 @@
      #set($mmurl = $mindmap)
      #else
      #set($mmurl1 = $doc.getAttachmentURL($mindmap,"download"))
      -#set($mmurl = "http://${request.serverName}:${request.serverPort}${mmurl1}")
      +#set($mmurl = "${request.scheme}://${request.serverName}:${request.serverPort}${mmurl1}")
      #end
      #end
      <applet code="freemind.main.FreeMindApplet.class" archive="${request.contextPath}/freemind/freemind.jar" width="${width}" height="${height}">

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            steffen.zieger Steffen Zieger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: