This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- Code Insight
- :
- Code Insight Knowledge Base
- :
- HTTP 500 error when calling REST API's through Jenkins Plugin in FlexNet Code Insight
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
HTTP 500 error when calling REST API's through Jenkins Plugin in FlexNet Code Insight
HTTP 500 error when calling REST API's through Jenkins Plugin in FlexNet Code Insight
Summary
This article documents a bug in the authentication header when calling REST API's through the Jenkins plugin. This bug was raised under reference SCA-6614Symptoms
Every REST API call finishes with a HTTP 500 error when being processed through the official Jenkins Plugin in FlexNet Code Insight.A sample Request looks like the following:
---------------- Request Start ----------------
GET /palamida/api/project/getProjectByID/15 HTTP/1.1
Host: derlvai01xx.vaillant.vhgroup.lan:8888
Content-Type: application/json
Authorization: Palamida_Internal_Bearer eyJhb[...]FofUI
Cache-Control: no-cache
Postman-Token: 4814900d-8efe-b281-f5b0-3dd9b5e6eefb
---------------- Request End ----------------
Resolution
This issue was caused by a bug in the Jenkins plugin which incorrectly appended the JWT token with 'Palamida_Bearer_Token' which resulted in authentication failures. This bug was logged with our Engineering team under reference SCA-6614 and a resolution has been added to FlexNet Code Insight 6.12.1
No ratings
Comments
Jul 04, 2022
11:04 PM
- Mark as Read
- Mark as New
- Permalink
- Report Inappropriate Content
Jul 04, 2022
11:04 PM
Hi team,
While integrating the Flexnet code insights version 6.14.1 with Jenkins i am facing some issues, i wanted to pass the code from Gitlab so enbled the Pass Jenkins git configuration to Palamida .it was throwing the error like
ERROR: Build step failed with exception javax.ws.rs.WebApplicationException: Unrecognized field "repoUrl" (class com.palamida.appsec.script.model.WorkspaceSettingsModel), not marked as ignorable (6 known properties: "codeAwareEnabled", "pomFileAnalyzerEnabled", "multiIndicatorDetectorEnabled", "autoWriteupEnabled", "analyzerEnabled", "inValidInputs"]) at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@20b3cfd3; line: 1, column: 13] (through reference chain: com.palamida.appsec.script.model.WorkspaceSettingsModel["repoUrl"]) at com.palamida.plugins.jenkins.PalamidaScanBuilder$RestClientResponseFilter.filter(PalamidaScanBuilder.java:248) at org.glassfish.jersey.client.ClientFilteringStages$ResponseFilterStage.apply(ClientFilteringStages.java:139)
please provide a way pass the code to flexnet from git or jenkins workspace