apport fails to file bugreports

Bug #309307 reported by Markus Korn
44
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Björn Tillenius
python-launchpad-bugs
Invalid
High
Markus Korn
python-launchpad-bugs (Ubuntu)
Invalid
High
Unassigned
Hardy
Invalid
High
Unassigned
Intrepid
Invalid
High
Unassigned

Bug Description

Binary package hint: apport

Trying to report a bug with apport-cli or ubuntu-bug results in a "***Error Network problem". I'm not sure if this is an issue in apport or in launchpad, and I personally hope it is not a problem with py-lp-bugs ;)

Markus

 % LANG=C apport-cli -f -p bughelper

*** Collecting problem information

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

*** Uploading problem information

The collected information is being sent to the bug tracking system.
This might take a few minutes.
.
*** Error: Network problem

Could not upload report data to crash database:

Press any key to continue...

Tags: lp-bugs
Revision history for this message
Markus Korn (thekorn) wrote :

The problem seems to be either launchpad or py-lp-bugs. The .info() object returned by calling https://launchpad.net/+storeblob does not contain a 'X-Launchpad-Blob-Token' entry, so storeblob.upload() returns None, and this result in an AssertionError in apport.

result of print result.info() in storeblob.py line 75:
Date: Thu, 18 Dec 2008 11:37:11 GMT
Server: zope.server.http (HTTP)
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
Content-Length: 6763
Content-Type: text/html;charset=utf-8
Via: 1.1 launchpad.net
Vary: Accept-Encoding
Connection: close

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

Fixed in lp:python-launchpad-bugs rev 169. The name of a field was changed in the recent lp update

- { 'FORM_SUBMIT': '1', 'field.blob': blob })
+ { 'field.actions.continue': '1', 'field.blob': blob })

Markus

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → High
status: New → Fix Committed
Changed in apport:
status: New → Invalid
Changed in apport:
importance: Undecided → High
status: Invalid → Triaged
Changed in python-launchpad-bugs:
importance: Undecided → High
status: New → Triaged
importance: Undecided → High
status: New → Triaged
Revision history for this message
Björn Tillenius (bjornt) wrote :

Do old versions of apport exist, that depend of the field name being FORM_SUBMIT? We had a test to ensure that the field names wouldn't be changed, but a change to it slipped through anyway.

If you want, we could change it back (if older versions of apport need it).

Revision history for this message
Brian Murray (brian-murray) wrote :

Here's a debdiff for Hardy.

Revision history for this message
Brian Murray (brian-murray) wrote :

And one for Intrepid.

Revision history for this message
Brian Murray (brian-murray) wrote :

And one of Jaunty!

Revision history for this message
Brian Murray (brian-murray) wrote :

Yes, there are some stable releases out there that depend on the field name being FORM_SUBMIT. I've already done the work of creating the new package versions but some testing may need to be done for the stable releases. How long would it take to get Launchpad updated?

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 309307] Re: apport fails to file bugreports

On Thu, Dec 18, 2008 at 10:15:58PM -0000, Brian Murray wrote:
> Yes, there are some stable releases out there that depend on the field
> name being FORM_SUBMIT. I've already done the work of creating the new
> package versions but some testing may need to be done for the stable
> releases. How long would it take to get Launchpad updated?

We would update Launchpad tomorrow. Should we go ahead and fix it in
Launchpad?

    affects malone
    status triaged
    importance high
    milestone 2.1.12

Revision history for this message
Brian Murray (brian-murray) wrote :

Yes, that would be the ideal solution. Thanks!

Changed in malone:
assignee: nobody → bjornt
status: Triaged → In Progress
Revision history for this message
Markus Korn (thekorn) wrote :

ok, cool, I'm fine with a solution on launchpad's side, we have to remember to revert my "fixes" in the py-lp-bugs branches

Revision history for this message
Björn Tillenius (bjornt) wrote :

Fixed in RF 7475. This fix should be in production later today.

Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

Thanks. so can you place it fix available by then?

Revision history for this message
Brian Murray (brian-murray) wrote :

Björn - you indicated that this slipped by a test. Has the test been changed to catch this? I'm curious because we are asking more and more reporters to use 'apport-cli' or 'ubuntu-bug' to report bug reports since a lot of information is gathered automatically.

Revision history for this message
Björn Tillenius (bjornt) wrote :

On Fri, Dec 19, 2008 at 04:45:42PM -0000, Brian Murray wrote:
> Björn - you indicated that this slipped by a test. Has the test been
> changed to catch this? I'm curious because we are asking more and more
> reporters to use 'apport-cli' or 'ubuntu-bug' to report bug reports
> since a lot of information is gathered automatically.

Yes, I've change the test to make it more obvious that it shouldn't be
changed.

We do have a test for making sure that Apport works. What happened was
that someone modified the test when it started to fail, instead of
changing the code to make the original test pass. I've modified it so
that the same thing doesn't happen again.

Revision history for this message
Björn Tillenius (bjornt) wrote :

The fix is now in production, and Apport should work again. I managed to get to the +filebug page through the "Report a Problem" option in Firefox.

Changed in malone:
status: Fix Committed → Fix Released
Revision history for this message
Aethralis (aethralis) wrote :

When trying to report a bug via ubuntu-bug I will always get directed to "Lost something?" page. When trying the "Report a Problem" option in Firefox everything seems to be ok.

Revision history for this message
Markus Korn (thekorn) wrote :

Aethralis: this is another bug in launchpad. As a workaround, wait a few seconds and refresh the page, you should see the "Report a bug"-page then.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've reverted the change in revision 171, http://bazaar.launchpad.net/~bughelper-dev/python-launchpad-bugs/main/revision/171 , of python-launchpad-bugs and I'm marking this task as Invalid since the bug was resolved in Launchpad.

Changed in python-launchpad-bugs:
status: Fix Committed → Invalid
status: Triaged → Invalid
status: Triaged → Invalid
Changed in python-launchpad-bugs:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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