Jasig/cas — pull request #150 by leleuj (2012-10-26 20:08:30+00:00)
Title: CAS-1183 : Move out the services management webapp

It's the step 2 (out of 4) of the CAS-1183 work : removing the services management out of the CAS server.

I did the following changes :
1) For both webapps :
- I couldn't find a use for the 403.html url so I kept the 403 HTTP code mapping in web.xml but on authorizationFailure.html (and removed the view definition and mapping in servlet Spring context.xml)
- I added mappings for 501, 503 and 401 HTTP codes
- I removed the brokenContext.jsp page (and definition in web.xml) as it makes no sense to have it : it's triggered by ApplicationContextException exceptions which can't happen because of the use of the SafeContextLoaderListener (my understanding)
- I moved the maven-translate plugin at parent pom level and just kept minimal definitions in webapp pom

2) For cas-server-webapp :
- I removed all views in services directory and all views definitions except the viewStatistics.jsp I put in a view/jsp/monitoring directory and update the view definition
- I removed all references to services in web.xml and cas-servlet.xml
- I add a /statistics mapping for the viewStatistics in web.xml and cas-servlet.xml
- I cleaned unnecesseray properties in cas.properties
- I moved all files from WEB-INF/class into src/main/resources : more casual Maven arrangement
- I clean the securityContext.xml just to kept IP filtering on /status and /statistics
- I removed useless dependencies (CAS client...)
- I cleaned the audit trail context to remove audits linked to services management
- I simplified the TerminateWebSessionListener

3) For cas-management-webapp :
- I backported the CAS-1200
- I didn't backport the CAS-1204 as it has not been merged yet (but I planed to)

I passed successfully the following tests (using the https://github.com/leleuj/cas-overlay-demo project) :
1) In the management webapp :
- login : user without rights
- login : user with rights (jleleu)
- add service
- edit service
- remove service
- test none existing url : /management/fake -> sent to the /management/manage.html page
- logout

2) In the server webapp :
- login with bad credentials
- login with good credentials
- login with service and good credentials
- logout
- access /status url with right IP
- access /statistics url with right IP
- access /status with url wrong IP
- access /statistics with url wrong IP

The only issue I had is when I clicked on the "English" locale, I stayed in French (my default language), all other languages are working -> it may be relative to CAS-1200, what do you think Misagh ?

**I did my best, but I think more tests are necessary.**

Next pull request will be about the CSS / JS / images cleanup and JSP pages refactoring in cas-management-webapp.