[#MIRTH-3381] In Velocity contexts, map variables can overwrite

advertisement
[MIRTH-3381] In Velocity contexts, map variables can overwrite reserved
objects like "message" Created: 25/Jul/14 Updated: 24/Sep/15
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Open
Mirth Connect
Server
2.2.3, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Bug
Nick Rupley
Unresolved
None
Not Specified
3.6.0
Priority:
Assignee:
Votes:
Minor
Unassigned
0
Not Specified
Not Specified
Description
Someone on IRC ran into this. If you manually place "message" into one of the variable maps,
then any velocity replacement using the connector message (like "${message.encodedData}")
will no longer work. We put "message" into the context first and then load the maps (which
may overwrite it).
Comments
Comment by Wayne Huang [ 21/Oct/14 ]
It looks like most of the reserved keywords will get overwritten. This occurs in 2.x as well and
is somewhat inconsistent as to what gets overwritten by the map and what doesn't. Should all
reserved words be protected from being overwritten by maps?
Generated at Tue Feb 09 22:48:55 PST 2016 using JIRA 6.2.7#6265sha1:91604a8de81892a3e362e0afee505432f29579b0.
Download