Skip to content

[BUG] #1651

@sf0-k46

Description

@sf0-k46

OCS Inventory version
Version : 2.12.1

Describe the bug
Exporting a CSV from an All software filter with column Standardized version being empty on all records it is existent in the header of the generated csv file, but not the data of it effectively shifting the trailing columns to the left leaving nbre empty.

Publisher;name;Version;Standardized version;Category;nbre;
[...]
"Adobe";"Adobe Acrobat (64-bit)";"24.004.20220";"Microsoft OS ";"488";
"Adobe";"Adobe Acrobat (64-bit)";"24.004.20243";"Microsoft OS ";"2";
> dos2unix export.csv; column --table --separator ';' export.csv
Publisher  name                      Version         Standardized version  Category  nbre
[...]
"Adobe"    "Adobe Acrobat (64-bit)"  "24.004.20220"  "Microsoft OS "       "488"
"Adobe"    "Adobe Acrobat (64-bit)"  "24.004.20243"  "Microsoft OS "       "2"

To Reproduce
Steps to reproduce the behavior:

  1. Go to All software /index.php?function=visu_all_soft
  2. Click on Filters
  3. Configure filter as follows:
Software name: Adobe Acrobat (64-bit)
Operating system: Windows
Display count softwares: Yes
  1. Click on Search
  2. Click on (Download) /index.php?function=export_csv&no_header=1&tablename=all_soft&nolimit=true
  3. Examine the downloaded CSV file

Expected behavior
CSV column Standardized version should have "" in the CSV data records.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions