Author: rmeggins
Update of /cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel
In directory
cvs-int.fedora.redhat.com:/tmp/cvs-serv4566/admservconsole/src/com/netscape/management/admserv/panel
Modified Files:
CGIAccessSetup.java CGIDataModel.java
Log Message:
Resolves: bug 400361
Bug Description: Console: can't perform admin tasks after changing password
Reviewed by: nhosoi (Thanks!)
Fix Description: Each task uses a different ConsoleInfo object. There was already a
hack/hook in AdminFrameworkInitializer to override the getAdminURL in each one of the task
console info objects. We also need to override setAuthenticationPassword and
getAuthenticationPassword so that if the task updates the password, the main console info
uses that change, and vice versa. I also added a couple of debug items.
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none
Index: CGIAccessSetup.java
===================================================================
RCS file:
/cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel/CGIAccessSetup.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CGIAccessSetup.java 15 Jun 2006 17:02:33 -0000 1.2
+++ CGIAccessSetup.java 5 Dec 2007 19:54:23 -0000 1.3
@@ -74,7 +74,7 @@
_consoleInfo.getAuthenticationDN(),
_consoleInfo.getAuthenticationPassword());
} catch (MalformedURLException e) {
- Debug.println("CGIDataModel.setConfiguration "+e);
+ Debug.println("CGIAccessSetup.save: "+e);
throw new RemoteRequestException(e);
}
@@ -85,7 +85,6 @@
}
int status = task.getStatus();
- Debug.println(adminURL + " "+status);
AdminOperation.processAdmTaskStatus(adminURL, task,
_consoleInfo);
}
Index: CGIDataModel.java
===================================================================
RCS file:
/cvs/dirsec/admservconsole/src/com/netscape/management/admserv/panel/CGIDataModel.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- CGIDataModel.java 22 May 2006 18:14:41 -0000 1.1.1.1
+++ CGIDataModel.java 5 Dec 2007 19:54:23 -0000 1.2
@@ -258,7 +258,8 @@
int status = task.getStatus();
_loaded = (status == 0);
- Debug.println(adminURL + " "+status);
+ Debug.println("CGIDataModel.getConfiguration(): called URL " +
+ adminURL + " "+status);
AdminOperation.processAdmTaskStatus(adminURL, task, _consoleInfo);