3757: cannot submit a review/ship it! for a review requested

kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
June 1, 2015
What version are you running?
Review Board 1.7.27

What's the URL of the page containing the problem?
http://XXX/reviewboard/r/23/

What steps will reproduce the problem?
1. rb tools post a review request
2. open a review request, click review or ship it!
3. click publish review/click save/confirm posting a review after "ship it!"

What is the expected output? What do you see instead?
Expected: review request becomes [Submitted], on Admin dashbord in Reviews section new entry can be seen
Experienced:
- Opera 27: nothing happens after pressing a button, I'm still on the same page
- Explorer 8: pop-up window saying "A server error occurred."

What operating system are you using? What browser?
Win7, Opera 27, Explorer 8


Please provide any additional information below.
Details of the error message from Explorer 8:

{code}
Server Error Details
Error Code: 0

Error Text: No Transport

Request URL: http://XXX/reviewboard/api/review-requests/23/reviews/draft/

Request Data: (none)

Response Data:

There may be useful error details below. The following error page may be useful to your system administrator or when reporting a bug. To save the page, right-click the error below and choose "Save Page As," if available, or "View Source" and save the result as a .html file.

Warning: Be sure to remove any sensitive material that may exist in the error page before reporting a bug!

unknown
{/code}

*I'm able to create a review entry manually on Admin dashboard using Admin user so it seems as some front-end issue
**Nothing can be found in ReviewBoard logs
#1 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
Still can't figure out what is wrong.

Adding site config:
{u'mail_host_password': u'', u'aws_querystring_auth': False, u'aws_s3_secure_urls': False, u'site_upload_temp_dir': None, u'locale_datetime_format': u'N j, Y, P', u'aws_querystring_expire': 60, u'auth_x509_username_regex': u'', u'auth_ldap_tls': False, u'mail_host_user': u'', u'auth_ad_use_tls': None, u'locale_year_month_format': u'F Y', u'auth_ldap_uid_mask': u'', u'mail_server_address': u'root@localhost', u'auth_ldap_uri': u'', u'diffviewer_context_num_lines': 5, u'diffviewer_paginate_orphans': 10, u'site_upload_max_memory_size': 2621440, u'search_index_file': u'', u'auth_registration_show_captcha': False, u'mail_send_review_mail': True, u'aws_access_key_id': u'', u'auth_ldap_surname_attribute': None, u'aws_headers': {}, u'site_media_root': u'/opt/app/reviewboard/htdocs/media', u'couchdb_default_server': u'', u'send_support_usage_stats': False, u'auth_ad_search_root': None, u'site_static_root': u'/opt/app/reviewboard/htdocs/static', u'site_admin_name': u'admin', u'auth_ad_domain_controller': None, u'logging_allow_profiling': False, u'auth_ldap_anon_bind_passwd': u'', u'aws_s3_bucket_name': u'', u'site_prepend_www': False, u'company': u'XXX', u'mail_host': u'localhost', u'auth_ldap_anon_bind_uid': u'', u'auth_ad_recursion_depth': None, u'aws_calling_format': 2, u'cache_backend': {u'default': {u'LOCATION': u'localhost:11211', u'BACKEND': u'django.core.cache.backends.memcached.MemcachedCache'}, u'staticfiles': {u'LOCATION': u'staticfiles-filehashes', u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}}, u'mail_port': 25, u'auth_enable_registration': False, u'logging_directory': u'/tmp', u'aws_default_acl': u'public-read', u'mail_send_review_close_mail': True, u'search_enable': False, u'auth_ldap_base_dn': None, u'locale_time_format': u'P', u'locale_date_format': u'N j, Y', u'auth_ldap_email_domain': u'', u'mail_send_new_user_mail': False, u'locale_month_day_format': u'F j', u'auth_ldap_email_attribute': None, u'diffviewer_syntax_highlighting': True, u'mail_use_tls': False, u'site_admin_email': u'XXX', u'auth_ad_domain_name': None, u'auth_backend': u'builtin', u'auth_ldap_given_name_attribute': None, u'locale_timezone': u'Europe/Prague', u'recaptcha_public_key': u'', u'recaptcha_private_key': u'fbalas', u'site_static_url': u'/reviewboard/static/', u'auth_x509_username_field': u'SSL_CLIENT_S_DN_CN', u'site_domain_method': u'http', u'cache_expiration_time': 2592000, u'diffviewer_paginate_by': 20, u'logging_enabled': True, u'auth_ad_find_dc_from_dns': None, u'auth_require_sitewide_login': True, u'auth_ad_ou_name': None, u'locale_default_charset': u'utf-8', u'auth_ldap_full_name_attribute': None, u'auth_x509_autocreate_users': False, u'aws_querystring_active': False, u'auth_ad_group_name': None, u'aws_secret_access_key': u'', u'locale_language_code': u'en-us', u'diffviewer_include_space_patterns': [], u'logging_level': u'DEBUG', u'mail_default_from': u'XXX', u'site_media_url': u'/reviewboard/media/', u'auth_nis_email_domain': u'', u'couchdb_storage_options': {}}

I've found that cache is offline. But I don't think this can be the issue.
#2 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
Using a firebug, I was able to get an error message. Screen shot attached.
#3 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
There's a missing cookie in the request header:

Other working request headers:
Accept	application/json, text/javascript, */*; q=0.01
Accept-Encoding	gzip, deflate
Accept-Language	cs,en-us;q=0.7,en;q=0.3
Cookie	rbsessionid=8afe466b3d9dfc5c647c864629324919; csrftoken=3BfQJKDMdH6hASSmZNXtlrOfyeNb1m3d; messages="02eed2f3809939abb44c7c7056563fec8cc4baca$[[\"__json_message\"\05420\054\"The user \\\"hovnik\\\" was added successfully. You may edit it again below.\"]\054[\"__json_message\"\05420\054\"The review group \\\"XXX-TSM\\\" was changed successfully.\"]]"
Host	r-jenkins.XXX.com
Referer	http://r-jenkins.XXX.com/reviewboard/r/25/
User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
X-Requested-With	XMLHttpRequest

Review/Ship it request header:
Accept	application/json, text/javascript, */*; q=0.01
Accept-Encoding	gzip, deflate
Accept-Language	cs,en-us;q=0.7,en;q=0.3
Host	10.50.27.45
Origin	http://r-jenkins.XXX.com
Referer	http://r-jenkins.XXX.com/reviewboard/r/25/
User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
#4 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
Not working when accesing RB with this url:
http://r-jenkins.whatever.com/reviewboard/api/review-requests/23/reviews/draft/
Working with IP:
http://1.2.3.4/reviewboard/api/review-requests/23/reviews/draft/
Don't know if this is coding or environment issue.
david
#5 david
Can you check the server name in the reviewboard admin, and the contents of ALLOWED_HOSTS in the settings_local.py file?
  • +NeedInfo
#6 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
Server: http://r-jenkins.XXX.com

settings_local.py:
# Site-specific configuration settings for Review Board
# Definitions of these settings can be found at
# http://docs.djangoproject.com/en/dev/ref/settings/

# Database configuration
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'reviewboard',
        'USER': 'reviewboard',
        'PASSWORD': 'XXX',
        'HOST': 'localhost',
        'PORT': '',
    },
}

# Unique secret key. Don't share this with anybody.
SECRET_KEY = 'XXX'

# Cache backend settings.
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': 'localhost:11211',
    },
}

# Extra site information.
SITE_ID = 1
SITE_ROOT = '/reviewboard/'
FORCE_SCRIPT_NAME = ''
DEBUG = False
david
#7 david
Can you perhaps clear your cookies, log out, and try again?
#8 kepi****@gmai***** (Google Code) (Is this you? Claim this profile.)
This doesn't help. In fact that was the first thing I've tried before opening an issue.

While I was trying to resolve/workaround this issue, I've opened another RB instance running on different site (some 1.6.X). The difference I've noticed is that rbsession cookie in 1.7.27 is "HttpOnly". However in some scripts on the page I saw "document.cookie". Sorry for not helping more, I'm not "a frontend guy".
david
#9 david
  • -NeedInfo
    +SetupIssue