URL hacking to +initseries for an already-initialized series OOPSes

Bug #805466 reported by Julian Edwards
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Raphaël Badin

Bug Description

Traceback (most recent call last):

Module zope.publisher.publish, line 134, in publish
result = publication.callObject(request, obj)
Module canonical.launchpad.webapp.publication, line 498, in callObject
return mapply(ob, request.getPositionalArguments(), request)
Module zope.publisher.publish, line 109, in mapply
return debug_call(obj, args)
__traceback_info__: <security proxied zope.browserpage.metaconfigure.SimpleViewClass from /srv/launchpad.net/codelines/trunk/lib/lp/registry/browser/../templates/distroseries-initialize.pt instance at 0xca3e68c>
Module zope.publisher.publish, line 115, in debug_call
return obj(*args)
Module canonical.launchpad.webapp.publisher, line 303, in __call__
self.initialize()
Module lp.registry.browser.distroseries, line 671, in initialize
self.context.previous_series)
Module lp.registry.browser.distroseries, line 645, in seriesToVocab
'value': series.id,
AttributeError: 'NoneType' object has no attribute 'id'<br />

In this case previous_series is None, which is correct for the first series in a new distro.

We can do one of 2 things:
1. redirect +initseries back to the series page
2. make it work properly and say that the series is already initialized

Related branches

Revision history for this message
Julian Edwards (julian-edwards) wrote :

The same error happens when trying to initialize the 2nd series in a distro.

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
tags: added: derivation
Changed in launchpad:
assignee: nobody → Raphaël Victor Badin (rvb)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Raphaël Badin (rvb)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
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.