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

New issue 3840 by rbt post provides poor diagnostics if connecting to a server with a certificate that cannot be verified

*** You must complete this form in its entirety, or your bug report will be
*** rejected.
*** If you have a security issue to report, please send it confidentially
*** Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
*** For customer support, please post to
*** If you have a patch, please submit it to
*** This bug tracker is public. Please check that any logs or other
*** that you include has been stripped of confidential information.

What version are you running?

0.7.2; build/installed from the FreeBSD package repository.

What steps will reproduce the problem?

- Try to run `rbt post` against a server with a certificate that can't be verified (self-signed certificates usually do the trick).

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

I would expect to get an error back informing me that it couldn't verify the
certificate, and expect things to go through if passed an appropriate option
(like curl -k). Instead I get virtually no diagnostic information.

Fedora doesn't have this problem, which makes me think they added some special
sauce to the package for self-signed certificates. However, OpenSSL differs
between FreeBSD and Fedora.

What operating system are you using? What browser?

Please provide any additional information below.

Here's the output after I adding a print(e) to Command.get_api(..):

699         try:
700             api_root = api_client.get_root()
701         except ServerInterfaceError as e:
702             print(e)
703             raise CommandError('Could not reach the Review Board '
704                                'server at %s' % server_url)

After I added that I then could determine what the real issue was that
I needed to solve in the code.

RBTools 0.7.2
Python 2.7.9 (default, Mar 29 2015, 05:49:15)
[GCC 4.2.1 Compatible FreeBSD Clang 3.6.0 (tags/RELEASE_360/final 230434)]
Running on FreeBSD-11.0-CURRENT-amd64-64bit-ELF
Home = /home/ngie
Current directory = /home/ngie/onefs/branches/BR_RIPT_BSD10P2
Checking for a Subversion repository...
Running: svn info --non-interactive
Running: diff --version
Running: svn --version -q
repository info: Path:, Base path: /onefs/branches/BR_RIPT_BSD10P2, Supports changesets: False
Running: svn propget reviewboard:url
Making HTTP GET request to
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in <module>
    load_entry_point('RBTools==0.7.2', 'console_scripts', 'rbt')()
File "/usr/local/lib/python2.7/site-packages/rbtools/commands/", line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
File "/usr/local/lib/python2.7/site-packages/rbtools/commands/", line 555, in run_from_argv
    exit_code = self.main(*args) or 0
File "/usr/local/lib/python2.7/site-packages/rbtools/commands/", line 591, in main
    api_client, api_root = self.get_api(server_url)
File "/usr/local/lib/python2.7/site-packages/rbtools/commands/", line 704, in get_api
    'server at %s' % server_url)
rbtools.commands.CommandError: Could not reach the Review Board server at

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to