Agate Rest API returned a process instead of an expected json file

73 views
Skip to first unread message

karduri...@gmail.com

unread,
Nov 4, 2021, 4:19:19 PM11/4/21
to obiba-users

I am working on the Metadata Project for the University of British Columbia Faculty of Medicine. Here is a brief project description: 

'This project will make researcher data findable and accessible. It will build a process and set of

tools for the collection and cataloging of provenance and metadata information for COVID-19-related

research data sets. This catalog will be online, easily searchable, and will enable researchers to

identify and understand access requirements for research data.

We are using the Obiba stack, and the current development involves Mica and Agate. While I setting up the Mica authentication using Agate API. A process returned instead of a JSON file. I am just wondering why that happens and how to fix it so that I could use Agate API properly to set up groups and users on Agate. Thank you!

For Example: using the Agate demo, and getting all users, I got the following return. 

 

# agate rest -ag https://agate-demo.obiba.org -u administrator -p password -j /users

JAVA_OPTS=-Xmx2G

AGATE_HOME=/opt/agate-home

AGATE_DIST=/opt/agate-2.4.0/webapp

 

2021-11-03 09:51:48.487  INFO 1595465 --- [           main] org.obiba.agate.Application              : Starting Application on MEDF-SAPPP541.localdomain with PID 1595465 (/opt/agate-2.4.0/webapp/WEB-INF/classes started by root in /home/zwang103)

2021-11-03 09:51:48.492  INFO 1595465 --- [           main] org.obiba.agate.Application              : The following profiles are active: prod

2021-11-03 09:51:48.614  INFO 1595465 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy

2021-11-03 09:51:49.956  INFO 1595465 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'getMetricRegistry' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration; factoryMethodName=getMetricRegistry; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [com/ryantenney/metrics/spring/config/annotation/DelegatingMetricsConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=metricsConfiguration; factoryMethodName=getMetricRegistry; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/obiba/agate/config/MetricsConfiguration.class]]

2021-11-03 09:51:49.957  INFO 1595465 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'getHealthCheckRegistry' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration; factoryMethodName=getHealthCheckRegistry; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [com/ryantenney/metrics/spring/config/annotation/DelegatingMetricsConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=metricsConfiguration; factoryMethodName=getHealthCheckRegistry; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/obiba/agate/config/MetricsConfiguration.class]]

2021-11-03 09:51:49.958  INFO 1595465 --- [           main] o.s.b.f.xml.XmlBeanDefinitionReader      : Loading XML bean definitions from class path resource [context.xml]

2021-11-03 09:51:50.227  INFO 1595465 --- [           main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'requestContextFilter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration; factoryMethodName=requestContextFilter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jersey/JerseyAutoConfiguration.class]] with [Root bean: class [org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=requestContextFilter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]]

2021-11-03 09:51:50.603  INFO 1595465 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring

2021-11-03 09:51:50.629  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'securityConfiguration' of type [org.obiba.agate.config.SecurityConfiguration$$EnhancerBySpringCGLIB$$ecfba599] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:50.824  INFO 1595465 --- [           main] o.s.aop.framework.CglibAopProxy          : Final method [public final java.lang.String com.google.common.eventbus.EventBus.identifier()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.

2021-11-03 09:51:50.825  INFO 1595465 --- [           main] o.s.aop.framework.CglibAopProxy          : Final method [final java.util.concurrent.Executor com.google.common.eventbus.EventBus.executor()] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance.

2021-11-03 09:51:50.857  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfiguration' of type [org.obiba.agate.config.AsyncConfiguration$$EnhancerBySpringCGLIB$$9135cd0b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:50.882  INFO 1595465 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService

2021-11-03 09:51:50.882  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'getAsyncExecutor' of type [org.obiba.agate.async.ExceptionHandlingAsyncTaskExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:50.928  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'validationConfiguration' of type [org.obiba.agate.config.ValidationConfiguration$$EnhancerBySpringCGLIB$$6b4d80a0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.021  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'validator' of type [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.074  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.207  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'eventBusConfiguration' of type [org.obiba.agate.config.EventBusConfiguration$$EnhancerBySpringCGLIB$$ba03c653] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.292  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'eventBus' of type [com.google.common.eventbus.AsyncEventBus] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.402  INFO 1595465 --- [           main] o.o.agate.config.MetricsConfiguration    : Initializing Metrics JMX reporting

2021-11-03 09:51:51.412  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'metricsConfiguration' of type [org.obiba.agate.config.MetricsConfiguration$$EnhancerBySpringCGLIB$$74d5fa84] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.441  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration' of type [com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration$$EnhancerBySpringCGLIB$$bbdc1180] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.479  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'getMetricRegistry' of type [com.codahale.metrics.MetricRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:51.537  INFO 1595465 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'getHealthCheckRegistry' of type [com.codahale.metrics.health.HealthCheckRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-11-03 09:51:52.025  INFO 1595465 --- [           main] org.mongodb.driver.cluster               : Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}

2021-11-03 09:51:52.128  INFO 1595465 --- [localhost:27017] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:1, serverValue:187}] to localhost:27017

2021-11-03 09:51:52.144  INFO 1595465 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[5, 0, 1]}, minWireVersion=0, maxWireVersion=13, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=13585906}

2021-11-03 09:51:52.908  INFO 1595465 --- [           main] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:2, serverValue:188}] to localhost:27017

2021-11-03 09:51:54.061  INFO 1595465 --- [           main] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy] and template loader path [classpath:/web/]

2021-11-03 09:51:54.061  INFO 1595465 --- [           main] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy] and template loader path [classpath:/static/templates/]

2021-11-03 09:51:54.062  INFO 1595465 --- [           main] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy] and template loader path [classpath:/public/templates/]

2021-11-03 09:51:54.062  INFO 1595465 --- [           main] o.s.ui.freemarker.SpringTemplateLoader   : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy] and template loader path [classpath:/templates/]

2021-11-03 09:51:54.063  INFO 1595465 --- [           main] o.s.w.s.v.f.FreeMarkerConfigurer         : ClassTemplateLoader for Spring macros added to FreeMarker configuration

2021-11-03 09:51:54.450  WARN 1595465 --- [           main] org.apache.shiro.realm.text.IniRealm     : Users or Roles are already populated.  Configured Ini instance will be ignored.

2021-11-03 09:51:54.450  WARN 1595465 --- [           main] org.apache.shiro.realm.text.IniRealm     : Users or Roles are already populated.  resourcePath 'classpath:shiro.ini' will be ignored.

2021-11-03 09:51:54.684  INFO 1595465 --- [           main] o.s.c.ehcache.EhCacheManagerFactoryBean  : Initializing EhCache CacheManager 'agate'

2021-11-03 09:51:54.730  INFO 1595465 --- [           main] n.s.e.p.s.filter.AnnotationSizeOfFilter  : Using regular expression provided through VM argument net.sf.ehcache.pool.sizeof.ignore.pattern for IgnoreSizeOf annotation : ^.*cache\..*IgnoreSizeOf$

2021-11-03 09:51:54.733  INFO 1595465 --- [           main] net.sf.ehcache.pool.sizeof.AgentLoader   : Unavailable or unrecognised attach API : java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine

2021-11-03 09:51:54.739  INFO 1595465 --- [           main] n.sf.ehcache.pool.sizeof.JvmInformation  : Detected JVM data model settings of: Unrecognized 64-Bit JVM

2021-11-03 09:51:54.739  INFO 1595465 --- [           main] n.s.e.pool.impl.DefaultSizeOfEngine      : using Unsafe sizeof engine

2021-11-03 09:51:54.762  INFO 1595465 --- [           main] n.s.e.pool.impl.DefaultSizeOfEngine      : using Unsafe sizeof engine

2021-11-03 09:51:54.782  INFO 1595465 --- [           main] n.s.e.pool.impl.DefaultSizeOfEngine      : using Unsafe sizeof engine

2021-11-03 09:51:54.797  INFO 1595465 --- [           main] n.s.e.pool.impl.DefaultSizeOfEngine      : using Unsafe sizeof engine

2021-11-03 09:51:54.818  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Cache with name 'org.obiba.shiro.realm.SudoRealm.authorizationCache.3' does not yet exist.  Creating now.

2021-11-03 09:51:54.821  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Added EhCache named [org.obiba.shiro.realm.SudoRealm.authorizationCache.3]

2021-11-03 09:51:54.823  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Cache with name 'org.obiba.shiro.realm.HttpHeaderAuthenticatingRealm.authorizationCache.4' does not yet exist.  Creating now.

2021-11-03 09:51:54.826  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Added EhCache named [org.obiba.shiro.realm.HttpHeaderAuthenticatingRealm.authorizationCache.4]

2021-11-03 09:51:54.827  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Cache with name 'org.obiba.shiro.realm.CookieAuthenticatingRealm.authorizationCache.5' does not yet exist.  Creating now.

2021-11-03 09:51:54.830  INFO 1595465 --- [           main] o.a.shiro.cache.ehcache.EhCacheManager   : Added EhCache named [org.obiba.shiro.realm.CookieAuthenticatingRealm.authorizationCache.5]

2021-11-03 09:51:55.377  INFO 1595465 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @8228ms to org.eclipse.jetty.util.log.Slf4jLog

2021-11-03 09:51:55.474  INFO 1595465 --- [           main] e.j.JettyEmbeddedServletContainerFactory : Server initialized with port: 8081

2021-11-03 09:51:55.498  INFO 1595465 --- [           main] org.eclipse.jetty.server.Server          : jetty-9.4.11.v20180605; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbda19606cad384d772f04c; jvm 1.8.0_302-b08

2021-11-03 09:51:55.524  INFO 1595465 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext

2021-11-03 09:51:55.524  INFO 1595465 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 6913 ms

2021-11-03 09:51:55.898  INFO 1595465 --- [           main] org.obiba.agate.config.WebConfiguration  : Web application configuration, using profiles: [prod]

2021-11-03 09:51:55.908  INFO 1595465 --- [           main] org.obiba.agate.config.WebConfiguration  : Web application fully configured

2021-11-03 09:51:55.910  INFO 1595465 --- [           main] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'org.obiba.agate.web.rest.config.JerseyConfiguration' to [/ws/*]

2021-11-03 09:51:55.911  INFO 1595465 --- [           main] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]

2021-11-03 09:51:55.911  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]

2021-11-03 09:51:55.911  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Filter agateCallbackFilter was not registered (possibly already registered?)

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Filter agateSignInFilter was not registered (possibly already registered?)

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Filter agateSignUpFilter was not registered (possibly already registered?)

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'authenticationFilter' to: [/*]

2021-11-03 09:51:55.912  INFO 1595465 --- [           main] o.s.b.w.servlet.FilterRegistrationBean   : Filter OIDCConfigurationFilter was not registered (possibly already registered?)

2021-11-03 09:51:55.987  INFO 1595465 --- [           main] org.eclipse.jetty.server.session         : DefaultSessionIdManager workerName=node0

2021-11-03 09:51:55.988  INFO 1595465 --- [           main] org.eclipse.jetty.server.session         : No SessionScavenger set, using defaults

2021-11-03 09:51:55.989  INFO 1595465 --- [           main] org.eclipse.jetty.server.session         : node0 Scavenging every 660000ms

2021-11-03 09:51:55.995  INFO 1595465 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Shiro environment

2021-11-03 09:51:55.996  INFO 1595465 --- [           main] o.a.shiro.web.env.EnvironmentLoader      : Starting Shiro environment initialization.

2021-11-03 09:51:56.039  INFO 1595465 --- [           main] o.a.shiro.web.env.EnvironmentLoader      : Shiro environment initialized in 43 ms.

2021-11-03 09:51:56.039  INFO 1595465 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started o.s.b.c.e.j.JettyEmbeddedWebAppContext@4888425d{application,/,[file:///opt/agate-2.4.0/webapp/],AVAILABLE}

2021-11-03 09:51:56.040  INFO 1595465 --- [           main] org.eclipse.jetty.server.Server          : Started @8891ms

2021-11-03 09:51:56.061  INFO 1595465 --- [           main] org.obiba.agate.Application              : Running with Spring profile(s) : [prod]

2021-11-03 09:51:56.863  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127a7a2e: startup date [Wed Nov 03 09:51:48 PDT 2021]; root of context hierarchy

2021-11-03 09:51:56.981  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/admin],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.AdminController.admin()

2021-11-03 09:51:56.982  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/authorize],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.AuthorizeController.authz(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)

2021-11-03 09:51:56.985  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[POST],consumes=[application/x-www-form-urlencoded]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.ErrorController.errorWithParams(int,java.lang.String)

2021-11-03 09:51:56.985  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.ErrorController.error(java.lang.String,java.lang.String)

2021-11-03 09:51:56.986  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.IndexController.index()

2021-11-03 09:51:56.986  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/index],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.IndexController.home()

2021-11-03 09:51:56.986  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/page/{page}],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.PagesController.get(javax.servlet.http.HttpServletRequest,java.lang.String)

2021-11-03 09:51:56.987  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/profile],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.ProfileController.profile(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String)

2021-11-03 09:51:56.987  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/forgot-password],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.ResetForgotPasswordController.forgot()

2021-11-03 09:51:56.988  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/reset-password],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.ResetForgotPasswordController.reset(java.lang.String)

2021-11-03 09:51:56.989  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/signup-with],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.SignController.signupWith(java.lang.String)

2021-11-03 09:51:56.989  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/signup],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.SignController.signup(java.lang.String,java.lang.String)

2021-11-03 09:51:56.989  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/signin],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.SignController.signin(javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String)

2021-11-03 09:51:56.989  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/just-registered],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.SignController.justRegistered(boolean)

2021-11-03 09:51:56.990  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/confirm],methods=[GET]}" onto public org.springframework.web.servlet.ModelAndView org.obiba.agate.web.controller.SignController.reset(java.lang.String)

2021-11-03 09:51:56.999  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)

2021-11-03 09:51:56.999  INFO 1595465 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)

2021-11-03 09:51:57.092  INFO 1595465 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2021-11-03 09:51:57.092  INFO 1595465 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2021-11-03 09:51:57.185  INFO 1595465 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]

2021-11-03 09:51:57.567  INFO 1595465 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup

2021-11-03 09:51:57.585  INFO 1595465 --- [           main] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing

2021-11-03 09:51:57.661  INFO 1595465 --- [           main] o.o.r.u.support.DefaultUpgradeManager    : Setting version to : 2.4.0

2021-11-03 09:51:57.901  INFO 1595465 --- [gate-executor-2] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:4, serverValue:190}] to localhost:27017

2021-11-03 09:51:57.928  INFO 1595465 --- [gate-executor-1] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:3, serverValue:189}] to localhost:27017

2021-11-03 09:51:58.038  WARN 1595465 --- [           main] org.eclipse.jetty.servlets.GzipFilter    : GzipFilter is deprecated. Use GzipHandler

2021-11-03 09:51:59.299  INFO 1595465 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring FrameworkServlet 'dispatcherServlet'

2021-11-03 09:51:59.299  INFO 1595465 --- [           main] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started

2021-11-03 09:51:59.316  INFO 1595465 --- [           main] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 17 ms

2021-11-03 09:51:59.346  INFO 1595465 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@3c8758d1{HTTP/1.1,[http/1.1]}{localhost:8081}

2021-11-03 09:51:59.452  INFO 1595465 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@166ddfb7{SSL,[ssl, http/1.1]}{0.0.0.0:8444}

2021-11-03 09:51:59.453  INFO 1595465 --- [           main] .s.b.c.e.j.JettyEmbeddedServletContainer : Jetty started on port(s) 8081 (http/1.1), 8444 (ssl, http/1.1)

2021-11-03 09:51:59.472  INFO 1595465 --- [           main] org.obiba.agate.Application              : Started Application in 11.469 seconds (JVM running for 12.324)

Yannick Marcon

unread,
Nov 4, 2021, 5:14:04 PM11/4/21
to obiba...@googlegroups.com
Hi,

I cannot reproduce. I get the expected result:

$  agate rest -ag https://agate-demo.obiba.org -u administrator -p password -j /users
[
  {
    "email": "us...@test.com",
    "firstName": "James",
    "groupApplications": [
      {
        "application": "mica",
        "group": "mica-user"
      }
    ],
    "groups": [
      "mica-user"
    ],
    "id": "user1",
    "lastLogin": "2021-11-04T07:48:24.936Z",
    "lastName": "Watson",
    "name": "user1",
    "preferredLanguage": "en",
    "realm": "agate-user-realm",
    "role": "agate-user",
    "status": "ACTIVE",
    "timestamps": {
      "created": "2021-11-04T06:38:13.001Z"
    }
  },
etc....


Regards
Yannick


--
You received this message because you are subscribed to the Google Groups "obiba-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obiba-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/05a10ec2-3845-4b3b-a9ba-84d74db7cc20n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages