Error when attempting to push to a packaging branch: Unexpected Zope exception

Bug #792185 reported by Luke Yelavich
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Critical
Unassigned

Bug Description

 affects launchpad
 done

I was attempting to push a packaging branch to launchpad, creating a branch that I knew didn't exist, but I thought would work. I was attempting to push to lp:ubuntu/natty-proposed/bcmwl. When attempting to do so, I got the following error:

bzr: ERROR: Server sent an unexpected error: ('error', '<Fault -1: "Unexpected Zope exception: TypeError: (\'Could not adapt\', <SuiteSourcePackage ubuntu/natty-proposed/bcmwl>, <InterfaceClass
lp.code.interfaces.branchtarget.IBranchTarget>)">')

I am a member of ubuntu-core-dev, and know that packaging branches exist under the lp:ubuntu/natty-proposed namespace, I even branched one myself to be sure.

Revision history for this message
Martin Pool (mbp) wrote : Re: Error when attempting to push to a packaging branch: Unexpected Zope exception: TypeError:(\'Could not adapt\', <SuiteSourcePackage ubuntu/natty-proposed/bcmwl>,<InterfaceClass lp.code.interfaces.branchtarget.IBranchTarget>)

I'm going to guess this falls under the "errors are critical" policy.

summary: - Error when attempting to push to a packaging branch.
+ Error when attempting to push to a packaging branch: Unexpected Zope
+ exception: TypeError:(\'Could not adapt\', <SuiteSourcePackage
+ ubuntu/natty-proposed/bcmwl>,<InterfaceClass
+ lp.code.interfaces.branchtarget.IBranchTarget>)
Changed in launchpad:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 792185] [NEW] Error when attempting to push to a packaging branch.

So the error is bad. However we don't have a good name for give this
branch - you're pushing to what is basically a symlink.

William Grant (wgrant)
tags: added: codehosting-ssh
Curtis Hovey (sinzui)
tags: added: oops
summary: Error when attempting to push to a packaging branch: Unexpected Zope
- exception: TypeError:(\'Could not adapt\', <SuiteSourcePackage
- ubuntu/natty-proposed/bcmwl>,<InterfaceClass
- lp.code.interfaces.branchtarget.IBranchTarget>)
+ exception
Revision history for this message
Curtis Hovey (sinzui) wrote :

We can write an adapter for SuiteSourcePackage => PackageBranchTarget which is easy. This might not be correct though because the branch name is not the last part of the url. eg
    lp:ubuntu/natty-proposed/bcmwl
becomes
    lp:~ubuntu-branches/ubuntu/natty/bcmwl/natty-proposed
which means that "natty-proposed" is the actual name for the package branch.

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.