New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collect Task not working when a proxy is set. #645
Comments
Hi @JulienRemi just to clarify, did you exchange the 2 screenshots ? I see an ip staring with |
Can you confirm what kind of proxy you're using and how you configured it in glpi-agent ? |
It's a forward proxy but it's something global to our compagnie and I don't have the hand on it. |
Hi @JulienRemi I just had time to try your issue. As my test instance supports http & https accesses, I can tell you:
So can you clarify few points ?
|
Bug reporting acknowledgment
Yes, I read it
Professional support
None
Describe the bug
The agent doesn't put cookies informations in his POST request for the collect task 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 in the previous request.
Then, the 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
The collect task work well when no proxy is set.
To reproduce
Expected behavior
Collect task working like it does without proxy
Operating system
Windows
GLPI Agent version
1.7.3
GLPI version
10.0.14
GLPIInventory plugin or other plugin version
GLPI Inventory v1.3.5
Additional context
No response
The text was updated successfully, but these errors were encountered: