Skip to Content.
Sympa Menu

perfsonar-dev - Re: [pS-dev] New web admin

Subject: perfsonar development work

List archive

Re: [pS-dev] New web admin


Chronological Thread 
  • From: Loukik Kudarimoti <>
  • To: Michael Bischoff <>
  • Cc: Michael Michalis <>, "" <>
  • Subject: Re: [pS-dev] New web admin
  • Date: Mon, 31 Mar 2008 12:40:40 +0100

Hi Michael,

Almost all the current content related to Web admin talks about how to integrate web admin into a perfSONAR web service. We have organized this content into a word document available on the svn here:

http://anonsvn.internet2.edu/svn/perfsonar/trunk/perfsonar-doc/release-management/

We may want to start a wiki page with information not present here. We haven't thought about this yet. We will be happy to hear what your thoughts are in this matter.

thanks,
Loukik.

Michael Bischoff wrote:
Hello all,

Perhaps I'm overlooking things (wouldn't be a first) but where is the
webadmin wiki page?
I've seen most documentation flying over the mailing list, if someone could
harvest it and
stick it on a page? This would probably save us effort later on.

Kind regards,

Michael Bischoff

Michalis, thanks for your effort and dedication to get this out at the
earliest. The only ones who should apologize for this delay are us (me
especially) who wanted
to make the whole web admin stuff look well presented. We hope the results of
our efforts
will be satisfactory.

Thanks again!
Loukik.



Michael Michalis wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi all,


First of all I'm really sorry about the delay in releasing the new web
admin version. We had a lot of look and feel issues to resolve,which are not
all of them
solved, and it took some time to do that. There are no major changes in this
version,
mostly look and feel issues which do not concern developers. However there is
a small issue
that needs to be handled, regarding a bug in the configuration process when
eXist is already
configured. In this case the wizard servlet will fail to work properly as it
gets the eXist
admin password from the service.properties file, which in this case will be
empty. In order
to solve this possible inconsistency we now require the user ti provide the
admin password
in the wizard. The is done by just adding another "mock" property element in
wizard.properties with off course the right numbering, as shown below:

~ <property>
~ <entry key="old_adminpassword" required="true"
password="true">perfsonar</entry> ~ <Comment>Enter the old eXist
administration
password:</Comment>
~ <ProposedValue>perfsonar</ProposedValue>
~ <Group order="5">eXist</Group>
~ </property>


We will also need to change a little bit the code of the
ConfigurationHandler implementation, so that it reflects this change:


Now it will be :


String adminPass = null;
~ String existURI = "";
~ String newAdminPass = null;
~ String username = null;
~ String password = null;
~ String confFile = null;
~ // Need to get the new xmlDBURI and old and new admin
password so that ~ // we can make the changes
~ while (it.hasNext()) {
~ String key = (String) it.next();
~ if (key.endsWith("xmldb.db_adminpassword")) {


~ **************************************************
~ * CODE CHANGE
HERE *
~ * //This is no discarderd, no use for it
now. * ~ * // adminPass =
serviceProperties.getProperty(key).getValue() * ~ * //
.trim();`
*
~ **************************************************


~ newAdminPass = finalProperties.getProperty(key).trim();
~ }
~ if (key.endsWith("xmldb.db_uri")) {
~ existURI = finalProperties.getProperty(key);
~ }


~ }


~ it = finalProperties.orderedKeys();
~ // Iterating though tthe users input
~ while (it.hasNext()) {
~ String key = (String) it.next();
~ // The input from the user is also set in service
properties with a ~ // slight modification for tyhe xmldb uri. We
need to add
the ~ // collection at the end of the URI
~ PerfsonarProperty property = new PerfsonarProperty();
~ if (!key.endsWith("xmldb.db_uri")) {


~ **************************************************
~ * CODE CHANGE
HERE *
~ * //Now we need to get the old password from the
user * ~ * if (key.equals("old_adminpassword"))
{ *
~ * adminPass =
finalProperties.getProperty(key).trim(); * ~ *
}
* ~ **************************************************


~ else {
~ property = serviceProperties.getProperty(key);
~ // If property key does not exist throw an
exceptrion ~ if (property == null) {
~ throw new Exception("Key is invalid " + key +
" ");
~ } else {
~
property.setValue(finalProperties.getProperty(key)); ~
serviceProperties.setProperty(key, property); ~ }
~ }
~ } else {


~ property = serviceProperties.getProperty(key);
~ property.setValue(existURI + "/db/" + dbCollection);
~ serviceProperties.setProperty(key, property);


~ }
~ // Setting also the wizard properties
~ properties.setWizardProperty(key, finalProperties
~ .getWizardProperty(key));


~ // Also getting all needed information in orer to
configure the ~ // exist db
~ if (key.endsWith("xmldb.db_username")) {
~ username = finalProperties.getProperty(key).trim();
~ }
~ if (key.endsWith("xmldb.db_password")) {
~ password = finalProperties.getProperty(key).trim();
~ }
~ if (key.endsWith("conf_file")) {
~ confFile = finalProperties.getProperty(key).trim();
~ }


~ }



Also there is a change in the procedure now. You will need to get the
rest of the stuff besides the jars from
http://anonsvn.internet2.edu/svn/perfsonar/tags/WEB-ADMIN-HTML-CSS-0.8b/
. You can get the perfsonar-web-admin jar from
http://anonsvn.internet2.edu/svn/perfsonar/trunk/jar-repository/perfsonar/perfsonar-web-adm
in/0.8b/perfsonar-web-admin-0.8b.jar . Also make sure to read the updated
product build
guide containing updated info
http://anonsvn.internet2.edu/svn/perfsonar/trunk/perfsonar-doc/release-management/perfSONA
R-MDM-product-build-guide.doc.
Again I'm very sorru for this delay. Please contact me for any problem
you might face.


Best Regards,



Michalis Michael



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFH60cToEWq51/Q/40RAstMAKCZro1HFWVMMIBMCONvEEMJT/FBDgCdF5o9
AuLclnW9qW/nlQDk+tpnlZo=
=YBH6
-----END PGP SIGNATURE-----


--


---------------------------------------------------------------
L o u k i k K u d a r i m o t i


* * Network Engineer
* * City House, 126 - 130, Hills Road
* Cambridge CB2 1PQ, United Kingdom
* WWW: http://www.dante.net
D A N T E Tel:+44 1223 371300 Fax:+44 1223 371371






--

---------------------------------------------------------------
L o u k i k K u d a r i m o t i

* * Network Engineer
* * City House, 126 - 130, Hills Road
* Cambridge CB2 1PQ, United Kingdom
* WWW: http://www.dante.net
D A N T E Tel:+44 1223 371300 Fax:+44 1223 371371




Archive powered by MHonArc 2.6.16.

Top of Page