jenkins-control-plugin icon indicating copy to clipboard operation
jenkins-control-plugin copied to clipboard

CSRF enabled -> Missing or bad crumb data when running Clion through VNC

Open Ragarnoy opened this issue 1 year ago • 7 comments

Hi, When using the plugin locally, it works fine with no error, but if I'm VNCing into the computer (from windows to linux), I get the CSRF enabled -> Missing or bad crumb data error for some reason and the plugin simply does not work.

I am using the version 0.13.20 on Clion 2024.1

Ragarnoy avatar Apr 12 '24 11:04 Ragarnoy

sounds strange. Why VNC should change the communication from the remote computer to remote server?

But I can try to reproduce it. Can you verify from terminal/commandline if you are connected via VNC?

 curl -u user:Token -v https://jenkins-url.com/api/json

MCMicS avatar Apr 15 '24 14:04 MCMicS

In case it helps someone, I had this error today and it turned out to be just a copy paste error leaving me with an invalid token.

HGeorge-Adapdix avatar Aug 14 '24 13:08 HGeorge-Adapdix

@HGeorge-Adapdix This mean a wrong token was copied? With a valid on it works for you?

MCMicS avatar Aug 15 '24 06:08 MCMicS

https://jenkins-url.com/crumbIssuer/api/json

healthy-tree avatar Dec 06 '24 02:12 healthy-tree

@healthy-tree What is the comment meaning? a crumissue is not needd if you use API token instead password

MCMicS avatar Dec 08 '24 00:12 MCMicS

And with a self-signed certificate on Jenkins ?

atierant avatar Mar 06 '25 14:03 atierant

self signed should work. intelij will ask o to trust it. the plugin use the trusted certs in IDE

MCMicS avatar Mar 09 '25 19:03 MCMicS