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

New issue 3656 by DNS exception on oddly configured apache instance

*** 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?

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

What steps will reproduce the problem?
1. Configure RB to use AD auth backend.
2. Configure backend to find servers via DNS
3. Try to login and you a 500 error

What is the expected output? What do you see instead?
I expect to be logging in successfully. Instead I get a 500 error with the following entry in the logs:

[trimmed for brevity]
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.11-py2.7.egg/reviewboard/accounts/", line 552, in find_domain_controllers_from_dns
   req = DNS.Base.DnsRequest(q, qtype='SRV').req()

 File "/usr/lib/python2.7/dist-packages/DNS/", line 235, in req
   m.addQuestion(qname, qtype, Class.IN)

File "/usr/lib/python2.7/dist-packages/DNS/", line 483, in addQuestion

 File "/usr/lib/python2.7/dist-packages/DNS/", line 81, in add16bit
   self.buf = self.buf + pack16bit(n)

 File "/usr/lib/python2.7/dist-packages/DNS/", line 49, in pack16bit
   return struct_pack('!H', n)

error: cannot convert argument to integer

What operating system are you using? What browser?

Please provide any additional information below.
I dug into the DNS/ code and the problem is that the RB call to DnsRequest uses a string literal for qtype (which ends up being a unicode string due to the future import at the top of the file). In DNS/ there is code to convert qtype to the native type (DNS.Type) by checking if it is currently one of types.StringTypes; however on one of our configurations types.StringTypes was failing to recognize unicode objects as strings.

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