[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-28 Thread Thomas Mortagne (Jira)
but not directly tested ones after all XWiki integration tests are executed in a couple of hours. Looks OK on that front too from what we can see. Well done :) > Regression: Macro arguments names cannot collide with external references >

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-28 Thread Thomas Mortagne (Jira)
behaviors (AKA xwiki-commons-velocity unit tests). We'll know more about kind of expected but not directly tested ones after all XWiki integration tests are executed in a couple of hours. > Regression: Macro arguments names cannot collide with external references >

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-28 Thread Claude Brisson (Jira)
this snapshot version before I push out the RC? Thanks. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 >

[jira] [Resolved] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-28 Thread Claude Brisson (Jira)
), while 1.7 did display $foo > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https://issues.apac

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Claude Brisson (Jira)
: -- When a naming collision occurs, there is a side effect which is that in 1.7, global context values become default values for *missing* macro arguments. Two people reported usecases where backward compatibility was broken because of this 1.7 _undocumented feature_, so it's worth addressing. The plan

[jira] [Reopened] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Claude Brisson (Jira)
context values become default values for *missing* macro arguments. Two people reported usecases where backward compatibility was broken because of this 1.7 _undocumented feature_, so it's worth addressing. The plan is to deprecate the 2.1 flag {{velocimacro.arguments.preserve_literals}} in favor

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
iling list regarding the macro local context it's still better than nothing. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
regarding the macro local context it's better still better than nothing. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 >

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
?focusedCommentId=17023076=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17023076. Even if it does not cover the other use cases discussed on the mailing list regarding the macro local context it's better still better than nothing. > Regression: Macro arguments na

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Claude Brisson (Jira)
locally set values even if they are modified by external macros or parsings. > Regression: Macro arguments names cannot collide with external references > names > --- > > Ke

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
anymore even as a retro compatible option. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https:/

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
macro context which does not exist anymore and I guess it not really easy to get back this behavior without getting back the local macro context which you said you did not wanted anymore even as a retro compatible option. > Regression: Macro arguments names cannot collide with external referen

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
to describe but any weird behavior always end up being expected and used in 10 years :) > Regression: Macro arguments names cannot collide with external references > names > --- > > Ke

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
case What I can tell you is that we did fixed several codes in XWiki Standard doing that but I agree with you that it was mistakes in both cases. So yes I don't have a strong use case to describe but any weird behavior always end up being expected and used in 10 years :) > Regression: Ma

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-27 Thread Thomas Mortagne (Jira)
he following: {code} #macro (myMacro $myvar) $myvar #end #set ($myvar = "value") #myMacro() {code} produces: * Before VELOCITY-926 and in 1.7: "value" * After VELOCITY-926: $foobar > Regression: Macro arguments names canno

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-26 Thread Simon Urli (Jira)
r codebase. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https://issues.apache.org/jira/browse/VELOCI

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-24 Thread Claude Brisson (Jira)
to just supposing that it could perhaps break something somewhere. Again, since we're *not* passing the argument, there is a strong logic in the fact that it remains null inside the macro. > Regression: Macro arguments names cannot collide with external references >

[jira] [Comment Edited] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-24 Thread Thomas Mortagne (Jira)
. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https://issues.apache.org/jira/browse/VELOCITY-926 >

[jira] [Commented] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-23 Thread Thomas Mortagne (Jira)
this bug. Thanks you for the quick fix ! > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https://issu

[jira] [Resolved] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-23 Thread Claude Brisson (Jira)
for finding this bug. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key: VELOCITY-926 > URL: https://issues.apache.org/jira/b

[jira] [Updated] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-23 Thread Claude Brisson (Jira)
[ https://issues.apache.org/jira/browse/VELOCITY-926?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Brisson updated VELOCITY-926: Fix Version/s: 2.2 > Regression: Macro arguments names cannot collide with exter

[jira] [Updated] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-23 Thread Claude Brisson (Jira)
{{code}}$foo{{code}} macro argument was overwritting the second argument evaluation. > Regression: Macro arguments names cannot collide with external references > names > --- > > Key:

[jira] [Created] (VELOCITY-926) Regression: Macro arguments names cannot collide with external references names

2020-01-23 Thread Claude Brisson (Jira)
Claude Brisson created VELOCITY-926: --- Summary: Regression: Macro arguments names cannot collide with external references names Key: VELOCITY-926 URL: https://issues.apache.org/jira/browse/VELOCITY-926

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-22 Thread Thomas Mortagne (Jira)
Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocit

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-22 Thread Claude Brisson (Jira)
it to a new issue if confirmed. > Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/brow

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
e" Velocity 2.2: "value" followed by "something" So it's very clear for me that the first parameter of the macro was set to $other and only then the expression passed as second parameter was interpreted based on this new value instead of the one the c

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
e" Velocity 2.2: "value" followed by "something" So it's very clear for me that the first parameter of the macro was set to $other and only then the expression passed as second parameter was interpreted based on this new value instead of the one the c

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
e" Velocity 2.2: "value" followed by "something" So it's very clear for me that the first parameter of the macro was set to $other and then the expressed passed as second parameter was interpreted based on this new value instead of the one the c

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
preted based on this new value instead of the one the calling code was expecting. > Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 >

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Claude Brisson (Jira)
to be more explicit, then. What is defined beforehand and what is not? Which object does have a {{name}} property? > Add a flag for better backward compatibility with null macro arguments > -- > > K

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Claude Brisson (Jira)
code uses names which are defined *inside* the macro. Binding the calling code to the inner macro names means that you wouldn't be able to rename macro arguments names without breaking calling code. > Add a flag for better backward compatibility with null macro argume

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
e default behavior ? was (Author: tmortagne): Not sure what you mean. Are you saying this behavior is expected ? > Add a flag for better backward compatibility with null macro arguments > -- > >

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
this behavior is expected ? > Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 >

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Claude Brisson (Jira)
. Especially, the current documentation is wrong on this subject and needs to be updated. It's not that the `$test` argument shadows `$test.name`, it's that `$test.name` is evaluated beforehand. > Add a flag for better backward compatibility with null macro argume

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-20 Thread Thomas Mortagne (Jira)
s interpreted so it breaks it (works fine when >renaming the first parameter into $test2 or if $test is the parameter >receiving the expression). > Add a flag for better backward compatibility with null macro arguments > --

[jira] [Resolved] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-01 Thread Claude Brisson (Jira)
ard compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Reopened] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2020-01-01 Thread Claude Brisson (Jira)
ity with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Issue Type: Improvement

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-28 Thread Michael Osipov (Jira)
ard compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Resolved] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-28 Thread Claude Brisson (Jira)
ard compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Resolved] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-13 Thread Claude Brisson (Jira)
impact when  velocimacro.arguments.preserve_literals is true, since allowing nested macro calls implies maintaining a stack of arguments literals for each argument.   > Add a flag for better backward compatibility with null macro argume

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-13 Thread Thomas Mortagne (Jira)
: bq. I can't also help thinking that your use of null macro arguments is somewhat a corner case of macro usages which is very specific to xwiki, but at least it makes xwiki a good regression candidate. Yeah I'm not very proud of that either but I have to work with history unfortunately

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-13 Thread Thomas Mortagne (Jira)
: bq. I can't also help thinking that your use of null macro arguments is somewhat a corner case of macro usages which is very specific to xwiki, but at least it makes xwiki a good regression candidate. Yeah I'm not very proud of that either but I have to work with history unfortunately

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-12 Thread Thomas Mortagne (Jira)
: $return {noformat} The sub macro call "break" the parameter. > Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https

[jira] [Comment Edited] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-09 Thread Thomas Mortagne (Jira)
ter backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-09 Thread Thomas Mortagne (Jira)
great indeed. Anything I can help to have the 2.2 release ASAP ? ;) > Add a flag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 >

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-05 Thread Thomas Mortagne (Jira)
lag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity >

[jira] [Reopened] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-05 Thread Claude Brisson (Jira)
[ https://issues.apache.org/jira/browse/VELOCITY-904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claude Brisson reopened VELOCITY-904: - > Add a flag for better backward compatibility with null macro argume

[jira] [Updated] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-05 Thread Claude Brisson (Jira)
ard compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Resolved] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-05 Thread Claude Brisson (Jira)
ard compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Is

[jira] [Commented] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2019-12-04 Thread Thomas Mortagne (Jira)
ull macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity > Issue Type: Improvement >

[jira] [Resolved] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2018-10-15 Thread Claude Brisson (JIRA)
lag for better backward compatibility with null macro arguments > -- > > Key: VELOCITY-904 > URL: https://issues.apache.org/jira/browse/VELOCITY-904 > Project: Velocity >

[jira] [Created] (VELOCITY-904) Add a flag for better backward compatibility with null macro arguments

2018-10-15 Thread Claude Brisson (JIRA)
Claude Brisson created VELOCITY-904: --- Summary: Add a flag for better backward compatibility with null macro arguments Key: VELOCITY-904 URL: https://issues.apache.org/jira/browse/VELOCITY-904

Re: Macro arguments

2016-09-24 Thread Will Glass-Husain
And Claude, thanks again for all the work on this. Velocity may not be >> critical to my work these days, but it is still good to see it being >> updated. >> >> On Tue, Sep 13, 2016 at 11:23 AM, Claude Brisson <cla...@renegat.net> >> wrote: >> >> It may b

[jira] [Resolved] (VELOCITY-752) Evaluation of macro arguments

2016-09-21 Thread Claude Brisson (JIRA)
by the patch from VELOCITY-841 (commit 1753788). > Evaluation of macro arguments > - > > Key: VELOCITY-752 > URL: https://issues.apache.org/jira/browse/VELOCITY-752 > Project: Velocity >

Re: Macro arguments

2016-09-21 Thread Claude Brisson
And Claude, thanks again for all the work on this. Velocity may not be critical to my work these days, but it is still good to see it being updated. On Tue, Sep 13, 2016 at 11:23 AM, Claude Brisson <cla...@renegat.net> wrote: It may be the last big subject to address before releasing 2.0: how

Re: Macro arguments

2016-09-13 Thread Nathan Bubna
ess before releasing 2.0: how to > handle macro arguments? > > Those three issues exhibit nasty side effects of the current behavior: > > https://issues.apache.org/jira/browse/VELOCITY-683 > > https://issues.apache.org/jira/browse/VELOCITY-684 > > https://issues.apache.org/jira

Macro arguments

2016-09-13 Thread Claude Brisson
It may be the last big subject to address before releasing 2.0: how to handle macro arguments? Those three issues exhibit nasty side effects of the current behavior: https://issues.apache.org/jira/browse/VELOCITY-683 https://issues.apache.org/jira/browse/VELOCITY-684 https

[jira] Commented: (VELOCITY-752) Evaluation of macro arguments

2010-01-16 Thread JIRA
since the behaviour is now different. Nathan, what do you think? Evaluation of macro arguments - Key: VELOCITY-752 URL: https://issues.apache.org/jira/browse/VELOCITY-752 Project: Velocity Issue Type: Bug

[jira] Created: (VELOCITY-752) Evaluation of macro arguments

2010-01-15 Thread Steve O'Hara (JIRA)
Evaluation of macro arguments - Key: VELOCITY-752 URL: https://issues.apache.org/jira/browse/VELOCITY-752 Project: Velocity Issue Type: Bug Components: Engine Affects Versions: 1.6.2

[jira] Commented: (VELOCITY-685) BlockMacros fail with strict number of macro arguments

2009-01-24 Thread Byron Foster (JIRA)
BlockMacros fail with strict number of macro arguments -- Key: VELOCITY-685 URL: https://issues.apache.org/jira/browse/VELOCITY-685 Project: Velocity Issue Type: Bug Components

[jira] Created: (VELOCITY-685) BlockMacros fail with strict number of macro arguments

2009-01-23 Thread Byron Foster (JIRA)
BlockMacros fail with strict number of macro arguments -- Key: VELOCITY-685 URL: https://issues.apache.org/jira/browse/VELOCITY-685 Project: Velocity Issue Type: Bug Components

[jira] Updated: (VELOCITY-685) BlockMacros fail with strict number of macro arguments

2009-01-23 Thread JIRA
testing! Here's a patch that should fix the issue. BlockMacros fail with strict number of macro arguments -- Key: VELOCITY-685 URL: https://issues.apache.org/jira/browse/VELOCITY-685 Project

[jira] Resolved: (VELOCITY-685) BlockMacros fail with strict number of macro arguments

2009-01-23 Thread Nathan Bubna (JIRA)
[ https://issues.apache.org/jira/browse/VELOCITY-685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Bubna resolved VELOCITY-685. --- Resolution: Fixed BlockMacros fail with strict number of macro arguments

[jira] Closed: (VELOCITY-430) Allow commas or spaces to separate macro arguments

2007-03-07 Thread Henning Schmiedehausen (JIRA)
[ https://issues.apache.org/jira/browse/VELOCITY-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henning Schmiedehausen closed VELOCITY-430. --- Allow commas or spaces to separate macro arguments