[Patch] hp-fab crashes when importing adress book
Bug #1914743 reported by
zdohnal
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned | ||
hplip (Fedora) |
Unknown
|
Unknown
|
|||
hplip (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
we have a following report in Fedora (https:/
The reason of the crash is following:
The function used for opening a file, getOpenFileName(), returns a tuple, where the first member is an absolute path to the chosen file, and another member is the filter used in getOpenFileName() call. The current hp-fab code doesn't take this into account and puts whole tuple into str(), which makes the string from whole tuple. Using this 'string' further results into traceback.
The attached patch fixes it, would you mind adding it to the project?
To post a comment you must log in.
I tested hp-fab in Ubuntu 20.05 and it crashes too.