update the credential template and restart the registry
What did you expect to see?
It should properly start and update the credential template
Additional Context
Failing due to the format of credential update url used not working when passed through docker compose
Relevant logs/output (if any)
2024-03-15T11:07:56.481172746Z Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 48: http://credential-schema:3333/credential-schema/{id/did%3Aschema%3Ada125fd7-a085-425f-8523-da8fff1eea8d}
2024-03-15T11:07:56.481176210Z at java.net.URI.create(URI.java:852)
2024-03-15T11:07:56.481194551Z at org.springframework.web.util.DefaultUriBuilderFactory$DefaultUriBuilder.createUri(DefaultUriBuilderFactory.java:404)
2024-03-15T11:07:56.481198282Z at org.springframework.web.util.DefaultUriBuilderFactory$DefaultUriBuilder.build(DefaultUriBuilderFactory.java:397)
2024-03-15T11:07:56.481201502Z at org.springframework.web.util.DefaultUriBuilderFactory.expand(DefaultUriBuilderFactory.java:153)
2024-03-15T11:07:56.481204055Z at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:671)
2024-03-15T11:07:56.481206678Z at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:581)
2024-03-15T11:07:56.481213066Z at dev.sunbirdrc.registry.service.impl.RetryRestTemplate.putForEntity(RetryRestTemplate.java:31)
2024-03-15T11:07:56.481216032Z at dev.sunbirdrc.registry.service.impl.RetryRestTemplate$$FastClassBySpringCGLIB$$b7d06061.invoke(<generated>)
2024-03-15T11:07:56.481219299Z at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
2024-03-15T11:07:56.481222198Z at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
2024-03-15T11:07:56.481225235Z at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
2024-03-15T11:07:56.481384606Z at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
2024-03-15T11:07:56.481399151Z at org.springframework.retry.interceptor.RetryOperationsInterceptor$1.doWithRetry(RetryOperationsInterceptor.java:91)
2024-03-15T11:07:56.481410853Z at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)
2024-03-15T11:07:56.481424754Z at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:164)
2024-03-15T11:07:56.481435574Z at org.springframework.retry.interceptor.RetryOperationsInterceptor.invoke(RetryOperationsInterceptor.java:118)
2024-03-15T11:07:56.481446950Z at org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor.java:153)
2024-03-15T11:07:56.481462763Z at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
2024-03-15T11:07:56.481509350Z at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
2024-03-15T11:07:56.481529319Z at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
2024-03-15T11:07:56.481553358Z at dev.sunbirdrc.registry.service.impl.RetryRestTemplate$$EnhancerBySpringCGLIB$$5e23acaa.putForEntity(<generated>)
2024-03-15T11:07:56.481582091Z at dev.sunbirdrc.registry.service.CredentialSchemaService.updateSchema(CredentialSchemaService.java:160)
2024-03-15T11:07:56.481615138Z at dev.sunbirdrc.registry.service.CredentialSchemaService.ensureCredentialSchema(CredentialSchemaService.java:132)
2024-03-15T11:07:56.481646577Z at dev.sunbirdrc.registry.service.CredentialSchemaService.lambda$ensureCredentialSchemas$3(CredentialSchemaService.java:99)
2024-03-15T11:07:56.481661189Z ... 15 common frames omitted
2024-03-15T11:07:56.481684817Z Caused by: java.net.URISyntaxException: Illegal character in path at index 48: http://credential-schema:3333/credential-schema/{id/did%3Aschema%3Ada125fd7-a085-425f-8523-da8fff1eea8d}
2024-03-15T11:07:56.481711463Z at java.net.URI$Parser.fail(URI.java:2848)
2024-03-15T11:07:56.481764068Z at java.net.URI$Parser.checkChars(URI.java:3021)
2024-03-15T11:07:56.481814260Z at java.net.URI$Parser.parseHierarchical(URI.java:3105)
2024-03-15T11:07:56.481858323Z at java.net.URI$Parser.parse(URI.java:3053)
2024-03-15T11:07:56.481890718Z at java.net.URI.<init>(URI.java:588)
2024-03-15T11:07:56.481921518Z at java.net.URI.create(URI.java:850)
2024-03-15T11:07:56.481957437Z ... 38 common frames omitted
2024-03-15T11:07:56.512589894Z 11:07:56.511 [main] INFO o.s.s.c.ThreadPoolTaskScheduler:218 - Shutting down ExecutorService 'taskScheduler'
2024-03-15T11:07:56.514265909Z 11:07:56.513 [main] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager:232 - Connection manager is shutting down
2024-03-15T11:07:56.516210235Z 11:07:56.515 [main] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager:234 - Connection manager shut down
2024-03-15T11:07:56.517710925Z 11:07:56.517 [main] INFO o.s.s.c.ThreadPoolTaskExecutor:218 - Shutting down ExecutorService 'auditExecutor'
2024-03-15T11:07:56.517895582Z 11:07:56.517 [main] INFO o.s.s.c.ThreadPoolTaskExecutor:218 - Shutting down ExecutorService 'taskExecutor'
What is the bug related to?
Registry Core
What went wrong?
Use registry 2.0 signing
What did you expect to see?
It should properly start and update the credential template
Additional Context
Failing due to the format of credential update url used not working when passed through docker compose
Relevant logs/output (if any)