Issue #9639 has been updated by Jeff McCune.

Status changed from Needs More Information to Accepted

# Proposed Fix #

Thomas, looking into this I found a number of other issues.  The existing 
regexp allows underscores, which aren't valid, and it doesn't allow periods, 
which are valid if the FQDN is being used as the stomp server.

I'd like to update the regular expression to this:  
`validate_re($fact_stomp_server, '[a-zA-Z0-9.-]+')`  That allows any 
alpha-numeric character, the hyphen, and the period.  What do you think?
----------------------------------------
Bug #9639: bad mcollectivepe init.pp regex
https://projects.puppetlabs.com/issues/9639

Author: Thomas Linkin
Status: Accepted
Priority: Normal
Assignee: Jeff McCune
Category: modules
Target version: PE 2.0 (Cmdr Keith)
Keywords: 
Branch: 
Affected URL: 
Affected PE version: 


In the file /opt/puppet/share/puppet/modules/mcollectivepe/manifests/init.pp, 
there is a regex on line 34 that does not account for all types of hostnames as 
per [[http://www.freesoft.org/CIE/RFC/1123/14.htm]]. 

Simple edit:

34:   validate_re($fact_stomp_server, '^[a-zA-Z]\w*')

new 34:   validate_re($fact_stomp_server, '^[0-9]|[a-zA-Z]\w*')


-- 
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