question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitClient class fails when importing bugs

See original GitHub issue

The following command bash import_vulas_kb.sh http://localhost:8033/backend/ fails with this error.

[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.sign.relaxStripFinals=true
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.sign.saveDecompiledArchive=false
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.sign.saveEditScriptIntersection=false
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.sign.saveEditScripts=false
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.sign.showDecompiledConstruct=false
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.skipKnownArchive=false
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.tenant.token=603EFBA1EA9B98ADB4B548682597E6D0
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.upload.deleteAfterSuccess=true
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.core.verifyJars=true
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.patcha.vcs.clients=[com.sap.psr.vulas.git.GitClient, com.sap.psr.vulas.svn.SvnClient]
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.report.exceptionExcludeUnassessed=all
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.report.exceptionScopeBlacklist=[TEST, PROVIDED]
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.report.exceptionThreshold=dependsOn
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.backend.serviceUrl=http://localhost:8033/backend/
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.buildBranch=UNKNOWN_BRANCH
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.buildTimestamp=2019-06-06T14:28:12Z
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.charset=UTF-8
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.env=[PROCESSOR_IDENTIFIER, NUMBER_OF_PROCESSORS, PROCESSOR_LEVEL, PROCESSOR_ARCHITECTURE, PROCESSOR_REVISION, JAVA_HOME, COMPUTERNAME, MAVEN_PROJECTBASEDIR, MAVEN_HOME, MAVEN_CONFIG, MAVEN_OPTS, BUILD_URL, BUILD_TAG, BUILD_TIMESTAMP, BUILD_DISPLAY_NAME, BUILD_ID, BUILD_NUMBER, BUILD_VERSION]
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.homepage=https://github.com/SAP/vulnerability-assessment-tool
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.sys=[os., java., runtime., maven., sun.]
[main] INFO  com.sap.psr.vulas.shared.util.VulasConfiguration  -     vulas.shared.version=3.0.18
[main] WARN  com.sap.psr.vulas.core.util.CoreConfiguration  - Cannot determine Vulas version from manifest entry [Implementation-Version], check Vulas JAR
[main] INFO  com.sap.psr.vulas.backend.requests.BasicHttpRequest  - HTTP OPTIONS [uri=http://localhost:8033/backend//bugs/CVE-2018-1331]
[main] INFO  com.sap.psr.vulas.backend.requests.BasicHttpRequest  - HTTP OPTIONS completed with response code [404] in [00.078 ms] (proxy=false)
[main] INFO  com.sap.psr.vulas.patcha.VulasProxySelector  - Proxy selector configuration: None
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[main] INFO  com.sap.psr.vulas.git.GitClient  - Create dir [/tmp/patcha_github.com-apache-storm-] for GIT repo [https://github.com/apache/storm/]
[main] ERROR com.sap.psr.vulas.git.GitClient  - Unknown exception while cloning GIT repository [https://github.com/apache/storm/]: Dangling meta character '*' near index 0
*.169.254/16
^
java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*.169.254/16
^
	at java.util.regex.Pattern.error(Pattern.java:1957)
	at java.util.regex.Pattern.sequence(Pattern.java:2125)
	at java.util.regex.Pattern.expr(Pattern.java:1998)
	at java.util.regex.Pattern.compile(Pattern.java:1698)
	at java.util.regex.Pattern.<init>(Pattern.java:1351)
	at java.util.regex.Pattern.compile(Pattern.java:1028)
	at java.util.regex.Pattern.matches(Pattern.java:1133)
	at java.lang.String.matches(String.java:2121)
	at com.sap.psr.vulas.shared.util.StringList.contains(StringList.java:128)
	at com.sap.psr.vulas.patcha.VulasProxySelector.select(VulasProxySelector.java:71)
	at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:279)
	at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:829)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:491)
	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:345)
	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:1269)
	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:241)
	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:306)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200)
	at com.sap.psr.vulas.git.GitClient.setup(GitClient.java:97)
	at com.sap.psr.vulas.git.GitClient.setRepoUrl(GitClient.java:189)
	at com.sap.psr.vulas.patcha.PatchAnalyzer.createVCSClient(PatchAnalyzer.java:121)
	at com.sap.psr.vulas.patcha.PatchAnalyzer.setRepoURL(PatchAnalyzer.java:85)
	at com.sap.psr.vulas.patcha.PatchAnalyzer.<init>(PatchAnalyzer.java:64)
	at com.sap.psr.vulas.patcha.PatchAnalyzer.main(PatchAnalyzer.java:369)
[main] ERROR com.sap.psr.vulas.patcha.PatchAnalyzer  - VCS client com.sap.psr.vulas.git.GitClient (type GIT) does not match to the repository (if any) at URL https://github.com/apache/storm/
[main] ERROR com.sap.psr.vulas.patcha.PatchAnalyzer  - Root cause: VCS client com.sap.psr.vulas.git.GitClient (type GIT) does not match to the repository (if any) at URL https://github.com/apache/storm/
[main] INFO  com.sap.psr.vulas.svn.SvnClient  - SVNKIT proxy configuration (host:port): null:0
[main] ERROR com.sap.psr.vulas.patcha.PatchAnalyzer  - Error when instantiating VCS client from class [com.sap.psr.vulas.svn.SvnClient]: Dangling meta character '*' near index 0
*.169.254/16
^
[main] ERROR com.sap.psr.vulas.patcha.PatchAnalyzer  - No VCS client found for URL https://github.com/apache/storm/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
jingxinpcommented, Jun 7, 2019

the version of my git is 2.17.2 I follow the “Batch Import from Knowledge Base” of the document (https://sap.github.io/vulnerability-assessment-tool/vuln_db/tutorials/vuln_db_tutorial/#batch-import-from-knowledge-base)
run bash import_vulas_kb.sh http://localhost:8033/backend/ can see the error @Naramsim

1reaction
nasifimtiazohicommented, Mar 25, 2020

Hi,

I switched to Ubuntu and vulnerability data import works. (I have only checked importing single CVEs. now trying the batch import)

Seems like this issue is exclusive to Mac where I was getting this error was unable to resolve it. my system details:

platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 6.2
year 2019
month 12
day 12
svn rev 77560
language R
version.string R version 3.6.2 (2019-12-12)
nickname Dark and Stormy Night
Read more comments on GitHub >

github_iconTop Results From Across the Web

508801 – Submodule update/init fails to include modules ...
Bug 508801 - Submodule update/init fails to include modules whose name and ... shows the error: <pre> package jgit_bug_test; import java.io.
Read more >
java.lang.ClassNotFoundException: hudson.matrix.MatrixBuild
Enabling the Git Client plugin gives an error in the "/configure" URL, see the attached file. Environment: Jenkins ver.
Read more >
Error fetching from GitLab 8.0.3 repository when it's used by ...
I suspect this is a local configuration issue with your Gitlab server, rather than a bug in the git plugin or the git...
Read more >
Importing a GitHub project into Eclipse - Stack Overflow
The metadata folder is totally transparent to the Git client, while the working directory is used to expose the currently checked out Repository...
Read more >
buildSrc/src/main/kotlin/androidx/build/gitclient/GitClient.kt - platform ...
import androidx.build.releasenotes. ... A simple git client that uses system process commands to communicate with the git setup in ... class GitClientImpl(.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found