Skip to content

Update processes cmd column to longtext - #26430

Merged
Rom1-B merged 1 commit into
glpi-project:11.0/bugfixesfrom
trasher:fix/25948-process-cmd-longtext
Nov 25, 2026
Merged

Rom1-B merged 1 commit into
glpi-project:11.0/bugfixesfrom
trasher:fix/25948-process-cmd-longtext

Conversation

@trasher

@trasher trasher commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

fix #25948

@trasher
trasher requested a review from Rom1-B November 25, 2026 08:44
@trasher trasher added the bug label Nov 25, 2026
@trasher trasher added this to the 11.0.14 milestone Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Process inventory now supports command lines longer than 65,535 characters without truncation.
    • Repeated imports of the same long command retain a single process entry.

The empty schema and migration change glpi_items_processes.cmd from TEXT to LONGTEXT. A functional test imports a process command longer than 65,535 bytes twice and checks that one process is stored with the full command.

Assessment against linked issues

Objective Addressed Explanation
[#25948] Prevent inventory import failure when a process command exceeds the TEXT limit ✅

Suggested reviewers: adrienclairembault, herafia

Severity of issue fixed: Medium

Merge Risk: Minimal · up to d2dd1

This change lets inventory imports store process command lines longer than 65,535 characters instead of failing with a database error. No actionable merge-blocking risk was found, and a test covers the long-command case.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@trasher
trasher requested a review from stonebuzz November 25, 2026 09:02
@Rom1-B
Rom1-B merged commit cafc0e0 into glpi-project:11.0/bugfixes Nov 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inventory import fails when a process command line exceeds glpi_items_processes.cmd TEXT limit

3 participants