Skip to content

Problems with characteres in the .ocs file #181

@tolemac

Description

@tolemac

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

11.0.7

Plugin version

2.6.0

Bug description

We have a error in the log (sccm.log) saying:

2026-06-02 09:43:26 [473@SUInventario]
[Config 1] Can't load file: /var/lib/glpi/_plugins/sccm/xml/1/16797877.ocs
An error occurred

I have inspected the ocs file and validate it on https://www.xmlvalidation.com/

xmlvalidation.com says:

Errors in the XML document:
	5:	14159	An invalid XML character (Unicode: 0xffff) was found in the element content of the document.

In the ocs file I found that:

<SOFTWARES><NAME>Software para dispositivos de chipset Intel®</NAME><VERSION>10.1.18121.8164</VERSION><PUBLISHER>Intel(R) Corporation쩗ኮ᠀耀��</PUBLISHER></SOFTWARES>

And I see it on Notepad++:

Image

Well, It's not important for me but it stop the load of the computer ... I have query the database with the same SQL that use "sccm.class.php" in getSoftware method and return is:

Image

I'm not sure if the problem became loading info from database or writing the OCS file, but the load of OCS file throw an exception.

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions