Skip to content

Data Import Fixes - #13162

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:import-traversal-fix
Nov 2, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:import-traversal-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member
  • Improved validation of data import session
  • Handle FieldError if incorrect filter field is provided
  • Prevent model traversal via import session filtering
  • Added regression tests

- Improved validation of data import session
- Handle FieldError if incorrect filter field is provided
- Prevent model traversal via import session filtering
- Added regression tests
@SchrodingersGat SchrodingersGat added this to the 1.7.0 milestone Nov 2, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed import / export Data importing, exporting and processing backport Apply this label to a PR to enable auto-backport action backport-to-1.6.x labels Nov 2, 2026
@netlify

netlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 97d25a8
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6ae84ab8a13f9e76750d34ad

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.97%. Comparing base (b4cdbf3) to head (97d25a8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13162      +/-   ##
==========================================
+ Coverage   86.96%   86.97%   +0.01%     
==========================================
  Files        1563     1563              
  Lines      110730   110793      +63     
  Branches    12145    12145              
==========================================
+ Hits        96295    96366      +71     
+ Misses      14368    14360       -8     
  Partials       67       67              
Flag Coverage Δ
backend 91.25% <100.00%> (+0.02%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit 2629cde into inventree:master Nov 2, 2026
52 checks passed
@SchrodingersGat
SchrodingersGat deleted the import-traversal-fix branch November 2, 2026 09:41
@github-actions

github-actions Bot commented Nov 2, 2026

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 Nov 2, 2026
- Improved validation of data import session
- Handle FieldError if incorrect filter field is provided
- Prevent model traversal via import session filtering
- Added regression tests

(cherry picked from commit 2629cde)

Co-authored-by: Oliver <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant