Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-9026

[core] Use str instead of unicode for password

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.0
    • Fix Version/s: 4.6.0
    • Component/s: core.api
    • Labels:
      None

      Description

      We're getting following stack trace with ssl configured. Debugging the issue, desktop.conf.get_ssl_password returns unicode instead of str. pyOpenSSL requires str for the ssl_password.

       

       

      SSL key and certificate could not be found or have a problem
       Traceback (most recent call last):
       File "/opt/cloudera/parcels/CDH-7.0.2-1.cdh7.0.2.p0.1497896/lib/hue/desktop/core/src/desktop/lib/wsgiserver.py", line 1714, in _bind ctx.use_privatekey_file(self.ssl_private_key)
       File "/opt/cloudera/parcels/CDH-7.0.2-1.cdh7.0.2.p0.1497896/lib/hue/build/env/lib/python2.7/site-packages/pyOpenSSL-17.5.0-py2.7.egg/OpenSSL/SSL.py", line 965, in use_privatekey_file self._raise_passphrase_exception()
       File "/opt/cloudera/parcels/CDH-7.0.2-1.cdh7.0.2.p0.1497896/lib/hue/build/env/lib/python2.7/site-packages/pyOpenSSL-17.5.0-py2.7.egg/OpenSSL/SSL.py", line 942, in _raise_passphrase_exception self._passphrase_helper.raise_if_problem(Error) 
      File "/opt/cloudera/parcels/CDH-7.0.2-1.cdh7.0.2.p0.1497896/lib/hue/build/env/lib/python2.7/site-packages/pyOpenSSL-17.5.0-py2.7.egg/OpenSSL/crypto.py", line 2709, in raise_if_problem raise self._problems.pop(0)
      ValueError: String expected

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgauthier Jean Francois Desjeans Gauthier
                Reporter:
                jgauthier Jean Francois Desjeans Gauthier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: