Describe the bug
When this library is used in glpi-android-agent it will sometime produce a report that fails the validation on glpi server
because of a blank software name.
To Reproduce
Steps to reproduce the behavior:
Install CarPay using Google Pay (by Volvofinans Bank AB in Sweden)
Run tcpdump on your GLPI server to capture the traffic between agent and server.
Install and configure GLPI Agent on you phone
Click "RUN INVENTORY NOW"
Wait for "Done" message in the agent
Nothing shows up on the server but if you look in the capture from tcpdump you will find a HTTP response with something similar to
<?xml version="1.0"?>
<REPLY><ERROR><![CDATA[JSON does not validate. Violations:
Required property missing: name, data: {"comments":"se.volvofinans.carpay","version":"2.26.1","filesize":23983102,"from":"Android","folder":"/data/app/se.volvofinans.carpay-TW-bo-eBV72YY4bitp7lcQ==","no_remove":tru (...)]]></ERROR></REPLY>
Expected behavior
When the agent reports "Done" I expect a properly formated inventory to be sent to the server.
Screenshots
N/A.
Desktop (please complete the following information):
N/A.
Smartphone (please complete the following information):
Device: Samsung Galaxy S9
OS: Android 10
GLPI Agent version 1.1.0 (even though its from 21 apr. 2022)
Additional context
When looking at the request from the GLPI Agent which contains the XML built by this library I find that the carpay software has a blank name
Describe the bug When this library is used in glpi-android-agent it will sometime produce a report that fails the validation on glpi server because of a blank software name.
To Reproduce Steps to reproduce the behavior:
Nothing shows up on the server but if you look in the capture from tcpdump you will find a HTTP response with something similar to
Expected behavior When the agent reports "Done" I expect a properly formated inventory to be sent to the server.
Screenshots N/A.
Desktop (please complete the following information): N/A.
Smartphone (please complete the following information):
Additional context When looking at the request from the GLPI Agent which contains the XML built by this library I find that the carpay software has a blank name
If that happens, perhaps use comments as a fallback instead so that the inventory at least is valid for GLPI.
This is also reported in the GLPI forum at https://forum.glpi-project.org/viewtopic.php?id=287704