Data Injection cannot assign multiple Groups to a Computer from a single CSV field
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Start with the Data Injection import model's CSV mapping for the Group field and reproduce the issue using the provided TEST-PC CSV with GroupA, GroupB, and GroupC. Compare the single-group case with the multi-group case and determine how the field is converted into Computer-to-Group relationships. Done means multiple groups are linked from one field using a defined separator, with the existing single-group behavior preserved.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.8
Plugin version
2.15.10
Bug description
When importing Computers using the Data Injection plugin, the "Group" field only accepts a single group value.
If multiple group names are provided in the CSV field, the plugin concatenates the entire content and treats it as a single group name instead of creating multiple Computer-to-Group relationships.
This occurs regardless of the separator used.
Tested separators:
- Semicolon (;)
- Comma (,)
- Pipe (|)
- Space
- LF (
\n) - CRLF (
\r\n)
Expected behavior:
The plugin should either:
- Support importing multiple groups from a single field using a configurable separator, or
- Explicitly document that only one group per field is supported.
Actual behavior:
The plugin imports the entire field value as a single group.
Example:
CSV value:
Exchange Domain Servers;Exchange Install Domain Servers;Exchange Servers
Result:
A single Group value is created/searched with the full text instead of assigning three separate groups.
Relevant log output
Page URL
No response
Steps To reproduce
Steps To Reproduce
- Create a Computer import model using Data Injection.
- Map a CSV column to the Group field.
- Create a CSV containing:
Name,Group
TEST-PC,"GroupA;GroupB;GroupC"
- Run the import.
- Open the imported Computer.
Result
Only one Group relation is created and the whole field content is treated as a single group value.
Expected
The Computer should be linked to:
- GroupA
- GroupB
- GroupC
Your GLPI setup information
No response
Anything else?
Additional tests performed
- ";" separator
- "," separator
- "|" separator
- Space separator
- LF-separated values
- CRLF-separated values
All tests produced the same result.
Single group imports work correctly
Example:
Name,Group
TEST-PC,"GRP_AseguramientoRDP"
Result
The relationship is created successfully.
The problem only occurs when attempting to assign multiple groups during Data Injection import.
This feature would be very useful when importing assets from Active Directory, where computers commonly belong to multiple AD groups and those memberships need to be reflected in GLPI group relationships.
- Ngôn ngữ chính
- PHP
- Star
- 76
- Fork
- 62
- Merge trung bình
- 11 giờ 39 phút
- Pull request đã merge (30 ngày)
- 14
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
priority: p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/fulltextsearch#1011 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
phpstan/phpstan-doctrine#794 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Automattic/static-site-importer#1767 ·