scm-manager knocks to git repositories as null user

Issue #968 resolved
Andy Fisher created an issue

scm-server tries to read all git repositories every minute as 'null' user.

'scm-manager.log' bloats ~100Mb/day

Commits/checkouts as real users works ok.

2018-03-01 15:31:41.033 [qtp166239592-78905] WARN  sonia.scm.web.filter.PermissionFilter - user null has not enough permissions
sonia.scm.security.ScmSecurityException: reader permission is required, access to repository kernel.git denied
        at sonia.scm.repository.DefaultRepositoryManager.assertIsReader(DefaultRepositoryManager.java:939)
        at sonia.scm.repository.DefaultRepositoryManager.getFromTypeAndUri(DefaultRepositoryManager.java:709)
        at sonia.scm.repository.DefaultRepositoryManager.getFromUri(DefaultRepositoryManager.java:752)
        at sonia.scm.repository.DefaultRepositoryManager.getFromRequest(DefaultRepositoryManager.java:671)
        at sonia.scm.repository.DefaultRepositoryProvider.get(DefaultRepositoryProvider.java:99)
        at sonia.scm.repository.DefaultRepositoryProvider.get(DefaultRepositoryProvider.java:52)
        at com.google.inject.throwingproviders.ThrowingProviderBinder$SecondaryBinder$2.get(ThrowingProviderBinder.java:200)
        at com.google.inject.throwingproviders.ThrowingProviderBinder$SecondaryBinder$2.get(ThrowingProviderBinder.java:197)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)

SVN repositories stay untouched.

Deployment:

Ubuntu 16.04 LTS, openjdk-8-jre and scm-server 1.57 installed from deb package.

Comments (4)

  1. Andy Fisher reporter

    Workaround:

    config.xml

    <scm-config>
    <anonymousAccessEnabled>false</anonymousAccessEnabled>
    </scm-config>
    

    But I guess the behavior is not ok anyway.

  2. Sebastian Sdorra repo owner
    • changed status to open

    I can't see a reason why scm-manager should try to read all git repositories every minute. Perhaps a plugin? Could you post your installed plugins? Or perhaps an external application, which polls your repositories for changes, such a CI-Server (e.g.: Jenkins, Bamboo or TeamCity)?

  3. Log in to comment