+* Tue Mar 28 2006 Shiv Kaushal <shiv@hep.man.ac.uk>
+- Fixed bug in GACL admin interface that would cause
+ internal server erorr sometimes when adding new
+ entries to and ACL.
* Sat Mar 25 2006 Shiv Kaushal <shiv@hep.man.ac.uk>
- Change delegation header to Proxy-Delegation-Service
instead of Grst-
GRSTgaclEntry *entry;
GRSTgaclNamevalue* namevalue;
- if (!GRSTgaclPermHasAdmin(perm)) GRSThttpError ("403 Forbidden");
+ if (!GRSTgaclPermHasAdmin(perm)) GRSThttpError ("403 Forbidden");
+ entry = GRSTgaclEntryNew();
StartHTML(&bp, dir_uri, dir_path);
StartForm(&bp, dir_uri, dir_path, admin_file, timestamp, "new_entry");
GRSThttpPrintf (&bp, "<font size=\"4\"><b>NEW ENTRY IN ACL FOR %s </b></font></p>\n", dir_uri);
if (strcmp(cmd, "add_cred_form")==0 ||strcmp(cmd, "del_cred_sure")==0) show_perms=0; else show_perms=1;
if (strcmp(cmd, "edit_entry_form")==0 || strcmp(cmd, "new_entry_form")==0) edit_perms=1; else edit_perms=0;
- if (strcmp(cmd, "new_entry_form")==0) blank_perms=1; else blank_perms=0;
+ if (strcmp(cmd, "new_entry_form")==0) blank_perms=1; else blank_perms=0;
// If showing the last row is not required then exit
if (show_perms==0){GRSThttpPrintf (bp,"</table><br>\n"); return;}
GRSThttpPrintf (bp, "</td>\n<td> </td><td align=left>");
- if (blank_perms) entry->allowed=entry->denied=GRST_PERM_NONE;
+ if (blank_perms==1)entry->allowed=entry->denied=GRST_PERM_NONE;
// Show Permissions - will produce a list or a list of check boxes depending on whether the permissions are to be edited or not
GRSThttpPrintf (bp, "<b>Allowed:</b> ");