Cannot edit importance, status or assignee after changing project inline

Bug #433995 reported by Gavin Panella
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Unassigned

Bug Description

If you change the project for a bug using the inline AJAX editor
widget, then attempt to edit the status, importance or assignee, the
latter will fail. In the case of status and importance, the following
error message is shown:

  The following errors were encountered:
  Server error, please contact an administrator. OOPS ID:<OOPS ID>

In the case of the assignee, the error shown is:

  Internal Server Error

  Traceback (most recent call last):
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/zope.publisher-3.5.6-py2.4.egg/zope/publisher/publish.py", line 133, in publish
      result = publication.callObject(request, obj)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/lazr.restful-0.9.5-py2.4.egg/lazr/restful/publisher.py", line 157, in callObject
      value = super(
    File "/srv/staging.launchpad.net/staging/launchpad/lib/canonical/launchpad/webapp/publication.py", line 373, in callObject
      return mapply(ob, request.getPositionalArguments(), request)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/zope.publisher-3.5.6-py2.4.egg/zope/publisher/publish.py", line 108, in mapply
      return debug_call(obj, args)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/zope.publisher-3.5.6-py2.4.egg/zope/publisher/publish.py", line 114, in debug_call
      return obj(*args)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/lazr.restful-0.9.5-py2.4.egg/lazr/restful/_resource.py", line 831, in __call__
      result = self.do_PATCH(media_type, representation)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/lazr.restful-0.9.5-py2.4.egg/lazr/restful/_resource.py", line 1362, in do_PATCH
      return self.applyChanges(changeset)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/lazr.restful-0.9.5-py2.4.egg/lazr/restful/_resource.py", line 1078, in applyChanges
      field.set(self.entry, value)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/zope.schema-3.5.4-py2.4.egg/zope/schema/_bootstrapfields.py", line 183, in set
      setattr(object, self.__name__, value)
    File "/srv/staging.launchpad.net/staging/launchpad/eggs/lazr.restful-0.9.5-py2.4.egg/lazr/restful/declarations.py", line 765, in __set__
      getattr(obj.context, self.mutator)(new_value, **params)
    File "/srv/staging.launchpad.net/staging/launchpad/lib/lp/bugs/model/bugtask.py", line 309, in this_is_a_null_bugtask_method
      raise NotImplementedError
  NotImplementedError

At a guess, this seems like the problem is that the URL path for the
bugtask has changed, but the widgets are attempting to use the old
path.

Bug 443217 should/could be fixed at the same time as this one.

Revision history for this message
Deryck Hodge (deryck) wrote :

Ideally, this should be fixed before the release rollout. I wonder, though, if that is a reasonable target or if the fix for this might be more involved?

Changed in malone:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Eleanor Berger (intellectronica) wrote : Re: [Bug 433995] Re: Cannot edit importance, status or assignee after changing project inline

2009/9/21 Deryck Hodge <email address hidden>:
> Ideally, this should be fixed before the release rollout.  I wonder,
> though, if that is a reasonable target or if the fix for this might be
> more involved?

It should be possible to fix this in time for roll-out. I already have
a solution for that problem for the product control, so extending it
to the other controls is not too much work.

Deryck Hodge (deryck)
tags: added: oops
Revision history for this message
Gavin Panella (allenap) wrote :

OOPS-1544A949 is another example.

Deryck Hodge (deryck)
tags: added: dhrb
Deryck Hodge (deryck)
description: updated
Changed in launchpad:
importance: High → Critical
Tim Penhey (thumper)
tags: added: thunderdome
Revision history for this message
Curtis Hovey (sinzui) wrote :

This is implicitly fixed by the new by the new behaviour of retargeting using ajax. The process finishes with a redirect to load the page for the retargeted location.

Changed in launchpad:
status: Triaged → Fix Released
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.