HesperidesIntegrationSpec > Can download all files of an instance STANDARD_ERROR
POST http://hesperides:8080/rest/modules/module/2.0.0.0/workingcopy/templates
{
"name": "titi",
"filename": "titi",
"location": "/etc",
"content": "iam=titi",
"version_id": -1,
"rights": {
"user": {
},
"group": {
}
}
}
Content-Type: null
Accept: JSON
POST http://hesperides:8080/rest/modules/module/2.0.0.0/workingcopy/templates
{
"name": "toto",
"filename": "toto",
"location": "/etc",
"content": "iam=toto",
"version_id": -1,
"rights": {
"user": {
},
"group": {
}
}
}
Content-Type: null
Accept: JSON
GET http://hesperides:8080/rest/applications/app/platforms/platform
Content-Type: null
Accept: JSON
GET http://hesperides:8080/rest/files/applications/app/platforms/platform/%23GROUP%23TECHNO/module/2.0.0.0/instances/instance/?isWorkingCopy=false
Content-Type: null
Accept: JSON
{
"status": 404,
"exception": "com.vsct.dt.hesperides.exception.runtime.MissingResourceException",
"message": "There is no module module/2.0.0.0/Release",
"stacktrace": "com.vsct.dt.hesperides.exception.runtime.MissingResourceException: There is no module module/2.0.0.0/Release\n\tat com.vsct.dt.hesperides.files.Files.lambda$getLocations$103(Files.java:108)\n\tat java.util.Optional.orElseThrow(Optional.java:290)\n\tat com.vsct.dt.hesperides.files.Files.getLocations(Files.java:108)\n\tat com.vsct.dt.hesperides.resources.HesperidesFilesResource.getFilesList(HesperidesFilesResource.java:82)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat com.codahale.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:30)\n\tat io.dropwizard.jersey.guava.OptionalResourceMethodDispatchAdapter$OptionalRequestDispatcher.dispatch(OptionalResourceMethodDispatchAdapter.java:37)\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:848)\n\tat io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1515)\n\tat org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)\n\tat org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:348)\n\tat io.dropwizard.jetty.BiDiGzipFilter.doFilter(BiDiGzipFilter.java:127)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486)\n\tat io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:29)\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1486)\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:519)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1097)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:448)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:173)\n\tat io.dropwizard.jetty.ContextRoutingHandler.handle(ContextRoutingHandler.java:38)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:92)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:162)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.java:446)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:271)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:246)\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532)\n\tat java.lang.Thread.run(Thread.java:745)\n"
}
HesperidesIntegrationSpec > Can download all files of an instance FAILED
com.vsct.dt.hesperides.jenkins.pipelines.http.HttpException: Not Found : 404
at com.vsct.dt.hesperides.jenkins.pipelines.http.HTTPBuilderRequester.performRequest_closure1$_closure3(HTTPBuilderRequester.groovy:66)
at groovy.lang.Closure.call(Closure.java:414)
at groovyx.net.http.HTTPBuilder$1.handleResponse(HTTPBuilder.java:503)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1070)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)
at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:515)
at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:434)
at groovyx.net.http.HTTPBuilder.request(HTTPBuilder.java:383)
at com.vsct.dt.hesperides.jenkins.pipelines.http.HTTPBuilderRequester.performRequest(HTTPBuilderRequester.groovy:49)
at com.vsct.dt.hesperides.jenkins.pipelines.Hesperides.httpRequest(Hesperides.groovy:633)
at com.vsct.dt.hesperides.jenkins.pipelines.Hesperides.getInstanceFiles(Hesperides.groovy:586)
at HesperidesIntegrationSpec.Can download all files of an instance(HesperidesIntegrationSpec.groovy:417)