-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: OPTIC-1509: Fix information exposure when tasks import failed #7004
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
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: label_studio/data_import/models.py
Did you find this useful? React with a 👍 or 👎 |
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #7004 +/- ##
========================================
Coverage 76.97% 76.98%
========================================
Files 175 175
Lines 14178 14181 +3
========================================
+ Hits 10914 10917 +3
Misses 3264 3264
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
/git merge develop
|
PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change madeex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errorsChange has impacts in these area(s)
(check all that apply)
Describe the reason for change
We got this code scanning alert https://github.com/HumanSignal/label-studio/security/code-scanning/785
Essentially we were showing the uploaded file full paths when importing failed. Now we are only showing the file name so the user knows which file failed.
Before:

After:

What does this fix?
Security issue by exposing internal info.
What is the new behavior?
Only show the file name.
What is the current behavior?
Showing the full file path
Does this PR introduce a breaking change?
(check only one)
Which logical domain(s) does this change affect?
Import