Skip to content

Unmarshall issue on ComputerDataSubsetSoftware structure #20

@iitman66

Description

@iitman66

Hello,

When trying to unmarshall the return body for JSSResource/computers/id/295/subset/General&Hardware&Location&Software, I got an error when processing the ComputerDataSubsetSoftware structure.

The error is:
xml: invalid tag in field Text of type struct { Text string \"xml:\\\",chardata,omitempty\\\"\"; Name string \"xml:\\\"name,omitempty\\\"\"; PackageName string \"xml:\\\"package_name,omitempty\\\"\"; Version string \"xml:\\\"version,omitempty\\\"\" }: \",chardata,omitempty\"

After analysis, it appears that the Text field may not be present (this is correctly managed by the omitempty), but the associated name starts by a comma ,chardata

Removing the extra comma allow to solve this issue.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions