Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-392

Error in UserBox.jsp with IPv6

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.3, 3.0
    • Component/s: Templates and UI
    • Labels:
      None
    • Environment:

      Vista 32bit
      Tomcat 6.0.18
      JSPWiki 2.8.0-beta1

      Description

      IPv6 localhost address is displayed as "0:0:0:0:0:0:0:1" - But UserBox.jsp (user status is asserted), line 20 shows:

      <fmt:param><wiki:Translate>[<wiki:UserName />]</wiki:Translate></fmt:param>

      So the rendered UserName looks like [0:0:0:0:0:0:0:1] - the wiki interpreter tries to render an inter-wiki-link "0", that causes an error box (markupparser.error.nointerwikiref).

      To reproduce:
      Run JSPWiki on the local machine with an IPv6 network
      Log out
      As anonymous user goto the preferences
      Save the user preferences.
      Now the UserBox is broken.

      Solution: Add a second opening square bracket

      <fmt:param><wiki:Translate>[[<wiki:UserName />]</wiki:Translate></fmt:param>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                metskem Harry Metske
                Reporter:
                bohni Stefan Bohn
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: