Comments (4)
Worth mentioning: I have not tested any of the other form fields. I have not tested any of the other trigger types (and I know those will lead to different form fields).
Whoever investigates (and fixes) this bug, please take a look at all form fields to make sure they all behave consistently.
from paperless-ngx.
To a certain extent, this is user error. It seems clear enough that no sources will match nothing. We can probably add some validation to prevent empty sources though
from paperless-ngx.
In my humble opinion, it's not "clear enough".
Following the logic of "no sources will match nothing", we would expect that no filter path will match nothing as well. It's inconsistent among the form fields.
I believe the best option is to make "no sources" simply disable the source-checking, just like empty path also disables the path-checking.
If that is not possible, I agree with you regarding adding some validation to warn the user about invalid trigger conditions.
(EDIT) I did a quick research in the codebase:
-
Tag filter is only active if the trigger has any tag defined:
paperless-ngx/src/documents/matching.py
Lines 335 to 341 in d55900b
-
Correspondent filter is only active if the correspondent was set in the trigger:
paperless-ngx/src/documents/matching.py
Lines 349 to 352 in d55900b
-
Document type filter is only active if the document type was set in the trigger:
paperless-ngx/src/documents/matching.py
Lines 359 to 362 in d55900b
-
Filename filter is only active if the filename glob was set in the trigger:
paperless-ngx/src/documents/matching.py
Lines 369 to 377 in d55900b
paperless-ngx/src/documents/matching.py
Lines 281 to 288 in d55900b
-
Mailrule filter is only active if it was set in the trigger:
paperless-ngx/src/documents/matching.py
Lines 269 to 273 in d55900b
-
And, yet, the document source is always active, regardless if it was set in the trigger or left empty:
paperless-ngx/src/documents/matching.py
Line 261 in d55900b
It really sounds like an oversight, and I think it leads to surprising behavior for the user.
from paperless-ngx.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. See our contributing guidelines for more details.
from paperless-ngx.
Related Issues (20)
- [BUG] IMAP Importer crashes if filter for subject contains german special characters like "äöü" and so on HOT 4
- DecompressionBombError even with PAPERLESS_OCR_MAX_IMAGE_PIXELS set to size far exceeding the image size HOT 10
- [BUG] Impossible to edit a document after a migration from paperless-ng, `remove_inbox_tags` is null HOT 10
- [BUG] in the api call /api/documents/ HOT 1
- [BUG] Incorrect logout redirection with subpath HOT 2
- [BUG] Adding a correspondent - duplicate key value violates unique constraint "documents_sender_pkey" HOT 3
- [BUG] When worker container crashes, all pending documents are lost HOT 4
- [BUG] Original file instead of changed file (via pre-consume) is used for further processing HOT 5
- System Status shows classifier error after update 2.6.0 HOT 11
- [BUG] Classifier not loaded HOT 2
- [BUG] Wrong document title was assigned by the mail rule (from attachment name, not from the subject) HOT 9
- [BUG] Automatic e-mail processing doesn't work if the subject uses a non-English character HOT 3
- [BUG] Storage Path not updated HOT 4
- [BUG] [WebKit/Safari] Glitch in the formatting of the optional custom logo HOT 2
- [BUG] Failure to import PDF HOT 4
- [BUG] Error loading Documents "Server Error 500" when changing Save-Path for many Docs at once HOT 1
- [BUG] Title placeholder {created_month_name} not in local language (german) HOT 2
- [BUG] /api/documents/{id} returns redirect instead of document HOT 2
- [BUG] Input File Error HOT 3
- [BUG] Failed to import email HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paperless-ngx.