cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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-6614

Symptoms

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
Labels (1)
Was this article helpful? Yes No
No ratings
Comments

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

Version history
Last update:
‎Oct 19, 2018 06:08 PM
Updated by: