R0Wi-DEV / workflow_ocr

This is a Nextcloud Workflow App which enables you to process files via OCR on serverside.
GNU Affero General Public License v3.0
79 stars 6 forks source link

Get feedback via Notifications - too much unuseful notifications #232

Closed ufgum closed 11 months ago

ufgum commented 1 year ago

I set the "OCR mode" to "skip file completely":

image

When uploading a file which have OCR content already, I get a notification about "Workflow OCR error", but there is no error, no output is ok because OCR is not needed. In the log I see this:

[workflow_ocr] Fehler: OCA\WorkflowOcr\Exception\OcrNotPossibleException: OCRmyPDF did not produce any output for file /uwe/files/ocrPDF/filename.pdf at <<closure>>

0. /home/www/nextcloud/apps/workflow_ocr/lib/Service/OcrService.php line 60
   OCA\WorkflowOcr\OcrProcessors\OcrMyPdfBasedProcessor->ocrFile()
1. /home/www/nextcloud/apps/workflow_ocr/lib/BackgroundJobs/ProcessFileJob.php line 146
   OCA\WorkflowOcr\Service\OcrService->ocrFile()
2. /home/www/nextcloud/apps/workflow_ocr/lib/BackgroundJobs/ProcessFileJob.php line 108
   OCA\WorkflowOcr\BackgroundJobs\ProcessFileJob->processFile()
3. /home/www/nextcloud/lib/public/BackgroundJob/Job.php line 81
   OCA\WorkflowOcr\BackgroundJobs\ProcessFileJob->run()
4. /home/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php line 57
   OCP\BackgroundJob\Job->start()
5. /home/www/nextcloud/lib/public/BackgroundJob/QueuedJob.php line 47
   OCP\BackgroundJob\QueuedJob->start()
6. /home/www/nextcloud/cron.php line 152
   OCP\BackgroundJob\QueuedJob->execute()
R0Wi commented 1 year ago

Confirming that this is not the intended behaviour, thanks for reporting! Will try to get this fixed soon