HBASE-1184 HColumnDescriptor is too resrictive with family names

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@741317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-02-05 22:24:59 +00:00
parent 08805166e8
commit 554932bf63
2 changed files with 6 additions and 5 deletions

View File

@ -42,6 +42,8 @@ Release 0.20.0 - Unreleased
HBASE-1167 JSP doesn't work in a git checkout (Nitay Joffe via Andrew HBASE-1167 JSP doesn't work in a git checkout (Nitay Joffe via Andrew
Purtell) Purtell)
HBASE-1178 Add shutdown command to shell HBASE-1178 Add shutdown command to shell
HBASE-1184 HColumnDescriptor is too restrictive with family names
(Toby White via Andrew Purtell)
Release 0.19.0 - 01/21/2009 Release 0.19.0 - 01/21/2009
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -242,12 +242,11 @@ public class HColumnDescriptor implements ISerializable, WritableComparable<HCol
Bytes.toString(b)); Bytes.toString(b));
} }
for (int i = 0; i < (b.length - 1); i++) { for (int i = 0; i < (b.length - 1); i++) {
if (Character.isLetterOrDigit(b[i]) || b[i] == '_' || b[i] == '.') { if (Character.isISOControl(b[i])) {
continue;
}
throw new IllegalArgumentException("Illegal character <" + b[i] + throw new IllegalArgumentException("Illegal character <" + b[i] +
">. Family names can only contain 'word characters' and must end" + ">. Family names cannot contain control characters: " +
"with a colon: " + Bytes.toString(b)); Bytes.toString(b));
}
} }
return b; return b;
} }