1. Sebastian Sebastian
  2. scm-manager
  3. Issues

Issues

Issue #106 resolved

Repo creation failure leaves empty directory

Daniel Siegmann
created an issue

When trying to add an Hg repository fails, it leaves behind an empty directory. Trying to create the same repo again gives the following error:

{{{ ERROR sonia.scm.api.rest.resources.AbstractManagerResource - error during create sonia.scm.repository.RepositoryAllreadyExistExeption: null }}}

Manually deleting the empty directory resolves the error.

When trying to create a repository fails, the directory should be removed.

Comments (5)

  1. Yeuk Hon Wong

    I would like to reopen this issue for version 1.26.

    08:35:40.457 [qtp14758921-20] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository newjohnwong_Wong_Yeukhon_f1d00eedf7d1524522f4c3faeb58eb87 of type hg
    08:35:40.463 [qtp14758921-20] ERROR sonia.scm.api.rest.resources.AbstractManagerResource - error during create
    sonia.scm.repository.RepositoryAllreadyExistExeption: null
            at sonia.scm.repository.AbstractSimpleRepositoryHandler.create(AbstractSimpleRepositoryHandler.java:118) ~[scm-core-1.26.jar:na]
            at sonia.scm.repository.AbstractSimpleRepositoryHandler.create(AbstractSimpleRepositoryHandler.java:66) ~[scm-core-1.26.jar:na]
            at sonia.scm.repository.DefaultRepositoryManager.create(DefaultRepositoryManager.java:197) ~[classes/:na]
            at sonia.scm.repository.DefaultRepositoryManager.create(DefaultRepositoryManager.java:218) ~[classes/:na]
            at sonia.scm.repository.DefaultRepositoryManager.create(DefaultRepositoryManager.java:88) ~[classes/:na]
            at sonia.scm.api.rest.resources.AbstractManagerResource.create(AbstractManagerResource.java:147) ~[classes/:na]
            at sonia.scm.api.rest.resources.RepositoryResource.create(RepositoryResource.java:172) [classes/:na]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_15]
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_15]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_15]
            at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_15]
            at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) [jersey-server-1.17.jar:1.17]
            at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) [jersey-bundle-1.17.jar:1.17]
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) [jersey-bundle-1.17.jar:1.17]
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) [jersey-bundle-1.17.jar:1.17]
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
            at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
     and so on
    
  2. Log in to comment