Issue #12070 has been updated by Stefan Schulte.

Status changed from Unreviewed to In Topic Branch Pending Review
Branch set to https://github.com/stschulte/puppet/tree/ticket/2.7.x/12070

Pull request: https://github.com/puppetlabs/puppet/pull/361
----------------------------------------
Bug #12070: cron value munging can lead to strange errors
https://projects.puppetlabs.com/issues/12070

Author: Stefan Schulte
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: Stefan Schulte
Category: cron
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/stschulte/puppet/tree/ticket/2.7.x/12070


While reworking the cron type specs i stumbled upon strange error messages

<pre>
# cat /tmp/test
cron { 'test':
  command => '/bin/true',
  weekday => '*/e',
  ensure  => present,
}
# puppet apply /tmp/test.pp
Parameter weekday failed: Munging failed for value "*/e" in class weekday: 
target of repeat operator is not specified: /*\/e/i
</pre>

In the type code there is the statement
<pre>
name =~ /#{tmp}/i
</pre>

Puppet should not trust the user input to not include special regex characters


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to