Public bug reported:

Hi,

we have a following report in Fedora
(https://bugzilla.redhat.com/show_bug.cgi?id=1919556) , where hp-fab
crashes if you try to import an address book as from file.

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?

** Affects: hplip
     Importance: Undecided
         Status: New

** Affects: hplip (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: hplip (Fedora)
     Importance: Unknown
         Status: Unknown

** Patch added: "Proposed patch"
   
https://bugs.launchpad.net/bugs/1914743/+attachment/5460434/+files/hplip-fab-import.patch

** Bug watch added: Red Hat Bugzilla #1919556
   https://bugzilla.redhat.com/show_bug.cgi?id=1919556

** Also affects: hplip (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=1919556
   Importance: Unknown
       Status: Unknown

** Also affects: hplip (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1914743

Title:
  [Patch] hp-fab crashes when importing adress book

To manage notifications about this bug go to:
https://bugs.launchpad.net/hplip/+bug/1914743/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to