[JIRA] [token-macro] (JENKINS-18271) TokenMacro.expand() duplicates private macros when called multiple times

2013-06-14 Thread tth...@free.fr (JIRA)














































T Thery
 commented on  JENKINS-18271


TokenMacro.expand() duplicates private macros when called multiple times















Same issue here.
Everytime the expand() function is called by the email-ext plugin, the all() list is extended with the provided private variables.

One visible impact is the access time to the configure of jenkins jobs using this plugin. Indeed the configure contains the list of all available tokens in the 'Content Token Reference' help. In our context, it might takes up to 2 minutes to access the configure page, the 'Content Token Reference' help being as big as 5 lines, and of course continue tho degrade over time with additional call to expand() function.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


[JIRA] [token-macro] (JENKINS-18271) TokenMacro.expand() duplicates private macros when called multiple times

2013-06-10 Thread bart...@zak.name (JIRA)














































Bartosz Zak
 created  JENKINS-18271


TokenMacro.expand() duplicates private macros when called multiple times















Issue Type:


Bug



Assignee:


Kohsuke Kawaguchi



Components:


token-macro



Created:


10/Jun/13 2:54 PM



Description:


When calling expand() with private macros, those get added to the all() list.
Repeating the command adds them again (duplicates them).

I believe the proper behaviour should be one of:
1. Do not add them to the all() list, those are private macros.

or

2. Only add them once.

P.S. This affects the use of email-ext-plugin-2.30.2.

Thank you,
Bartosz Zak




Environment:


token-macro-1.7




Project:


Jenkins



Priority:


Major



Reporter:


Bartosz Zak

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.