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

New issue 3161 by tjhug...@gmail.com: self.cleaned_data['hosting_account'].username AttributeError: 'NoneType' object has no attribute 'username'
http://code.google.com/p/reviewboard/issues/detail?id=3161

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
rejected.
***
*** 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?

[root@reviewboard ~]# rpm -q ReviewBoard memcached httpd mod_wsgi
ReviewBoard-1.7.18-1.el6.noarch
memcached-1.4.4-3.el6.x86_64
httpd-2.2.15-29.el6.centos.x86_64
mod_wsgi-3.2-3.el6.x86_64
[root@reviewboard ~]# uname -a
Linux reviewboard 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@reviewboard ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)

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

/admin/db/scmtools/repository/add/

What steps will reproduce the problem?

Fresh kickstart of centos 6.4 minimal then the following commands to install ReviewBoard

    ifconfig eth0 up
    chkconfig iptables off
    service iptables stop
yum localinstall http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    yum install ReviewBoard memcached httpd mod_wsgi
    chkconfig memcached  on
    service memcached start
    rb-site install /var/www/reviews.yb.lmax
chown -R apache /var/www/reviews.yb.lmax/htdocs/media/uploaded /var/www/reviews.yb.lmax/htdocs/media/ext /var/www/reviews.yb.lmax/data
    ln -s /var/www/reviews.yb.lmax/conf/apache-wsgi.conf /etc/httpd/conf.d/
    chkconfig httpd on
    service httpd start

I created an 'admin' user during install with a password of 'password'

Next I went to configure a Bitbucket repository https://bitbucket.org/timhughes/sample_project

I set:
    Name:sample_project
    Hosting service: Bitbucket
    Account: <Link a new account>
    Account username: timhughes
    Account Password: MY_PASSWORD_RETRACTED
    Repository type: Git
    Repository plan: Personal
    Repository name: sample_project
    Use hosting service's bug tracker: Ticked
    Publicly accessible : Ticked

Then clicked 'Save' at the bottom of the page



What is the expected output? What do you see instead?

I expected a repository to be created.

I got :
---------------------------------------
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a bug in Review Board or a server configuration error. Please report this to your administrator.
---------------------------------------


What operating system are you using? What browser?

User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0



Please provide any additional information below.

httpd logs for error:

[Mon Dec 09 14:04:43 2013] [error] ERROR:root:Exception thrown for user admin at http://192.168.122.9/admin/db/scmtools/repository/add/
[Mon Dec 09 14:04:43 2013] [error]
[Mon Dec 09 14:04:43 2013] [error] 'NoneType' object has no attribute 'username'
[Mon Dec 09 14:04:43 2013] [error] Traceback (most recent call last):
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response [Mon Dec 09 14:04:43 2013] [error] response = callback(request, *callback_args, **callback_kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py", line 366, in wrapper [Mon Dec 09 14:04:43 2013] [error] return self.admin_site.admin_view(view)(*args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 196, in inner
[Mon Dec 09 14:04:43 2013] [error]     return view(request, *args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 25, in _wrapper
[Mon Dec 09 14:04:43 2013] [error]     return bound_func(*args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 21, in bound_func
[Mon Dec 09 14:04:43 2013] [error]     return func(self, *args2, **kwargs2)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line 224, in inner
[Mon Dec 09 14:04:43 2013] [error]     return func(*args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py", line 937, in add_view
[Mon Dec 09 14:04:43 2013] [error]     if form.is_valid():
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 939, in is_valid [Mon Dec 09 14:04:43 2013] [error] if not super(RepositoryForm, self).is_valid(): [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 124, in is_valid [Mon Dec 09 14:04:43 2013] [error] return self.is_bound and not bool(self.errors) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 115, in _get_errors
[Mon Dec 09 14:04:43 2013] [error]     self.full_clean()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 756, in full_clean [Mon Dec 09 14:04:43 2013] [error] super(RepositoryForm, self).full_clean() [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 271, in full_clean
[Mon Dec 09 14:04:43 2013] [error]     self._clean_form()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 299, in _clean_form
[Mon Dec 09 14:04:43 2013] [error]     self.cleaned_data = self.clean()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 792, in clean
[Mon Dec 09 14:04:43 2013] [error]     self._clean_bug_tracker_info()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 584, in _clean_bug_tracker_info [Mon Dec 09 14:04:43 2013] [error] self.cleaned_data['hosting_account'].username [Mon Dec 09 14:04:43 2013] [error] AttributeError: 'NoneType' object has no attribute 'username' [Mon Dec 09 14:04:43 2013] [error] ERROR:django.request:Internal Server Error: /admin/db/scmtools/repository/add/
[Mon Dec 09 14:04:43 2013] [error] Traceback (most recent call last):
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response [Mon Dec 09 14:04:43 2013] [error] response = callback(request, *callback_args, **callback_kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py", line 366, in wrapper [Mon Dec 09 14:04:43 2013] [error] return self.admin_site.admin_view(view)(*args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 196, in inner
[Mon Dec 09 14:04:43 2013] [error]     return view(request, *args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 25, in _wrapper
[Mon Dec 09 14:04:43 2013] [error]     return bound_func(*args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view [Mon Dec 09 14:04:43 2013] [error] response = view_func(request, *args, **kwargs) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 21, in bound_func
[Mon Dec 09 14:04:43 2013] [error]     return func(self, *args2, **kwargs2)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/db/transaction.py", line 224, in inner
[Mon Dec 09 14:04:43 2013] [error]     return func(*args, **kwargs)
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/contrib/admin/options.py", line 937, in add_view
[Mon Dec 09 14:04:43 2013] [error]     if form.is_valid():
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 939, in is_valid [Mon Dec 09 14:04:43 2013] [error] if not super(RepositoryForm, self).is_valid(): [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 124, in is_valid [Mon Dec 09 14:04:43 2013] [error] return self.is_bound and not bool(self.errors) [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 115, in _get_errors
[Mon Dec 09 14:04:43 2013] [error]     self.full_clean()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 756, in full_clean [Mon Dec 09 14:04:43 2013] [error] super(RepositoryForm, self).full_clean() [Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 271, in full_clean
[Mon Dec 09 14:04:43 2013] [error]     self._clean_form()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/forms/forms.py", line 299, in _clean_form
[Mon Dec 09 14:04:43 2013] [error]     self.cleaned_data = self.clean()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 792, in clean
[Mon Dec 09 14:04:43 2013] [error]     self._clean_bug_tracker_info()
[Mon Dec 09 14:04:43 2013] [error] File "/usr/lib/python2.6/site-packages/reviewboard/scmtools/forms.py", line 584, in _clean_bug_tracker_info [Mon Dec 09 14:04:43 2013] [error] self.cleaned_data['hosting_account'].username [Mon Dec 09 14:04:43 2013] [error] 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