Issue #493 closed

Fork

wolf74
created an issue

Hi, I installed the latest scm-fork-plugin and have run into issues: (1) after selecting a repo and hitting the 'Fork' button, the "Create Fork" menu appears with the 'Contact' email of the original owner filled in: shouldn't that be the email address of the fork-creator? (2) Error "Repository creation failed" Even with admin privileges, I get an error (see messages below) (3) After a 'reload', the forked repo (which failed to be created properly) appears in the list. Thanks, for your help, Wolf

06:36:25.890 [qtp1100228882-21] INFO  sonia.scm.web.security.DefaultAdministrationContext - user wstiebler executes sonia.scm.userrepo.CreateUserRepositoryAction as admin
06:36:25.890 [qtp1100228882-21] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository toby-python-fork of type hg
06:36:25.890 [qtp1100228882-21] INFO  sonia.scm.io.DefaultFileSystem - create directory C:\Repositories\hg\toby-python-fork
06:36:25.984 [qtp1100228882-21] ERROR sonia.scm.fork.ForkResource - could not fork repository
org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [RepositoryPermission{repositoryId=4uOOak8Vm8, permissionType=WRITE}]
        at org.apache.shiro.authz.ModularRealmAuthorizer.checkPermission(ModularRealmAuthorizer.java:334) ~[shiro-core-1.2.2.jar:1.2.2]
        at org.apache.shiro.mgt.AuthorizingSecurityManager.checkPermission(AuthorizingSecurityManager.java:141) ~[shiro-core-1.2.2.jar:1.2.2]
        at org.apache.shiro.subject.support.DelegatingSubject.checkPermission(DelegatingSubject.java:210) [shiro-core-1.2.2.jar:1.2.2]
        at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:88) ~[scm-core-1.34.jar:na]
        at sonia.scm.fork.ForkService.fork(ForkService.java:138) ~[scm-fork-plugin-1.1.jar:na]
        at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.1.jar:na]

Comments (23)

  1. Sebastian Sdorra repo owner
    • changed status to open

    Point 1 is fixed with version 1.2 of the plugin. Could you post a step by step tutorial to reproduce point 2 and 3, because i could not reproduce it. There is a similar issue when you try to fork an empty git repository, but the exception shows an other problem.

  2. wolf74 reporter

    Thanks for the 1.2 update!

    I'm running SCM v 1.34 w/ plugins scm-auth-ldap-plugin, scm-userrepo-plugin, scm-notify-plugin, scm-fork-plugin, scm-mail-plugin; I used "Start Config Wizard" to install pck "75d938" for the repo config (only Mercurial is enabled)

    When trying to create a fork (hitting the 'fork' button, and 'OK' of the "Create Fork" menu), the error message "Repository creation failed" comes up every time.

    The new repository does have a .hg folder and otherwise appears to be empty. (I have to 'reload' to see the entry of the repository in the list.)

    From localhost (logged in as scmadmin) I get the following stack

    01:49:37.377 [qtp1100228882-24] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository expressions-ael-fork of type hg
    01:49:37.377 [qtp1100228882-24] INFO  sonia.scm.io.DefaultFileSystem - create directory C:\Repositories\hg\expressions-ael-fork
    01:49:37.877 [qtp1100228882-24] ERROR sonia.scm.fork.ForkResource - could not fork repository
    sonia.scm.repository.RepositoryException: could not execute push command
            at sonia.scm.repository.spi.HgPushCommand.push(HgPushCommand.java:103) ~[scm-hg-plugin-1.34.jar:na]
            at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:95) ~[scm-core-1.34.jar:na]
            at sonia.scm.fork.ForkService.fork(ForkService.java:138) ~[scm-fork-plugin-1.2.jar:na]
            at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.2.jar:na]
    

    and remotely I get

    01:36:10.361 [qtp1100228882-18] INFO  sonia.scm.web.security.DefaultAdministrationContext - user wstiebler executes sonia.scm.userrepo.CreateUserRepositoryAction as admin
    01:36:10.361 [qtp1100228882-18] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository expressions-ael-fork2 of type hg
    01:36:10.361 [qtp1100228882-18] INFO  sonia.scm.io.DefaultFileSystem - create directory C:\Repositories\hg\expressions-ael-fork2
    01:36:10.455 [qtp1100228882-18] ERROR sonia.scm.fork.ForkResource - could not fork repository
    org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [RepositoryPermission{repositoryId=3mOOr47bt2, permissionType=WRITE}]
            at org.apache.shiro.authz.ModularRealmAuthorizer.checkPermission(ModularRealmAuthorizer.java:334) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.mgt.AuthorizingSecurityManager.checkPermission(AuthorizingSecurityManager.java:141) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.subject.support.DelegatingSubject.checkPermission(DelegatingSubject.java:210) [shiro-core-1.2.2.jar:1.2.2]
            at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:88) ~[scm-core-1.34.jar:na]
            at sonia.scm.fork.ForkService.fork(ForkService.java:138) ~[scm-fork-plugin-1.2.jar:na]
            at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.2.jar:na]
    
  3. wolf74 reporter

    I have the suspicion that 'fork' doesn't play well w/ ldap ... !? (I tried SCM Manager from scratch, loaded 'fork' and added a user: no problem creating a fork; then I added ldap and it failed ....)

    07:20:40.943 [qtp1100228882-22] ERROR sonia.scm.fork.ForkResource - could not fork repository
    org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [RepositoryPermission{repositoryId=6MOOyJNXU2, permissionType=WRITE}]
            at org.apache.shiro.authz.ModularRealmAuthorizer.checkPermission(ModularRealmAuthorizer.java:334) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.mgt.AuthorizingSecurityManager.checkPermission(AuthorizingSecurityManager.java:141) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.subject.support.DelegatingSubject.checkPermission(DelegatingSubject.java:210) [shiro-core-1.2.2.jar:1.2.2]
            at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:88) ~[scm-core-1.34.jar:na]
            at sonia.scm.fork.ForkService.fork(ForkService.java:138) ~[scm-fork-plugin-1.2.jar:na]
            at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.2.jar:na]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_45]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_45]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_45]
    
  4. Sebastian Sdorra repo owner

    Could you please check the permissions of the forked repository (after the error and reload)? Which permission has the user who has forked the repository? Could you please post the content of .scm/config/userrepo.xml?

  5. wolf74 reporter

    After reload, the forked repo shows the owner to be myself (tab 'Permissions'), but claims 'read-only access' in the repo tab.

    userrepo.xml:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <userrepo-config>
        <groups></groups>
        <namePattern></namePattern>
        <type>OWNER</type>
    </userrepo-config>
    
  6. Sebastian Sdorra repo owner

    Sorry, but i could not reproduce this issue. Could you describe a step by step tutorial, with a fresh scm-manager installation to reproduce this issue? Please describe every single step.

  7. wolf74 reporter

    here it goes

    1. scm-server-1.34-app.zip unzipped to c:\scm-server

    2. open http://localhost:8080/, login as scmadmin

    3. install "scm-auth-ldap-plugin", restart server, login as scmadmin

    4. select "Config > General" and fill in the "LDAP Authentication" section; test connection [success]

    5. install "scm-fork-plugin", restart server

    6. launch scm-manager from remote mashine, login as myself (using ldap),

    7. "add" a public repository 'test'

    8. select repo 'test' and hit "Fork"

    ... then the same error occurs as described above (with the following stack)

    00:44:15.123 [qtp1100228882-20] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository test-fork of type hg
    00:44:15.123 [qtp1100228882-20] INFO  sonia.scm.io.DefaultFileSystem - create directory C:\Users\wstiebler\.scm\repositories\hg\test-fork
    00:44:15.201 [qtp1100228882-20] ERROR sonia.scm.fork.ForkResource - could not fork repository
    org.apache.shiro.authz.UnauthorizedException: Subject does not have permission [RepositoryPermission{repositoryId=AxOPEF9Xf2, permissionType=WRITE}]
            at org.apache.shiro.authz.ModularRealmAuthorizer.checkPermission(ModularRealmAuthorizer.java:334) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.mgt.AuthorizingSecurityManager.checkPermission(AuthorizingSecurityManager.java:141) ~[shiro-core-1.2.2.jar:1.2.2]
            at org.apache.shiro.subject.support.DelegatingSubject.checkPermission(DelegatingSubject.java:210) [shiro-core-1.2.2.jar:1.2.2]
            at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:88) ~[scm-core-1.34.jar:na]
            at sonia.scm.fork.ForkService.fork(ForkService.java:138) ~[scm-fork-plugin-1.2.jar:na]
            at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.2.jar:na]
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_45]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_45]
            at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_45]
    
  8. Sebastian Sdorra repo owner

    I've tried to reproduce this on my mac. I've done the steps exactly as you did, but all works as expected. I will try to reproduce this on windows, but i have no windows machine at the moment.

  9. wolf74 reporter

    Thank you for supporting this (and responding so promptly)! I think, SCM Manager is an awesome tool! (making forks work would make it even easier to collaborate ... :-) Please let me know if I can run any more tests on my end.

  10. deyvsh

    Same problem here (also using 1.34 with ldap plugin on Windows):

    • Create repo (fine)
    • Fork repo gives error "Repository creation failed"
    • Forked repo is empty

    Stack trace:

    14:01:24.605 [qtp26281671-124432] INFO  sonia.scm.web.security.DefaultAdministrationContext - user dagregor executes sonia.scm.userrepo.CreateUserRepositoryAction as admin
    14:01:24.605 [qtp26281671-124432] INFO  sonia.scm.repository.DefaultRepositoryManager - create repository dagregor/simple_hg_test of type hg
    14:01:24.605 [qtp26281671-124432] INFO  sonia.scm.io.DefaultFileSystem - create directory d:\hg\dagregor\simple_hg_test
    14:01:25.871 [qtp26281671-124432] ERROR sonia.scm.fork.ForkResource - could not fork repository
    sonia.scm.repository.RepositoryException: could not execute push command
        at sonia.scm.repository.spi.HgPushCommand.push(HgPushCommand.java:103) ~[scm-hg-plugin-1.34.jar:na]
        at sonia.scm.repository.api.PushCommandBuilder.push(PushCommandBuilder.java:95) ~[scm-core-1.34.jar:na]
        at sonia.scm.fork.ForkService.fork(ForkService.java:144) ~[scm-fork-plugin-1.3.jar:na]
        at sonia.scm.fork.ForkResource.fork(ForkResource.java:103) ~[scm-fork-plugin-1.3.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_33]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_33]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_33]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_33]
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) [jersey-bundle-1.17.1.jar:1.17.1]
        at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) [jersey-bundle-1.17.1.jar:1.17.1]
        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]
        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 sonia.scm.filter.SecurityFilter.doFilter(SecurityFilter.java:111) [classes/:na]
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.34.jar:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [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 sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:186) [scm-core-1.34.jar:na]
        at sonia.scm.web.security.ApiBasicAuthenticationFilter.doFilter(ApiBasicAuthenticationFilter.java:112) [classes/:na]
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.34.jar:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at sonia.scm.filter.GZipFilter.doFilter(GZipFilter.java:112) [scm-core-1.34.jar:na]
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.34.jar:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117) [classes/:na]
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.34.jar:na]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) [shiro-web-1.2.2.jar:1.2.2]
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) [shiro-web-1.2.2.jar:1.2.2]
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2]
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2]
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) [shiro-core-1.2.2.jar:1.2.2]
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) [shiro-web-1.2.2.jar:1.2.2]
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) [shiro-web-1.2.2.jar:1.2.2]
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [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.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
        at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291) [jetty-servlet-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443) [jetty-servlet-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556) [jetty-security-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372) [jetty-servlet-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.Server.handle(Server.java:369) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:944) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1005) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) [jetty-http-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [jetty-http-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [jetty-server-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) [jetty-io-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [jetty-io-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [jetty-util-7.6.13.v20130916.jar:7.6.13.v20130916]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [jetty-util-7.6.13.v20130916.jar:7.6.13.v20130916]
        at java.lang.Thread.run(Unknown Source) [na:1.6.0_33]
    Caused by: com.aragost.javahg.commands.ExecutionException: transaction abort!
    rollback completed
    abort: pretxnchangegroup.scm hook is invalid (import of "scmhooks" failed)
        at com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:386) ~[javahg-0.6-scm1.jar:na]
        at com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:179) ~[javahg-0.6-scm1.jar:na]
        at com.aragost.javahg.internals.OutputChannelInputStream.read(OutputChannelInputStream.java:119) ~[javahg-0.6-scm1.jar:na]
        at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.6.0_33]
        at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.6.0_33]
        at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.6.0_33]
        at java.io.FilterInputStream.read(Unknown Source) ~[na:1.6.0_33]
        at com.google.common.io.ByteStreams.copy(ByteStreams.java:169) ~[guava-15.0.jar:na]
        at com.aragost.javahg.internals.PullPushHelper.parseStream(PullPushHelper.java:63) ~[javahg-0.6-scm1.jar:na]
        at com.aragost.javahg.commands.PushCommand.run(PushCommand.java:61) ~[javahg-0.6-scm1.jar:na]
        at com.aragost.javahg.commands.PushCommand.execute(PushCommand.java:88) ~[javahg-0.6-scm1.jar:na]
        at sonia.scm.repository.spi.HgPushCommand.push(HgPushCommand.java:98) ~[scm-hg-plugin-1.34.jar:na]
        ... 106 common frames omitted
    

    Also happy to provide further info / run tests / investigate if useful, and also love the product -- thanks!

  11. wolf74 reporter

    I tried scm-server-app-2013121001.zip from #499 ... with the same result as before: when creating a fork and submitting the dialog an error occurs; after reloading the list of repos the new one appears in the list, though empty and with read-only access, although I'm the owner ...)

  12. Sebastian Sdorra repo owner

    This is really strange. I've tested now with windows 7 and i can not reproduce this, the version from issue #499 works as expected. Have you tested with a fresh .scm directory (you can move the scm directory for testing, please have a look at the faq)? Or did you used the old one?

  13. wolf74 reporter

    partial success! I started afresh this time and could fork a repository.

    However, when I

    1. create a new repository in SCM

    2. push changes from my desktop to SCM

    3. fork

    4. delete fork

    5. fork again

    ..... then I get an error as before. 'hope my description makes sense.

  14. Log in to comment