[PUP-5072] parser validate hangs on unclosed quotes and braces Created: 2015/08/25 Updated: 2017/05/18 Resolved: 2017/05/15
|Affects Version/s:||PUP 4.2.1|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
CentOS 6.4, puppet_version=4.2.1, ruby_version=2.1.6, run_mode=user, default_encoding=UTF-8
Certain combinations of unclosed quotes and braces can cause puppet parser validate to hang.
It will hang. Even with --verbose --debug the only output I get is the Debug: Runtime environment: puppet_version=... line.
The code above is a contrived example minimised as small as I can get it (the quotes and the /* in the second resource all seem to be required to reproduce), but it came from a real-world manifest where I had mucked up a find-replace.
This is a pretty minor issue, but I'm reporting it as ideally it would give you a helpful message telling you which line of your code was invalid.
|Comment by Henrik Lindberg [ 2017/05/15 ]|
On latest 4.x this is no longer a problem. Closed as cannot reproduce.