Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3043 by qilu...@gmail.com: Always got 'bad credentials' when adding a github repository
http://code.google.com/p/reviewboard/issues/detail?id=3043

*** For customer support, please post to reviewbo...@googlegroups.com
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** Do not post confidential information in this bug report!

What version are you running?

1.7.11
What's the URL of the page containing the problem?

reviewboard.xxx.com/reviews/admin/db/scmtools/repository/add/

What steps will reproduce the problem?
1.add repository
2.select github as hosting service
3.fill up account username/password
4.fill up all other required info
5.click save

What is the expected output? What do you see instead?
Always got "unable to link the account: bad credentials"

What operating system are you using? What browser?
rb server, ubuntu

Please provide any additional information below.
the log showed,

None - xxx - /reviews/admin/db/scmtools/repository/add/ - Internal Server Error: /reviews/admin/db/scmtools/repository/add/
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/contrib/admin/options.py", line 366, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/views/decorators/cache.py", line 89, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/contrib/admin/sites.py", line 196, in inner
    return view(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/utils/decorators.py", line 25, in _wrapper
    return bound_func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/utils/decorators.py", line 21, in bound_func
    return func(self, *args2, **kwargs2)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/db/transaction.py", line 224, in inner
    return func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/contrib/admin/options.py", line 937, in add_view
    if form.is_valid():
File "/usr/lib/python2.5/site-packages/ReviewBoard-1.7.11-py2.5.egg/reviewboard/scmtools/forms.py", line 937, in is_valid
    if not super(RepositoryForm, self).is_valid():
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/forms/forms.py", line 124, in is_valid
    return self.is_bound and not bool(self.errors)
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/forms/forms.py", line 115, in _get_errors
    self.full_clean()
File "/usr/lib/python2.5/site-packages/ReviewBoard-1.7.11-py2.5.egg/reviewboard/scmtools/forms.py", line 754, in full_clean
    super(RepositoryForm, self).full_clean()
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/forms/forms.py", line 271, in full_clean
    self._clean_form()
File "/usr/lib/python2.5/site-packages/Django-1.4.5-py2.5.egg/django/forms/forms.py", line 299, in _clean_form
    self.cleaned_data = self.clean()
File "/usr/lib/python2.5/site-packages/ReviewBoard-1.7.11-py2.5.egg/reviewboard/scmtools/forms.py", line 790, in clean
    self._clean_bug_tracker_info()
File "/usr/lib/python2.5/site-packages/ReviewBoard-1.7.11-py2.5.egg/reviewboard/scmtools/forms.py", line 582, in _clean_bug_tracker_info
    self.cleaned_data['hosting_account'].username
AttributeError: 'NoneType' object has no attribute 'username'


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to