Irregular characters in password failure

Issue #28 new
John Sater created an issue

I have a password that uses irregular characters. Specifically I have a '%' in mine.

Here's the error I get:

$ bitbucket list
Traceback (most recent call last):
  File "/usr/local/bin/bitbucket", line 9, in <module>
    load_entry_point('bitbucket-cli==0.5.1', 'console_scripts', 'bitbucket')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/bitbucket/__init__.py", line 2, in <module>
    import cli
  File "/usr/local/lib/python2.7/dist-packages/bitbucket/cli.py", line 15, in <module>
    from .config import USERNAME, PASSWORD, SCM, PROTOCOL
  File "/usr/local/lib/python2.7/dist-packages/bitbucket/config.py", line 19, in <module>
    PASSWORD = get_default(config, 'auth', 'password', None)
  File "/usr/local/lib/python2.7/dist-packages/bitbucket/config.py", line 7, in get_default
    return config.get(section, key)
  File "/usr/lib/python2.7/ConfigParser.py", line 623, in get
    return self._interpolate(section, option, value, d)
  File "/usr/lib/python2.7/ConfigParser.py", line 691, in _interpolate
    self._interpolate_some(option, L, rawval, section, vars, 1)
  File "/usr/lib/python2.7/ConfigParser.py", line 732, in _interpolate_some
    "'%%' must be followed by '%%' or '(', found: %r" % (rest,))
ConfigParser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%E8&z'

Perhaps I am not familiar enough with python, but I though copying-and-pasting my password would've worked. Perhaps I'm wrong. I wonder if adding an extra '%' might've worked...either way, that's not exactly the best user experience in the world. This may really a bug as much as it is complaint against python 2.7.

Comments (0)

  1. Log in to comment