Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sim card provider 1&1 causes malformed XML file #35

Open
gandi1791 opened this issue Nov 7, 2021 · 1 comment
Open

Sim card provider 1&1 causes malformed XML file #35

gandi1791 opened this issue Nov 7, 2021 · 1 comment

Comments

@gandi1791
Copy link

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Android version : 11

OCS Inventory informations

Android agent version : 2.7

Problem's description

Agent creates file, where section contains tag with name of SIM card provider, in my case "1&1".

part of XML:


26207
de


1&1

XML is not usable as "&" causes malforming of the XML file.
This is not accepted by apache.

log entry of apache:
[perl:error] [pid 34782] [client 192.168.178.134:44608] \nnot well-formed (invalid token) at line 163, column 16, byte 4427 at /usr/lib/x86_64-linux-gnu/perl5/5.32/XML/Parser.pm line 187.\nXML::Simple called at /usr/local/share/perl/5.32.1/Apache/Ocsinventory.pm line 218.\n

other devices without SIM card (Tablet, windows clients, ...) could be inventoried without issues.

@gandi1791
Copy link
Author

Copied source, modified java and created apk with hardcoded value for sim card operator name...
works....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant