Skip to content
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

Special characters #24

Closed
ejiektpobehuk opened this issue May 21, 2017 · 2 comments
Closed

Special characters #24

ejiektpobehuk opened this issue May 21, 2017 · 2 comments
Labels

Comments

@ejiektpobehuk
Copy link

I've not succeeded at setting password with special characters.
Test pass was generated with pwgen -sy 30

Error:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/stig/client/aiotransmission/rpc.py", line 56, in __init__
    urldict[attr] = getattr(parsed_url, attr)
  File "/usr/lib/python3.6/urllib/parse.py", line 159, in port
    port = int(port, 10)
ValueError: invalid literal for int() with base 10: 'some,:('

...

stig.client.errors.URLParserError: Invalid URL: https://user:'some,:(/long)@=pass`->here'@example.com:443

Though it opens TUI if there is no / in the password

@rndusr
Copy link
Owner

rndusr commented May 21, 2017 via email

@rndusr
Copy link
Owner

rndusr commented Dec 30, 2017

I fixed this issue by splitting srv.url up into several settings (connect.host,
connect.port, connect.user, connect.password and connect.tls). That should allow
for arbitrary printable characters in password and username.

@rndusr rndusr closed this as completed Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants