Skip to content

Agent tag not reset when no more set #23721

@g-bougard

Description

@g-bougard

Code of Conduct

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

Disable plugins

  • I reproduce the issue with all plugins disabled

Is there an existing issue for this?

  • I have searched the existing issues

Version

11.0.6

Bug description

After a submitted inventory with tag set has been submitted, the tag is kept if tag is removed from the following inventory.

Relevant log output

Page URL

No response

Steps To reproduce

  1. Import an inventory with tag set: tag-issue-with-tag.json
  2. Check the asset in glpi and see it has a tag
  3. Import an inventory from the same asset and with the same deviceid but this time with no tag: tag-issue-no-tag.json
  4. Check the asset in glpi and see the previous tag has been kept

This is also the case with xml inventory: tag-issue-with-tag.xml vs tag-issue-no-tag.xml

Your GLPI setup information

No response

Anything else?

This only happens when deviceid remains the same. The use case is when you reconfigure an agent on a computer to remove the previously tag and after it submitted at least one inventory.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions