Index: hbase-server/src/main/resources/hbase-webapps/master/table.jsp =================================================================== --- hbase-server/src/main/resources/hbase-webapps/master/table.jsp (revision 1411077) +++ hbase-server/src/main/resources/hbase-webapps/master/table.jsp (working copy) @@ -24,6 +24,7 @@ import="org.apache.hadoop.hbase.client.HBaseAdmin" import="org.apache.hadoop.hbase.client.HConnectionManager" import="org.apache.hadoop.hbase.HRegionInfo" + import="org.apache.hadoop.hbase.HTableDescriptor" import="org.apache.hadoop.hbase.ServerName" import="org.apache.hadoop.hbase.ServerLoad" import="org.apache.hadoop.hbase.RegionLoad" @@ -38,6 +39,15 @@ Configuration conf = master.getConfiguration(); HBaseAdmin hbadmin = new HBaseAdmin(conf); String tableName = request.getParameter("name"); + try { + byte[] tableByteArray = Bytes.toBytes(tableName); + if (!HTableDescriptor.isMetaTable(tableByteArray)) { + HTableDescriptor.isLegalTableName(tableByteArray); + } + } catch (IllegalArgumentException iae) { + out.write("Illegal table name parameter!"); + return; + } HTable table = new HTable(conf, tableName); String tableHeader = "

Table Regions

"; ServerName rl = master.getCatalogTracker().getRootLocation();
NameRegion ServerStart KeyEnd KeyRequests