Skip to content

Conversation

@stonebuzz
Copy link
Contributor

@stonebuzz stonebuzz commented Sep 11, 2025

…o agent

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

  1. The agent runs for the first time (the computer and agent does not yet exists in GLPI).
  2. The agent contacts GLPI for the first time (initial "contact" phase).
  3. GLPI creates the agent entry (without any associated asset at this stage).
  4. GLPI calls the DatabaseInventory plugin to check whether any parameters will need to be requested later depending of related Computer (this is where the warning is triggered).
  5. GLPI returns the tasks to be executed (inventory + database parameter request)(in this case only inventory).
  6. The agent performs its local inventory.
  7. The agent sends the inventory results to GLPI.
  8. GLPI processes the inventory file and creates or updates the computer record.
  9. GLPI updates the agent entry to link it with the corresponding computer.

Screenshots (if appropriate):

@stonebuzz stonebuzz changed the title Fix(Task): prevent undefined index when computer not already linked t… Fix(Task): prevent undefined index when computer not already linkedo agent Sep 11, 2025
@stonebuzz stonebuzz requested a review from Lainow September 11, 2025 13:23
@stonebuzz stonebuzz self-assigned this Sep 11, 2025
@Rom1-B Rom1-B merged commit a0ba9b7 into main Sep 29, 2025
3 checks passed
@Rom1-B Rom1-B deleted the fix_undefined_id branch September 29, 2025 13:52
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

Successfully merging this pull request may close these issues.

Undefined array key "id" in task.class

3 participants