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

Issues

Issue #492 new

Cannot create repo because directory exists

André Klitzing
created an issue

If I enable userrepo-plugin with the follow configuration it is possible that it cannot create a repository.

Name pattern: {1}/{0}

If there is a repository with name "example" and a user "example" it is not possible that this user can create own repositories. Of course this is because the directory exists and that's a problem in organizing but maybe there could be a better error message or warning to avoid confusing.

Stacktrace:

 13:22:07.385 [http-bio-8080-exec-9] ERROR sonia.scm.userrepo.UserRepositoryService - could not create new repository
  java.lang.RuntimeException: sonia.scm.repository.RepositoryAllreadyExistExeption
   at sonia.scm.userrepo.CreateUserRepositoryAction.run(CreateUserRepositoryAction.java:80) ~[scm-userrepo-plugin-1.7.jar:na]
   at sonia.scm.web.security.DefaultAdministrationContext.doRunAsInWebSessionContext(DefaultAdministrationContext.java:262) ~[DefaultAdministrationContext.class:na]
   at sonia.scm.web.security.DefaultAdministrationContext.runAsAdmin(DefaultAdministrationContext.java:138) ~[DefaultAdministrationContext.class:na]
   at sonia.scm.userrepo.UserRepositoryService.create(UserRepositoryService.java:127) ~[scm-userrepo-plugin-1.7.jar:na]
   at sonia.scm.userrepo.UserRepositoryResource.create(UserRepositoryResource.java:89) [scm-userrepo-plugin-1.7.jar:na]

Comments (4)

  1. Log in to comment