Skip to content

When inserting itemtype on installation, the / are erased #999

@arthurrschaefer

Description

@arthurrschaefer

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

When installing GLPI and setting parameters for itemtype, the installation process erases the /

Command used perl glpi-agent-1.15-linux-installer.pl --install --server=https://server.com.br --itemtype=Glpi\CustomAsset\Nodes --service --verbose --debug=2

Result in 00-install.cfg

debug=2
server=https://server.com.br
itemtype=GlpiCustomAssetNodes

In order to GLPI 11 understand the Item Type, I need to edit the 00-installl.cfg manually

To reproduce

  1. Install the agent using commands with parameters perl glpi-agent-1.15-linux-installer.pl --install --server=https://server.com.br --itemtype=Glpi\CustomAsset\Nodes --service --verbose --debug=2
  2. Try to run GLPI Agent Inventory to GLPI 11
   },
   "deviceid": "ARSSRV02-2025-08-26-15-41-07",
   "itemtype": "GlpiCustomAssetNodes"
}
...
[debug2] format: Zlib
[error] [http client] communication error: 400 Bad Request, JSON does not validate. Violations:
"GlpiCustomAssetNodes" does not match to ^(Unmanaged|Computer|Phone|NetworkEquipment|Printer|Glpi\\CustomAsset\\ServersAsset|Glpi\\CustomAsset\\NodesAsset|Glpi\\CustomAsset\\AirConditioningAsset)$ at #->proper

Expected behavior

GLPI Agent parameters on installation should get the \ characters in order to itemtype be correctly gathered by GLPI 11.

Operating system

Linux

GLPI Agent version

v1.15

GLPI version

Other (Details in additional context below)

GLPIInventory plugin or other plugin version

Other (Details in additional context below)

Additional context

11-RC2 - Native GLPI Inventory. No Plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions