-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias_dsn password suffix with # will panic #585
Comments
This is certainly a bug but could you try to surround the dsn with quotes? Like:
? |
I try to surround the dsn with quotes, but it's helpless. I think the '# ‘’ is used for fragments,and the default value of allow_fragments is True.
I try to change function _splitnetloc in urlparse, it's helpful
|
Hmm I don't think patching system libraries is a good idea... Have you tried replacing '#' with %23 in your password? Like this:
|
Thanks,it‘s a good idea ’to use 23% and Unquote . But may cause another issue to happen if '%23' is just a part of my password. 囧... |
|
Traceback (most recent call last):
File "/usr/bin/mycli", line 11, in
sys.exit(cli())
File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/mycli/main.py", line 1027, in cli
mycli.connect_uri(database, local_infile, ssl)
File "/usr/lib/python2.7/site-packages/mycli/main.py", line 285, in connect_uri
uri.port, local_infile=local_infile, ssl=ssl)
File "/usr/lib64/python2.7/urlparse.py", line 112, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10:
The text was updated successfully, but these errors were encountered: