glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
212 stars 51 forks source link

GLPI Agent Deployment Script - "New Ticket" Redirected Incorrectly #694

Closed j-tresarrieu closed 2 weeks ago

j-tresarrieu commented 2 weeks ago

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Hi,

Since the latest update of the GLPI Agent, we've noticed an issue with the Agent Monitor. When using the "New Ticket" button, some or perhaps all agents are being redirected incorrectly.

In some instances, it opens the System32 folder, while in others, it opens the agent binaries folder.

This behavior was unexpected. Initially, I observed this today in my lab environment and, upon checking in production, found the same issue.

I'm using the mass deployment script for the GLPI Agent.

To reproduce

Expected behavior

Button redirecting to New Ticket page

Operating system

Windows

GLPI Agent version

1.9

GLPI version

10.0.15

GLPIInventory plugin or other plugin version

GLPI Inventory v1.3.5

Additional context

No response

j-tresarrieu commented 2 weeks ago

I resolved this problem by adding new options in the script to force the ticket URL change.

In the documentation of the Agent Monitor and the changelog, there is a new option called "AGENTMONITOR_NEWTICKET_URL".

Adding this option to the script solved the problem:

SetupOptions = "/quiet ADDLOCAL=ALL AGENTMONITOR=1 RUNNOW=1 SERVER=https://glpi.site.fr/ AGENTMONITOR_NEWTICKET_URL=https://glpi.site.fr/front/ticket.form.php"

Have you encountered the same issue?

g-bougard commented 2 weeks ago

Hi @j-tresarrieu

the problem has still been reported in redddcyclone/glpi-agentmonitor#24.

And it is still fixed in glpi-agent nightly build. Please, try it to validate or wait next release.