Revision: glite-voms-admin-server--cvs-trunk--0--patch-123 Archive: lorentey@elte.hu--2004 Creator: Karoly Lorentey Date: Mon Nov 22 15:53:58 CET 2004 Standard-date: 2004-11-22 14:53:58 GMT New-files: config/.arch-ids/server-config.wsdd.footer.id config/.arch-ids/server-config.wsdd.header.id config/install/.arch-ids/context-siblings.xml.template.id config/install/.arch-ids/context.xml.template.id config/install/context-siblings.xml.template config/install/context.xml.template config/server-config.wsdd.footer config/server-config.wsdd.header config/web-siblings.xml config/web/.arch-ids/voms-large.png.id config/web/.arch-ids/voms.svg.id config/web/voms-large.png config/web/voms.svg doc/.arch-ids/LICENSE.id doc/LICENSE src/org/glite/security/voms/service/SecurityContextHandler.java src/org/glite/security/voms/utilities/Resource.java src/org/glite/security/voms/utilities/Settings.java src/org/glite/security/voms/utilities/StackTrace.java src/org/glite/security/voms/webui/VOMSPage.java src/org/glite/security/voms/webui/config/.arch-ids/=id src/org/glite/security/voms/webui/config/Page.java src/org/glite/security/voms/webui/config/ServletContextListener.java New-directories: src/org/glite/security/voms/webui/config src/org/glite/security/voms/webui/config/.arch-ids Removed-files: config/install/context.xml.template config/server-config.wsdd.footer config/server-config.wsdd.header Renamed-files: doc/LICENSE doc/LICENSE.edg src/org/glite/security/voms/webui/PageTestCase.java test/org/glite/security/voms/webui/PageTestCase.java Modified-files: build.xml config/application.xml config/install/voms.database.properties.template config/web.xml config/web/index.html config/web/voms-icon.png config/web/voms.css config/web/voms.png doc/INSTALL doc/LICENSE.edg project/glite-security-voms-admin-server.spec scripts/glite-environment-perl scripts/init-voms-admin scripts/voms-admin-configure src/org/glite/security/voms/database/DBGroup.java src/org/glite/security/voms/database/DBUser.java src/org/glite/security/voms/database/connection/ConnectionPool.java src/org/glite/security/voms/database/connection/ConnectionWrapper.java src/org/glite/security/voms/database/connection/Database.java src/org/glite/security/voms/notification/Notification.java src/org/glite/security/voms/service/CAUpdater.java src/org/glite/security/voms/service/Configuration.java src/org/glite/security/voms/service/InitSecurityContext.java src/org/glite/security/voms/service/PathNamingScheme.java src/org/glite/security/voms/service/VOMSException.java src/org/glite/security/voms/service/VOMSSetup.java src/org/glite/security/voms/service/core/VOMSCoreSoapBindingImpl.java src/org/glite/security/voms/service/trustedadmin/VOMSTrustedAdminSoapBindingImpl.java src/org/glite/security/voms/webui/ControllerFilter.java src/org/glite/security/voms/webui/ControllerServlet.java src/org/glite/security/voms/webui/FileServlet.java src/org/glite/security/voms/webui/Page.java src/org/glite/security/voms/webui/admin/ACLActions.java src/org/glite/security/voms/webui/admin/CapabilityActions.java src/org/glite/security/voms/webui/admin/GlobalACLActions.java src/org/glite/security/voms/webui/admin/GroupActions.java src/org/glite/security/voms/webui/admin/Page.java src/org/glite/security/voms/webui/admin/RoleActions.java src/org/glite/security/voms/webui/admin/Root.java src/org/glite/security/voms/webui/admin/UserActions.java src/org/glite/security/voms/webui/core/CoreContextListener.java src/org/glite/security/voms/webui/core/CoreRoot.java src/org/glite/security/voms/webui/request/AdminRoot.java src/org/glite/security/voms/webui/request/Page.java src/org/glite/security/voms/webui/siblings/Page.java test/org/glite/security/voms/webui/PageTestCase.java New-patches: lorentey@elte.hu--2004/glite-voms-admin-server--cvs-trunk--0--patch-123 Summary: Big Bloated Update: Cosmetic changes, new siblings webapp, RPM postinst/prerm scripts, bugfixes. Keywords: * build.xml: Generalize webapp builder targets. (generate.wsdd): Replace target with macrodef. (create-webapp): New macrodef. (create-war): New macrodef. (war): Use them. * build.xml (stage): Copy from module.lib.dir, not module.webapp.dir. D'oh. (distbin): Include all LICENSE files. (dependencies): Add log4j. (webapp.siblings): New target. (webapp.server): New target. (webapp): Empty target that depends on the other two. * config/application.xml: Fix WAR name. Not that it matters. * config/web.xml: Include version number in display name. Use the new config servlet listener instead of siblings. * project/glite-security-voms-admin-server.spec: Add postinstall/preremove scripts to upgrade/reload/stop the running services. * scripts/glite-environment-perl: Fix Debian-specific config file location. Use FileHandle. Add voms-admin perl package directory to @INC. * scripts/init-voms-admin: Don't source in RedHat functions, we don't use them. Don't restart Tomcat, but make sure the webapps are reloaded. Install the new siblings webapp. New command "reload" (useful for upgrading running instances). Doc updates. (get-vos): Indicate if all VOs were returned. (start, stop): Delete functions. (discover_contexts, start_webapp, stop_webapp, start_vo, stop_vo) (start_siblings, stop_siblings, reload_webapps, webapp_status): New functions. * scripts/voms-admin-configure: New command "upgrade". Handle siblings webapp. (subst, install_context): Remove functions. (create_base_configdir, install_vo_context, install_siblings_context): New functions. (process_template): Add @ characters in a safe way. (install_db, install_service_properties): Remove calls to subst. * config/install/voms.database.properties.template: Replace voms.vo.group.name with voms.vo.name. * config/web/index.html: Minor changes. * config/web/voms.css: Extensive changes throughout the file (EGEEfication plus some nifty effects). * doc/INSTALL: Slight tweaks. * doc/LICENSE.edg: Rename from LICENSE. Update to final EDG license. * doc/LICENSE: New file with EGEE license. * src/org/glite/security/voms/database/DBGroup.java (removeMember): Doc update. * src/org/glite/security/voms/database/DBUser.java (getRolenames): Add missing "Role=" string to qualified role names. * src/org/glite/security/voms/database/connection/ConnectionPool.java: Use the new StackTrace class. * src/org/glite/security/voms/database/connection/ConnectionWrapper.java: Ditto. * src/org/glite/security/voms/database/connection/Database.java: Ditto. * src/org/glite/security/voms/notification/Notification.java: Use the new Resource class instead of Configuration. * src/org/glite/security/voms/webui/FileServlet.java (getFile): Ditto. * src/org/glite/security/voms/service/CAUpdater.java: Update calls to InitSecurityContext. * src/org/glite/security/voms/service/trustedadmin/VOMSTrustedAdminSoapBindingImpl.java: Ditto. * src/org/glite/security/voms/webui/ControllerFilter.java: Ditto. * test/org/glite/security/voms/webui/PageTestCase.java: Ditto. * src/org/glite/security/voms/service/Configuration.java: Delegate resource file loading to the new Resource class. Use the Settings class for gLite option discovery; do not guess. (constructor): Try to find the VO name in JNDI if possible. Revert to the old configDir parameter if fails. Use voms.vo.name instead of voms.vo.group.name for sanity checks, if possible. (configDir, defaultConfigDir): Remove members. (getResource, getConfigResource, getConfigResourceAsStream) (getConfigDir): Remove methods. (getVOName): New method. * src/org/glite/security/voms/service/PathNamingScheme.java: Use Configuration.getVOName instead of an explicit property name. (getInstance): Shut up logging. * src/org/glite/security/voms/service/SecurityContextHandler.java: New file, contains the AXIS handler originally found in InitSecurityContext. * src/org/glite/security/voms/service/VOMSException.java: (getStackTraceAsString): Utility method moved to the new StackTrace class. * src/org/glite/security/voms/service/VOMSSetup.java (stop): Add logging. * src/org/glite/security/voms/service/core/VOMSCoreSoapBindingImpl.java: (listGroups, listCapabilities): Fix logging messages. * src/org/glite/security/voms/webui/ControllerServlet.java: (doGetPost): Cosmetic EGEEfication. Use Page.getTitle to get the page title. (printFooterTab): Removed method. * src/org/glite/security/voms/webui/Page.java: Moved VO-specific parts to VOMSPage to let the code be used by the siblings webapp. EGEEfication updates. (getTitle, printRootTab, printLoginInfoTab): New methods. (printMenuTab): Make method public. (printPagePart): Use Resource instead of Configuration. * src/org/glite/security/voms/webui/admin/ACLActions.java: Lowercase paths in URLs. * src/org/glite/security/voms/webui/admin/CapabilityActions.java: Ditto. * src/org/glite/security/voms/webui/admin/GlobalACLActions.java: Ditto. * src/org/glite/security/voms/webui/admin/GroupActions.java: Ditto. * src/org/glite/security/voms/webui/admin/RoleActions.java: Ditto. * src/org/glite/security/voms/webui/admin/Root.java: Ditto. * src/org/glite/security/voms/webui/admin/UserActions.java: Ditto. * src/org/glite/security/voms/webui/request/AdminRoot.java: Ditto. * src/org/glite/security/voms/webui/admin/GlobalACLActions.java: Add getTitle methods. * src/org/glite/security/voms/webui/admin/GroupActions.java: Ditto. * src/org/glite/security/voms/webui/admin/Root.java: Ditto. * src/org/glite/security/voms/webui/admin/Page.java: Inherit from VOMSPage. * src/org/glite/security/voms/webui/core/CoreRoot.java: Ditto. * src/org/glite/security/voms/webui/request/Page.java: Ditto. * src/org/glite/security/voms/webui/core/CoreRoot.java: EGEEfication. * src/org/glite/security/voms/webui/siblings/Page.java: Use Settings instead of Configuration. Make class VO-independent. * config/server-config.wsdd.footer: Remove arch tag. * config/server-config.wsdd.header: Ditto. * config/install/context-siblings.xml.template: Ditto. * config/install/context.xml.template: Ditto. * config/web/voms-large.png: New file. * config/web/voms.svg: New file. * doc/LICENSE: Add EGEE license. * src/org/glite/security/voms/service/InitSecurityContext.java: Moved AXIS handler to SecurityContextHandler. * src/org/glite/security/voms/utilities/Resource.java: New file. * src/org/glite/security/voms/utilities/Settings.java: New file. * src/org/glite/security/voms/utilities/StackTrace.java: New file. * src/org/glite/security/voms/webui/VOMSPage.java: New file. * src/org/glite/security/voms/webui/config/Page.java: New file. * src/org/glite/security/voms/webui/config/ServletContextListener.java: New file.