Skip to content

Injection stuck at 0 / x lines (separator treated as newline) #615

@MatthewUser8

Description

@MatthewUser8

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.6

Plugin version

2.15.5

Bug description

I've created a Data Injection Model successfully (many attempts) to import a CSV (UTF-8), e.g. a very simple test one like the one below, with headers and a bar separator (I also tried semi colon and comma):

column1|column2|column3
a1|a2|a3
b1|b2|b3

However an actual injection into Users or Computers never completes, the "Import progress" gets stuck on "Injection of the file — 0 / 2 lines". This might be related to the fact that if I click "See the file" on the Mappings tab it's treating the bar separator as newlines, and so it thinks all the data is in the first column1:

Image

Relevant log output

Page URL

/plugins/datainjection/front/clientinjection.form.php

Steps To reproduce

See "Bug description" above

Your GLPI setup information

Image

Anything else?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions