2643: Changing to github hosted service after upgrading to 1.6.9 fails with "Unable to link the account: HTTP Error 201: Created"

colin*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 4, 2012
What version are you running?
1.6.9

What's the URL of the page containing the problem?
/admin/db/scmtools/repository/

What steps will reproduce the problem?
1. Select a private repo and attempt to change hosting to github and private org settings (org/repo)

What is the expected output? What do you see instead?
Expected: Save successful, return to repo list
Seeing instead: http://cl.ly/1X0K3M0N0V2C0g192D3P

What operating system are you using? What browser?
Latest Chrome, RHEL5.5

Please provide any additional information below.
chipx86
#1 chipx86
What version of Python are you using?
  • +NeedInfo
#2 colin*****@gmai***** (Google Code) (Is this you? Claim this profile.)
2.4
#3 chris.a.********@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm getting the same result here. Is there any way to manually add the hosting service account? What is it I'd need to name the account? What goes in the data field, the OAuth token? if so is there any way to look that up in the github account?
#4 chris.a.********@gmai***** (Google Code) (Is this you? Claim this profile.)
I should note that I upgraded from Reviewboard 1.6.6 to 1.6.9 to update my github repos. I'm using Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
#6 chris.a.********@gmai***** (Google Code) (Is this you? Claim this profile.)
I downgraded to ReviewBoard 1.6.8 and get the same exact error.
#7 gggg.*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Having same issue here as well. Python 2.4
chipx86
#8 chipx86
Python 2.4's urllib sees a 201 as an error. We'd have to find a workaround for this. I'll look into it, but it won't be in the next couple of days, unfortunately.

Python 2.5 should work. In fact, I'd recommend upgrading to at least 2.5 anyway, because RB 1.7.x won't support 2.4. You'd have to re-easy_install RB and its dependencies and perform a site upgrade.

You will need 1.6.9. This isn't an RB bug, so it's best to stay on that release.
#9 chris.a.********@gmai***** (Google Code) (Is this you? Claim this profile.)
It appears this is biting other python clients. Here's an example: https://github.com/jsmits/github-cli/issues/38

He seems to think that it's an issue in Python 2.5 as well, which jives with what I'm seeing since my install is using Python 2.5.2. I'm using Ubuntu 8.04, which relies on Python 2.5, so it doesn't look like it's just a simple apt-get install command to upgrade.
david
#10 david
  • -NeedInfo
    +ThirdParty