incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-392) Error in UserBox.jsp with IPv6
Date Thu, 06 May 2010 18:34:47 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864877#action_12864877
] 

Harry Metske commented on JSPWIKI-392:
--------------------------------------

My previous proposal is a bit of a hack, but good enough for 2.8.
For 3.0 it can be much more elegantly fixed with Stripes validation in the UserPreferencesActionBean
(@Validate has the mask parameter that takes regexes), we can also fix JSPWIKI-422 that way.

> Error in UserBox.jsp with IPv6
> ------------------------------
>
>                 Key: JSPWIKI-392
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-392
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Default template
>         Environment: Vista 32bit
> Tomcat 6.0.18
> JSPWiki 2.8.0-beta1
>            Reporter: Stefan Bohn
>            Assignee: Harry Metske
>            Priority: Trivial
>
> 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>}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message