Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-8890

Unable to import projects from a secured Git repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.28.0.Final
    • Workbench
    • NEW
    • NEW
    • Hide

      1.) Create a private repository on github
      2.) push a business-central .git into the repository
      3.) Try to import it via business-central "Import Project"

      Show
      1.) Create a private repository on github 2.) push a business-central .git into the repository 3.) Try to import it via business-central "Import Project"

    Description

      In business-central Version 7.28 I met the very same error as described here:
      Link.

      I can't import projects from a secured repository (in my case github and not gitlab).
      Almost same stacktrace, just some line numbers changed:

      Caused by: java.lang.RuntimeException: org.uberfire.java.nio.fs.jgit.util.commands.Clone$CloneException: Error cloning origin <https://github.com/zzz/process_xyz_holidayRequest.git>.
      at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.createNewGitRepo(JGitFileSystemProvider.java:808)
      at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.createNewGitRepo(JGitFileSystemProvider.java:746)
      at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.lambda$newFileSystem$3(JGitFileSystemProvider.java:643)
      at org.uberfire.java.nio.fs.jgit.manager.JGitFileSystemsManager.lambda$createFileSystemSupplier$0(JGitFileSystemsManager.java:115)
      at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.lambda$get$0(MemoizedFileSystemsSupplier.java:36)
      at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
      at org.uberfire.java.nio.fs.jgit.manager.MemoizedFileSystemsSupplier.get(MemoizedFileSystemsSupplier.java:35)
      at org.uberfire.java.nio.fs.jgit.JGitFileSystemProxy.newWatchService(JGitFileSystemProxy.java:260)
      at org.uberfire.io.impl.AbstractIOService.registerFS(AbstractIOService.java:252)
      at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:233)
      at org.uberfire.ext.metadata.io.IOServiceIndexedImpl.newFileSystem(IOServiceIndexedImpl.java:283)
      at org.guvnor.structure.backend.repositories.git.GitRepositoryBuilder.newFileSystem(GitRepositoryBuilder.java:165)
      at org.guvnor.structure.backend.repositories.git.GitRepositoryBuilder.createFileSystem(GitRepositoryBuilder.java:149)
      ... 107 more
      Caused by: org.uberfire.java.nio.fs.jgit.util.commands.Clone$CloneException: Error cloning origin <https://github.com/zzz/process_xyz_holidayRequest.git>.
      at org.uberfire.java.nio.fs.jgit.util.commands.Clone.execute(Clone.java:136)
      at org.uberfire.java.nio.fs.jgit.util.commands.SubdirectoryClone.execute(SubdirectoryClone.java:154)
      at org.uberfire.java.nio.fs.jgit.util.Git.cloneSubdirectory(Git.java:206)
      at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.createNewGitRepo(JGitFileSystemProvider.java:788)
      ... 119 more
      Caused by: java.lang.RuntimeException: org.eclipse.jgit.api.errors.TransportException: https://github.com/zzz/process_xyz_holidayRequest.git: not authorized
      at org.uberfire.java.nio.fs.jgit.util.commands.Fetch.execute(Fetch.java:68)
      at org.uberfire.java.nio.fs.jgit.util.GitImpl.fetch(GitImpl.java:280)
      at org.uberfire.java.nio.fs.jgit.util.commands.Clone.execute(Clone.java:115)
      ... 122 more
      Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/zzz/process_xyz_holidayRequest.git: not authorized
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254)
      at org.uberfire.java.nio.fs.jgit.util.commands.Fetch.execute(Fetch.java:64)
      ... 124 more
      Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/zzz/process_xyz_holidayRequest.git: not authorized
      at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:531)
      at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:361)
      at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)
      at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)
      at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1271)
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)
      ... 125 more

      Note: Credentials are ok, since I get a list of projects to choose from. But when clicking "Ok" the exeception is thrown.

      Attachments

        Activity

          People

            eignatow Eder Ignatowicz
            khirschmann Kevin Hirschmann (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: