Skip to content

Sanitize exported data - #13084

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:export-fix
Oct 24, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:export-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

@SchrodingersGat SchrodingersGat added this to the 1.7.0 milestone Oct 24, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed import / export Data importing, exporting and processing security Relates to a security issue backport Apply this label to a PR to enable auto-backport action backport-to-1.6.x labels Oct 24, 2026
@netlify

netlify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 1d3467d
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6adc13dd79cc6cc66a4f11b3

@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.15%. Comparing base (ae1f822) to head (1d3467d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13084   +/-   ##
=======================================
  Coverage   87.15%   87.15%           
=======================================
  Files        1534     1534           
  Lines      106363   106397   +34     
  Branches    11891    11891           
=======================================
+ Hits        92698    92735   +37     
+ Misses      13599    13596    -3     
  Partials       66       66           
Flag Coverage Δ
backend 92.16% <97.36%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.42% <97.05%> (+<0.01%) ⬆️
Backend General 94.50% <ø> (ø)
Frontend 79.38% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit 66e3278 into inventree:master Oct 24, 2026
53 checks passed
@SchrodingersGat
SchrodingersGat deleted the export-fix branch October 24, 2026 04:52
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.6.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat added a commit that referenced this pull request Oct 24, 2026
(cherry picked from commit 66e3278)

Co-authored-by: Oliver <[email protected]>
@ledvinap

Copy link
Copy Markdown
Contributor

There are few problems with this workaround:

  • LibreOffice Calc (CSV): The added apostrophe remains visible; changing formula evaluation on import does not remove it.
  • Excel and LibreOffice Calc (XLSX): Exported cell values contain an unnecessary apostrophe; explicit string cells could preserve the original values.
  • Scripts and reimport tools (CSV): Changed values break exact matching and lossless round trips; original +2 and '+2 become indistinguishable.

= is probably acceptable mitigation; +,- is quite common starting value in BOM (-12V), so it will be hit quite often

@SchrodingersGat

Copy link
Copy Markdown
Member Author

@ledvinap good point about + and - prefixes - I'll look into loosening that

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

Labels

backport Apply this label to a PR to enable auto-backport action bug Identifies a bug which needs to be addressed import / export Data importing, exporting and processing security Relates to a security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants