Red Hat Bugzilla – Bug 822830
specifying invalid ip_address as value for auth.allow/reject option is accepted
Last modified: 2013-07-24 13:39:03 EDT
Description of problem:
Invalid IP address such as "192.*..*", "a.a." is accepted as valid ip_address.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create a replicate volume
2.gluster volume set <volume_name> nfs.rpc-auth-reject 192.*..*
3.gluster volume set <volume_name> nfs.rpc-auth-reject a.a.
set volume successful
set volume should be unsuccessful as we have specified the invalid ip address
As of today, we are taking input for these options as regex (of fnmatch()), hence we don't validate a lot during CLI command itself. I think it makes sense to treat this as an enhancement.
CHANGE: http://review.gluster.org/4579 (libglusterfs: Fixed valid_ipv4_address and valid_host_name) merged in master by Anand Avati (email@example.com)