Closed JulienRemi closed 2 months ago
This sounds like a configuration issue rather than a bug. Probably not related, but you should also consider upgrading GLPI to the latest stable version.
Ho yes sorry I will put it on the forum.
Hi,
I found that the agent doesn't put cookies informations when a proxy is set in the GLPI-agent configuration.
Here is the request when no proxy is set up :
And with a proxy :
I received the Set-cookie header in both case.
Could the access denied come from that ?
Hi, do I need to recreate a new issue or this one can be reopened ?
Hi @JulienRemi
As a result, you need to open an issue on the agent repo and not on the plugin repo.
Describe the bug
Collect task throw an error on the POST request when a proxy is used by the agent, because it receive an html Access Refused page :
There is an error in the access-error.log file on the server :
CSRF check failed for User ID: at /plugins/glpiinventory/b/collect/?action=setAnswer&uuid=660eb484740a3&method=POST
It only append when using a proxy.
To reproduce
Expected behavior
Collect task working like it does without proxy
Operating system
Windows
GLPI Agent version
Other (See additional context below)
GLPI version
10.0.12
GLPIInventory plugin
1.3.5
Additional context
Agent version : 1.7.1