Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #1651

Open
sf0-k46 opened this issue Nov 12, 2024 · 0 comments
Open

[BUG] #1651

sf0-k46 opened this issue Nov 12, 2024 · 0 comments

Comments

@sf0-k46
Copy link

sf0-k46 commented Nov 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants