apport-cli returns None when attempting to keep report file on Jaunty

Bug #435528 reported by Marc Tardif
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Undecided
Unassigned

Bug Description

When running apport-cli on Jaunty and attempting to keep the report file for sending later, the interface returns None. However, viewing the report works fine. I even checked in the /tmp directory for files starting with "apport", but I found nothing. Note that this feature works fine on Karmic.

Here is a sample session to illustrate the problem:

$ apport-cli -f -p xorg

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (274.7 KiB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  C: Cancel
Please choose (S/V/K/C): K
Problem report file: None

Revision history for this message
Nagappan Alagappan (nagappan) wrote :

In apport-cli file I just tried this fix and this is 100% not the correct one :)

            if response == save:
                fp = open('/tmp/apport-cli.txt', 'w')
                if fp:
                    fp.write(details)
                    fp.close()
                print _('Problem report file:'), self.report_file
                return 'cancel'

I need to file a bug against Ubuntu Karmic, unable to install it on this hardware. So generated a report with the above fix in Ubuntu 9.04.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.