lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya/content/admin/groups group-admin.js
Date Thu, 07 Aug 2003 12:15:12 GMT
andreas     2003/08/07 05:15:12

  Modified:    src/webapp/lenya/content/admin/ipranges iprange-admin.js
               src/webapp/lenya/content/admin/users user-admin.js
               src/webapp/lenya/content/admin/groups group-admin.js
  Log:
  checking if ID is valid
  
  Revision  Changes    Path
  1.5       +4 -1      cocoon-lenya/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
  
  Index: iprange-admin.js
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/admin/ipranges/iprange-admin.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- iprange-admin.js	30 Jul 2003 17:26:03 -0000	1.4
  +++ iprange-admin.js	7 Aug 2003 12:15:12 -0000	1.5
  @@ -149,11 +149,14 @@
   	                    message = "This IP range already exists.";
   	                    ok = false;
   	                }
  +					else if (!Packages.org.apache.lenya.cms.ac.AbstractItem.isValidId(iprangeId)) {
  +	                	message = "This is not a valid IP range ID. [" + iprangeId + "]";
  +	                	ok = false;
  +	                }
   	                else {
   	                    range = new Packages.org.apache.lenya.cms.ac.FileIPRange(
   	                        ipRangeManager.getConfigurationDirectory(), iprangeId);
   	                    ipRangeManager.add(range);
  -	                    ok = true;
   	                }
   	            }
   	        }
  
  
  
  1.9       +3 -0      cocoon-lenya/src/webapp/lenya/content/admin/users/user-admin.js
  
  Index: user-admin.js
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/admin/users/user-admin.js,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- user-admin.js	30 Jul 2003 16:41:00 -0000	1.8
  +++ user-admin.js	7 Aug 2003 12:15:12 -0000	1.9
  @@ -224,6 +224,9 @@
   		if (existingUser != null) {
   			message = "This user already exists.";
   		}
  +		else if (!Packages.org.apache.lenya.cms.ac.AbstractItem.isValidId(userId)) {
  +			message = "This is not a valid user ID.";
  +		}
   		else {
   			var configDir = userManager.getConfigurationDirectory();
   			var user;
  
  
  
  1.6       +3 -0      cocoon-lenya/src/webapp/lenya/content/admin/groups/group-admin.js
  
  Index: group-admin.js
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/content/admin/groups/group-admin.js,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- group-admin.js	31 Jul 2003 11:33:43 -0000	1.5
  +++ group-admin.js	7 Aug 2003 12:15:12 -0000	1.6
  @@ -153,6 +153,9 @@
   		if (existingGroup != null) {
   			message = "This group already exists.";
   		}
  +		else if (!Packages.org.apache.lenya.cms.ac.AbstractItem.isValidId(groupId)) {
  +          	message = "This is not a valid group ID.";
  +		}
   		else {
   			var configDir = groupManager.getConfigurationDirectory();
   			var group = new Packages.org.apache.lenya.cms.ac.FileGroup(configDir, groupId);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message