Have you modified the management webapp context at all? In particular, what do your “editRegisteredServiceSimpleFormController” and “addRegisteredServiceSimpleFormController” look like in the servlet file?
From: Aaron Grant [mailto:asgr...@oakland.edu] Sent: Thursday, September 24, 2015 1:22 PM To: cas-user@lists.jasig.org Subject: Re: [cas-user] CAS Management Bug? Hi Misagh, We are using the JSON service registry from dependency: cas-addons: 1.13 The following is what we are seeing in our logs: First Attempt: Parameters: service name: test, url: https://asgrant.oakland.edu, desc: test 2015-09-24 16:01:31,853 INFO [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Saved changes to service 9223372036854775807> 2015-09-24 16:01:31,854 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Rendering view [org.springframework.web.servlet.view.RedirectView: unnamed; URL [manage.html#9223372036854775807]] in DispatcherServlet with name 'cas-management'> 2015-09-24 16:01:31,854 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Successfully completed request> 2015-09-24 16:01:31,854 DEBUG [org.springframework.security.web.access.ExceptionTranslationFilter] - <Chain processed normally> 2015-09-24 16:01:31,854 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] - <SecurityContextHolder now cleared, as request processing completed> 2015-09-24 16:01:31,865 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/loggedout.html'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/authorizationfailure.html'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/css/**'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/images/**'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/js/**'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/themes/**'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 1 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.context.HttpSessionSecurityContextRepository] - <Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@7829a79c: Authentication: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c: Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-####-cas'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 2 of 13 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 3 of 13 in additional filter chain; firing Filter: 'LogoutFilter'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 4 of 13 in additional filter chain; firing Filter: 'CasAuthenticationFilter'> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <serviceTicketRequest = false> 2015-09-24 16:01:31,866 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorConfigured = false> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorRequest = false> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyTicketRequest = false> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <requiresAuthentication = false> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 5 of 13 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 6 of 13 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter'> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 7 of 13 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 8 of 13 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 9 of 13 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'> 2015-09-24 16:01:31,867 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 10 of 13 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.authentication.AnonymousAuthenticationFilter] - <SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c: Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-#####-cas'> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter'> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Secure object: FilterInvocation: URL: /manage.html?action=add&id=9223372036854775807; Attributes: [ROLE_ADMIN]> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Previously Authenticated: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c <mailto:org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c> : Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-########-cas> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.access.vote.AffirmativeBased] - <Voter: org.springframework.security.access.vote.RoleVoter@6e1b495f <mailto:org.springframework.security.access.vote.RoleVoter@6e1b495f> , returned: 1> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Authorization successful> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <RunAsManager did not change Authentication object> 2015-09-24 16:01:31,868 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 reached end of additional filter chain; proceeding with original chain> 2015-09-24 16:01:31,868 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <DispatcherServlet with name 'cas-management' processing GET request for [/cas-management/manage.html]> 2015-09-24 16:01:31,869 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - <Mapping [/manage.html] to HandlerExecutionChain with handler [org.jasig.cas.services.web.ManageRegisteredServicesMultiActionController@5ac0d572] and 1 interceptor> 2015-09-24 16:01:31,869 DEBUG [org.springframework.web.servlet.mvc.multiaction.InternalPathMethodNameResolver] - <Returning handler method name 'manage' for lookup path: /manage.html> 2015-09-24 16:01:31,869 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Last-Modified value for [/cas-management/manage.html] is: -1> 2015-09-24 16:01:31,869 DEBUG [org.springframework.web.servlet.mvc.multiaction.InternalPathMethodNameResolver] - <Returning handler method name 'manage' for lookup path: /manage.html> 2015-09-24 16:01:31,870 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Rendering view [org.springframework.web.servlet.view.JstlView: name 'manageServiceView'; URL [/WEB-INF/view/jsp/manage.jsp]] in DispatcherServlet with name 'cas-management'> 2015-09-24 16:01:31,870 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'services' of type [java.util.ArrayList] to request in view with name 'manageServiceView'> 2015-09-24 16:01:31,870 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'defaultServiceUrl' of type [java.lang.String] to request in view with name 'manageServiceView'> 2015-09-24 16:01:31,870 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'pageTitle' of type [java.lang.String] to request in view with name 'manageServiceView'> 2015-09-24 16:01:31,870 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarding to resource [/WEB-INF/view/jsp/manage.jsp] in InternalResourceView 'manageServiceView'> 2015-09-24 16:01:31,901 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Successfully completed request> 2015-09-24 16:01:31,901 DEBUG [org.springframework.security.web.access.ExceptionTranslationFilter] - <Chain processed normally> 2015-09-24 16:01:31,901 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] - <SecurityContextHolder now cleared, as request processing completed> 2015-09-24 16:01:31,957 DEBUG [net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier] - <Resource: [file:/etc/cas/servicesRegistry.conf] | Old Hash: [657784384a5ad011ea2ecced3744c5abe320ba85] | New Hash: [b9804a123fd124d4c30fced2aeb9195fd5c39e4f]> 2015-09-24 16:01:31,958 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Returning cached instance of singleton bean 'serviceRegistryDao'> 2015-09-24 16:01:31,958 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Received change event for JSON resource file:/etc/cas/servicesRegistry.conf. Reloading services...> 2015-09-24 16:01:31,958 INFO [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Loading Registered Services from: [ URL [file:/etc/cas/servicesRegistry.conf] ]...> Second Attempt Adding New Service, which somehow overwrites data in first attempt: Parameters: service name: test2, url: https://asgrant2.oakland.edu, desc: test2 2015-09-24 16:01:35,267 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Last-Modified value for [/cas-management/add.html] is: -1> 2015-09-24 16:01:35,267 DEBUG [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Displaying new form> 2015-09-24 16:01:35,268 DEBUG [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Created new service of type org.jasig.cas.services.RegisteredServiceImpl> 2015-09-24 16:01:35,268 DEBUG [org.springframework.validation.DataBinder] - <DataBinder requires binding of required fields [description,serviceId,name,allowedToProxy,enabled,ssoEnabled,anonymousAccess,evaluationOrder]> 2015-09-24 16:01:35,268 DEBUG [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Setting form session attribute [org.jasig.cas.services.web.RegisteredServiceSimpleFormController.FORM.registeredService] to: id=9223372036854775807,name=<null>,description=<null>,serviceId=<null>,usernameAttribute=<null>,attributes={},<null>> 2015-09-24 16:01:35,268 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Rendering view [org.springframework.web.servlet.view.JstlView: name 'addServiceView'; URL [/WEB-INF/view/jsp/add.jsp]] in DispatcherServlet with name 'cas-management'> 2015-09-24 16:01:35,268 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'registeredService' of type [org.jasig.cas.services.RegisteredServiceImpl] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,268 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'org.springframework.validation.BindingResult.registeredService' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,268 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'pageTitle' of type [java.lang.String] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,268 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'availableUsernameAttributes' of type [java.util.ArrayList] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,269 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'availableAttributes' of type [java.util.ArrayList] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,269 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'commandName' of type [java.lang.String] to request in view with name 'addServiceView'> 2015-09-24 16:01:35,269 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarding to resource [/WEB-INF/view/jsp/add.jsp] in InternalResourceView 'addServiceView'> 2015-09-24 16:01:35,273 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Successfully completed request> 2015-09-24 16:01:35,273 DEBUG [org.springframework.security.web.access.ExceptionTranslationFilter] - <Chain processed normally> 2015-09-24 16:01:35,273 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] - <SecurityContextHolder now cleared, as request processing completed> 2015-09-24 16:01:49,940 DEBUG [org.quartz.core.JobRunShell] - <Calling execute on job DEFAULT.serviceRegistryReloaderJobDetail> 2015-09-24 16:01:49,944 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.> << cut out list of services >> 2015-09-24 16:01:49,948 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 27 services.> 2015-09-24 16:01:50,545 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/loggedout.html'> 2015-09-24 16:01:50,546 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/authorizationfailure.html'> 2015-09-24 16:01:50,546 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/css/**'> 2015-09-24 16:01:50,546 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/images/**'> 2015-09-24 16:01:50,546 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/js/**'> 2015-09-24 16:01:50,547 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/edit.html'; against '/themes/**'> 2015-09-24 16:01:50,547 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 1 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'> 2015-09-24 16:01:50,547 DEBUG [org.springframework.security.web.context.HttpSessionSecurityContextRepository] - <Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@7829a79c: Authentication: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c <mailto:org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c> : Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-#####-cas'> 2015-09-24 16:01:50,547 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 2 of 13 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 3 of 13 in additional filter chain; firing Filter: 'LogoutFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 4 of 13 in additional filter chain; firing Filter: 'CasAuthenticationFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <serviceTicketRequest = false> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorConfigured = false> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorRequest = false> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyTicketRequest = false> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <requiresAuthentication = false> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 5 of 13 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 6 of 13 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 7 of 13 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'> 2015-09-24 16:01:50,548 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 8 of 13 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 9 of 13 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 10 of 13 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.authentication.AnonymousAuthenticationFilter] - <SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c: Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-#####-cas'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Secure object: FilterInvocation: URL: /edit.html?id=; Attributes: [ROLE_ADMIN]> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Previously Authenticated: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c <mailto:org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c> : Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-#####-cas> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.access.vote.AffirmativeBased] - <Voter: org.springframework.security.access.vote.RoleVoter@6e1b495f <mailto:org.springframework.security.access.vote.RoleVoter@6e1b495f> , returned: 1> 2015-09-24 16:01:50,549 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Authorization successful> 2015-09-24 16:01:50,550 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <RunAsManager did not change Authentication object> 2015-09-24 16:01:50,550 DEBUG [org.springframework.security.web.FilterChainProxy] - </edit.html?id= reached end of additional filter chain; proceeding with original chain> 2015-09-24 16:01:50,550 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <DispatcherServlet with name 'cas-management' processing POST request for [/cas-management/edit.html]> 2015-09-24 16:01:50,550 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - <Mapping [/edit.html] to HandlerExecutionChain with handler [org.jasig.cas.services.web.RegisteredServiceSimpleFormController@37d5742e] and 1 interceptor> 2015-09-24 16:01:50,551 DEBUG [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Created new service of type org.jasig.cas.services.RegisteredServiceImpl> 2015-09-24 16:01:50,551 DEBUG [org.springframework.validation.DataBinder] - <DataBinder requires binding of required fields [description,serviceId,name,allowedToProxy,enabled,ssoEnabled,anonymousAccess,evaluationOrder]> 2015-09-24 16:01:50,551 DEBUG [org.springframework.validation.DataBinder] - <Field [id] has been removed from PropertyValues and will not be bound, because it has not been found in the list of allowed fields> 2015-09-24 16:01:50,552 DEBUG [org.springframework.validation.ValidationUtils] - <Invoking validator [org.jasig.cas.services.web.support.RegisteredServiceValidator@2f6e3b65]> 2015-09-24 16:01:50,552 DEBUG [org.springframework.validation.ValidationUtils] - <Validator found no errors> 2015-09-24 16:01:50,552 DEBUG [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <No errors -> processing submit> 2015-09-24 16:01:50,553 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Loading service definitions from resource [servicesRegistry.conf]> 2015-09-24 16:01:50,553 INFO [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Loading Registered Services from: [ URL [file:/etc/cas/servicesRegistry.conf] ]...> << cut out list of services >> 2015-09-24 16:01:50,562 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Unmarshaled RegisteredServiceWithAttributesImpl: {id=9223372036854775807, description=test, serviceId=https://asgrant.oakland.edu/, name=test, allowedToProxy=false, enabled=true, ssoEnabled=true, anonymousAccess=false, ignoreAttributes=false, evaluationOrder=0, logoutType=BACK_CHANNEL}> 2015-09-24 16:01:50,563 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Writing [28] service definitions to resource [servicesRegistry.conf]> 2015-09-24 16:01:50,567 INFO [org.jasig.cas.services.web.RegisteredServiceSimpleFormController] - <Saved changes to service 9223372036854775807> 2015-09-24 16:01:50,567 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Rendering view [org.springframework.web.servlet.view.RedirectView: unnamed; URL [manage.html#9223372036854775807]] in DispatcherServlet with name 'cas-management'> 2015-09-24 16:01:50,568 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Successfully completed request> 2015-09-24 16:01:50,568 DEBUG [org.springframework.security.web.access.ExceptionTranslationFilter] - <Chain processed normally> 2015-09-24 16:01:50,568 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] - <SecurityContextHolder now cleared, as request processing completed> 2015-09-24 16:01:50,577 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/loggedout.html'> 2015-09-24 16:01:50,577 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/authorizationfailure.html'> 2015-09-24 16:01:50,578 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/css/**'> 2015-09-24 16:01:50,578 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/images/**'> 2015-09-24 16:01:50,578 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/js/**'> 2015-09-24 16:01:50,578 DEBUG [org.springframework.security.web.util.matcher.AntPathRequestMatcher] - <Checking match of request : '/manage.html'; against '/themes/**'> 2015-09-24 16:01:50,578 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 1 of 13 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.web.context.HttpSessionSecurityContextRepository] - <Obtained a valid SecurityContext from SPRING_SECURITY_CONTEXT: 'org.springframework.security.core.context.SecurityContextImpl@7829a79c: Authentication: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c <mailto:org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c> : Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: #####; SessionId: #####; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-######-cas'> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 2 of 13 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 3 of 13 in additional filter chain; firing Filter: 'LogoutFilter'> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 4 of 13 in additional filter chain; firing Filter: 'CasAuthenticationFilter'> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <serviceTicketRequest = false> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorConfigured = false> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyReceptorRequest = false> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <proxyTicketRequest = false> 2015-09-24 16:01:50,579 DEBUG [org.springframework.security.cas.web.CasAuthenticationFilter] - <requiresAuthentication = false> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 5 of 13 in additional filter chain; firing Filter: 'UsernamePasswordAuthenticationFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 6 of 13 in additional filter chain; firing Filter: 'DefaultLoginPageGeneratingFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 7 of 13 in additional filter chain; firing Filter: 'BasicAuthenticationFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 8 of 13 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 9 of 13 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 10 of 13 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.authentication.AnonymousAuthenticationFilter] - <SecurityContextHolder not populated with anonymous token, as it already contained: 'org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c: Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 <mailto:org.jasig.cas.client.validation.AssertionImpl@223a0e81> Credentials (Service/Proxy Ticket): ST-#####-cas'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 11 of 13 in additional filter chain; firing Filter: 'SessionManagementFilter'> 2015-09-24 16:01:50,580 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 12 of 13 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 at position 13 of 13 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Secure object: FilterInvocation: URL: /manage.html?action=add&id=9223372036854775807; Attributes: [ROLE_ADMIN]> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Previously Authenticated: org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c <mailto:org.springframework.security.cas.authentication.CasAuthenticationToken@7829a79c> : Principal: org.springframework.security.core.userdetails.User@d55a842a <mailto:org.springframework.security.core.userdetails.User@d55a842a> : Username: asgrant; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.WebAuthenticationDetails@b364 <mailto:org.springframework.security.web.authentication.WebAuthenticationDetails@b364> : RemoteIpAddress: ######; SessionId: C8B5069B811166AAD5032566CE1FB497; Granted Authorities: ROLE_ADMIN Assertion: org.jasig.cas.client.validation.AssertionImpl@223a0e81 Credentials (Service/Proxy Ticket): ST-######-cas> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.access.vote.AffirmativeBased] - <Voter: org.springframework.security.access.vote.RoleVoter@6e1b495f <mailto:org.springframework.security.access.vote.RoleVoter@6e1b495f> , returned: 1> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <Authorization successful> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.access.intercept.FilterSecurityInterceptor] - <RunAsManager did not change Authentication object> 2015-09-24 16:01:50,581 DEBUG [org.springframework.security.web.FilterChainProxy] - </manage.html?action=add&id=9223372036854775807 reached end of additional filter chain; proceeding with original chain> 2015-09-24 16:01:50,581 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <DispatcherServlet with name 'cas-management' processing GET request for [/cas-management/manage.html]> 2015-09-24 16:01:50,581 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - <Mapping [/manage.html] to HandlerExecutionChain with handler [org.jasig.cas.services.web.ManageRegisteredServicesMultiActionController@5ac0d572] and 1 interceptor> 2015-09-24 16:01:50,582 DEBUG [org.springframework.web.servlet.mvc.multiaction.InternalPathMethodNameResolver] - <Returning handler method name 'manage' for lookup path: /manage.html> 2015-09-24 16:01:50,582 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Last-Modified value for [/cas-management/manage.html] is: -1> 2015-09-24 16:01:50,582 DEBUG [org.springframework.web.servlet.mvc.multiaction.InternalPathMethodNameResolver] - <Returning handler method name 'manage' for lookup path: /manage.html> 2015-09-24 16:01:50,583 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Rendering view [org.springframework.web.servlet.view.JstlView: name 'manageServiceView'; URL [/WEB-INF/view/jsp/manage.jsp]] in DispatcherServlet with name 'cas-management'> 2015-09-24 16:01:50,583 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'services' of type [java.util.ArrayList] to request in view with name 'manageServiceView'> 2015-09-24 16:01:50,583 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'defaultServiceUrl' of type [java.lang.String] to request in view with name 'manageServiceView'> 2015-09-24 16:01:50,583 DEBUG [org.springframework.web.servlet.view.JstlView] - <Added model object 'pageTitle' of type [java.lang.String] to request in view with name 'manageServiceView'> 2015-09-24 16:01:50,583 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarding to resource [/WEB-INF/view/jsp/manage.jsp] in InternalResourceView 'manageServiceView'> 2015-09-24 16:01:50,599 DEBUG [org.springframework.web.servlet.DispatcherServlet] - <Successfully completed request> 2015-09-24 16:01:50,599 DEBUG [org.springframework.security.web.access.ExceptionTranslationFilter] - <Chain processed normally> 2015-09-24 16:01:50,599 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] - <SecurityContextHolder now cleared, as request processing completed> 2015-09-24 16:01:51,222 DEBUG [net.unicon.cas.addons.support.ResourceChangeDetectingEventNotifier] - <Resource: [file:/etc/cas/servicesRegistry.conf] | Old Hash: [b9804a123fd124d4c30fced2aeb9195fd5c39e4f] | New Hash: [c21c84f8097a02848187e73c8b0a7a57dd02b310]> 2015-09-24 16:01:51,223 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Returning cached instance of singleton bean 'serviceRegistryDao'> 2015-09-24 16:01:51,223 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Received change event for JSON resource file:/etc/cas/servicesRegistry.conf. Reloading services...> 2015-09-24 16:01:51,224 INFO [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Loading Registered Services from: [ URL [file:/etc/cas/servicesRegistry.conf] ]...> << cut out list of services >> 2015-09-24 16:01:51,245 DEBUG [net.unicon.cas.addons.serviceregistry.ReadWriteJsonServiceRegistryDao] - <Unmarshaled RegisteredServiceWithAttributesImpl: {id=9223372036854775807, description=test2, serviceId=https://asgrant2.oakland.edu/, name=test2, allowedToProxy=false, enabled=true, ssoEnabled=true, anonymousAccess=false, ignoreAttributes=false, evaluationOrder=0, logoutType=BACK_CHANNEL}> On Thu, Sep 24, 2015 at 2:14 PM, Misagh Moayyed <mmoay...@unicon.net <mailto:mmoay...@unicon.net> > wrote: It’s definitely not a browser/platform issue. It’s a bug, that I think got fixed much later on. The following would be helpful to better diagnose this: 1. What type of service registry? 2. Do you have DEBUG logs for the management app that would show the first and second attempts at saving services? Misagh From: Aaron Grant [mailto:asgr...@oakland.edu <mailto:asgr...@oakland.edu> ] Sent: Thursday, September 24, 2015 10:23 AM To: cas-user@lists.jasig.org <mailto:cas-user@lists.jasig.org> Subject: [cas-user] CAS Management Bug? I was wondering if anyone else has encountered this issue when adding multiple services to the CAS management console. We create a new service... and it gives it a unique ID of say... 9223372036854775807. We save this and see it in the service registry. So we add another one through the CAS management UI and it reuses the same unique ID and overwrites the last one we just added. We tried this with multiple browsers and computers also and see the same results so it doesn't appear to be a browser caching issue or anything. CAS: 4.0.3 (using the same version for the cas-management-webapp dependency) Thanks! Aaron -- Aaron Grant Senior Applications Architect Oakland University - UTS <http://oakland.edu/uts> -- You are currently subscribed to cas-user@lists.jasig.org <mailto:cas-user@lists.jasig.org> as: mmoay...@unicon.net <mailto:mmoay...@unicon.net> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to cas-user@lists.jasig.org <mailto:cas-user@lists.jasig.org> as: asgr...@oakland.edu <mailto:asgr...@oakland.edu> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- Aaron Grant Senior Applications Architect Oakland University - UTS <http://oakland.edu/uts> -- You are currently subscribed to cas-user@lists.jasig.org <mailto:cas-user@lists.jasig.org> as: mmoay...@unicon.net <mailto:mmoay...@unicon.net> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user