You are not logged in.
Hi all!
Android app successfully got all data and sent to glpi-server
But glpi inventory showed me no any new data. And no any meaningful info was in logs.
So I've dumped the traffic and found, that import fails when tries to parse the data
I found, that the root cause in incorrect timezone offset:
- android app sent it as 3 digits (<OFFSET>+100</OFFSET> )
- but validation on gpli-server wants to have as 4 (^[+-][0-9]{4})
I don't know how to fix it on android side.
Is there any way to fix it on GPLI server side?
Here the parts of dumps:
>>> sent from android
.....
<OPERATINGSYSTEM>
<ARCH>arm64-v8a,armeabi-v7a,armeabi</ARCH>
<BOOT_TIME>2024-37-02 17:37:17</BOOT_TIME>
<DNS_DOMAIN> </DNS_DOMAIN>
<FQDN> </FQDN>
<FULL_NAME>N/A api 34</FULL_NAME>
<HOSTID></HOSTID>
<KERNEL_NAME>linux</KERNEL_NAME>
<KERNEL_VERSION>Linux localhost 5.10.198-android12-9-00091-gcc7f989325f8-ab11589383 #1 SMP PREEMPT Mon Mar 18 09:48:59 UTC 2024 aarch64 Toybox</KERNEL_VERSION>
<NAME></NAME>
<SSH_KEY>.......................</SSH_KEY>
<VERSION>34</VERSION>
<TIMEZONE>
<NAME>..................</NAME>
<OFFSET>+100</OFFSET>
</TIMEZONE>
</OPERATINGSYSTEM>
.....
<<< GPLI response
<?xml version="1.0"?>
<REPLY><ERROR><![CDATA[JSON does not validate. Violations:
"+100" does not match to ^[+-][0-9]{4}$ at #->properties:content->properties:operatingsystem->properties:timezone->properties:offset
]]></ERROR></REPLY>
Offline