You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-07-27 07:30:07

kmpm
Member
Registered: 2023-07-27
Posts: 1

GLPI Android Agent reports "Done" but got background validation error.

Hi,
I have installed the GLPI Android Agent, version 1.1.0 build 39347, using Google Play on my Samsung Galaxy S9 and added my server.

When i click the "RUN INVENTORY NOW" button and send to all servers, everything seems to be OK and it eventually finishes with the message "Done",
but nothing shows up on the server.

I then went on to run tcpdump on the server (it works because of SSL being handled by caddy as reverse proxy) and found out that the server
replies to the client with a validation error.

The server response XML shows

<?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&nbsp;(...)]]></ERROR></REPLY>

The corresponding part of the XML in the request shows

  <SOFTWARES>
      <NAME></NAME>
      <COMMENTS>se.volvofinans.carpay</COMMENTS>
      <VERSION>2.26.1</VERSION>
      <FILESIZE>23983102</FILESIZE>
      <FROM>Android</FROM>
      <INSTALLDATE>04/10/2019</INSTALLDATE>
      <FOLDER>/data/app/se.volvofinans.carpay-TW-bo-eBV72YY4bitp7lcQ==</FOLDER>
      <NO_REMOVE>1</NO_REMOVE>
      <USERID>10290</USERID>
    </SOFTWARES>

That application, CaryPay, works as it should but somehow the agent does not seem to find a name for it.
The expected behaviour of the GLPI Agent would be ...
- to show any errors from the server reply and not just show "Done"
- to actually get the name correctly or use for example the "comments" value as a fallback for name.


If I uninstall CarPay and I do another round of "RUN INVENTORY NOW" it works and the phone shows up in the server inventory.

I tried to see if I could post an Issue on the github repo but issues are disabled and the CONTRIBUTING.md document actually points to a completely different project (flyve mdm) that in turn is archived.

After a lot of looking around I eventually found this forum and I hope that someone here can either tell me where to post the bug
and/or possible have a solution to the issue (besides uninstalling the app that doesn't get a name).

Thanks in advance
//Peter

Offline

Board footer

Powered by FluxBB