You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Dave Jarvis (JIRA)" <ji...@apache.org> on 2017/04/21 23:33:04 UTC

[jira] [Created] (JSPWIKI-1057) Limited use of variables

Dave Jarvis created JSPWIKI-1057:
------------------------------------

             Summary: Limited use of variables
                 Key: JSPWIKI-1057
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1057
             Project: JSPWiki
          Issue Type: Bug
    Affects Versions: 2.10.2
            Reporter: Dave Jarvis


*Replicate*
Create a wiki page as follows:

{code}
[{SET url.wiki='https://jspwiki-wiki.apache.org/'}]

# Browse to [[{$url.wiki}]|[{$url.wiki}]].
{code}

*Expected Results*
1. Browse to [https://jspwiki-wiki.apache.org].

*Actual Results*
1. Browse to {{\[{$url.wiki}]|https://jspwiki-wiki.apache.org]}}.

*Additional Information*
Variable substitution should take place prior to formatting text. For backwards compatibility, this could be a configuration flag.

*Related*
Create a wiki page as follows:

{code}
[{SET url.wiki='https://jspwiki-wiki.apache.org/'}]

{{{
  wget [{$url.wiki}]wiki
}}}
{code}

This does not produce the desired result because formatting takes precedence over variable substitution.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)