You are not logged in.
Hi all!
It's seems, that problem not in android app, because:
- Android app successfully got all data and sent to glpi-server
- But import was failed, because it wasn't validated on GPLI side
I've dumped the traffic and found "faulty" part (timezone offset length = 3 digits, but GPLI waits for 4 digits)
The same behaviour I've got when saved all text data from dump and tried to import it manually:
- original data import was failed with the same error (this error I got in web-interface)
- but when I've made offset +100 -> +1000 (3 digits to 4 digits) all data imprted successfully
So the question is - how to solve it?
I'm not a good in php, and wasn't able to find the code with this validation
Is there any ideas?
.....
<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>
.....
<?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