FS#65496 - [gscan2pdf] Missing Dependency java-commons-lang leads Strange GSCAN2PDF Warnings

Attached to Project: Community Packages
Opened by Thomas Reim (rdratlos) - Friday, 14 February 2020, 10:39 GMT
Last edited by Muflone (muflone) - Sunday, 28 June 2020, 18:36 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Muflone (muflone)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

If optional dependency pdftk is installed and used and package java-commons-lang, which is an optional dependency for pdftk, is not installed, gscan2pdf throws strange warnings at startup:
1. message:
"pdftk is installed, but cannot access the directory used for temporary files.One reason for this might be that pdftk was installed via snap.In this case, removing pdftk, and reinstalling without using snap would allow gscan2pdf to use pdftk. Another workaround would be to select a temporary directory under your home directory in Edit/Preferences."
2. message
Warning: missing packages
PDF encryption requires pdftk."

Analysis shows that the warnings are caused by gscan2pdf executing pdftk's dump_data function. As soon as package java-commons-lang has been installed, the warning messages are not shown aghain and gscan2pdf works fine.

Please check, if java-commons-lang should be a mandatory dependency for gscan2pdf to avoid misleading warnings for users that installed optional dependency pdftk.
Align solution with pdftk task  FS#65495 .


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Uninstall package java-commons-lang (if installed)
Install pdftk
Install and start gscan2pdf
Start gscan2pdf -> Check warning messages

Then install java-commons-lang
Start gscan2pdf again -> No warnings
This task depends upon

Closed by  Muflone (muflone)
Sunday, 28 June 2020, 18:36 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in gscan2pdf 2.7.0-1
Comment by Thomas Reim (rdratlos) - Friday, 14 February 2020, 10:42 GMT
Please change title to: Missing Dependency java-commons-lang leads Strange GSCAN2PDF Warnings

Please add relkated task:  FS#65495 .
Comment by Thomas Reim (rdratlos) - Friday, 14 February 2020, 10:54 GMT
Further analysis shows that gscan2pdf now requires package pdftk as dependency. If pdftk is not installed a warning message is shown: "Missing package: PDF encryption requires pdftk"
Comment by Jonas Witschel (diabonas) - Friday, 14 February 2020, 11:58 GMT
As stated in  FS#65495 , I think java-commons-lang should be made an optional dependency of gscan2pdf, since it is needed for the already existing optional pdftk dependency. I don't think java-commons-lang needs to be a mandatory dependency of either package.
Comment by Muflone (muflone) - Sunday, 28 June 2020, 18:36 GMT
fixed in gscan2pdf 2.7.0-1

Loading...