Project: talendesb
Issue TESB-14267: SR: 'Import' of the template policies does not work anymore
Scenario: - got to Service Registry view in the TAC, - select Policies tab, - 'Import', select template policies file from the Talend-ESB-V5.6.0-SNAPSHOT\add-ons\registry\policies\tesb_template_policies.xml Expected: - policy templates are imported Actual: - policy templates are NOT imported: {code} 2014-09-08 17:38:05 ERROR SRExportImportServlet - Can't import resources. org.talend.esb.rest.service.client.exception.RestClientException: 400: request c lient error - passed id value is not valid UUID - 9f54ccc7-001a-4135-8132-67f819 5fb1fs at org.talend.esb.rest.service.client.impl.RestClientImpl.checkResponseE rror(RestClientImpl.java:163) at org.talend.esb.rest.service.client.impl.RestClientImpl.post(RestClien tImpl.java:66) at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. importResources(SRExportImportServlet.java:164) at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. doImport(SRExportImportServlet.java:137) at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. doPost(SRExportImportServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615) at java.lang.Thread.run(Thread.java:744) 2014-09-08 17:38:05 ERROR SRExportImportServlet - Not able to import resources org.talend.gwttoolkit.client.exception.ClientBusinessException: 400: request cli ent error - passed id value is not valid UUID - 9f54ccc7-001a-4135-8132-67f8195f b1fs at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. importResources(SRExportImportServlet.java:168) at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. doImport(SRExportImportServlet.java:137) at org.talend.gwtadministrator.server.esbinfra.sr.SRExportImportServlet. doPost(SRExportImportServlet.java:66) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp 11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoin t.java:1852) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:615) at java.lang.Thread.run(Thread.java:744) {code} - also there are no any records in the 'Client log'. Exception above comes from the Tomcat console. NOTE: from the commandline all works fine! {code} tregistry:import ws-policy c:/Work/esb/prod/5.6.0/M4/Talend-ESB-V5.6.0-SNAPSHOT/add-ons/registry/policies/tesb_template_policies.xml {code} after that all policies are imported without error.
Story points: 1