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

A secret can't have Unicode characters #1741

Closed
Tangeek42 opened this issue Nov 29, 2017 · 1 comment
Closed

A secret can't have Unicode characters #1741

Tangeek42 opened this issue Nov 29, 2017 · 1 comment

Comments

@Tangeek42
Copy link

Issue type

[ ] Feature request
[ X ] Bug report
[ ] Documentation

  • Python version: 3.4.2
  • NetBox version: 2.2.6

Description

I've been experiencing some issues regarding secrets that contain any Unicode character. Or, as far as I can tell, any non-ASCII character. I can enter secrets that have 256 characters (or more, didn't try further than that :D ) without any issue if they have only ASCII characters. But, if there is one UTF-8 character, it all comes crashing down.

  • ) I enter a new secret
  • ) The secret can have a Unicode name, that's not an issue.
  • ) The value of the secret contains only this : é. One character not in the ASCII table.
  • ) The saving goes well.
  • ) But when I try to unlock that secret, I get this response in a JS window.
    2017-11-29-114146_1033x161_scrot

Now, I like my passwords to be like ×Uuë}kB.ßdClU@'´8OÏ(dú>o¿ä6G>1'-6, so I'm kind of disappointed right now. ^^

Anyway, have a good day. Keep up the good work, NetBox is an awesome tool and we're glad to have found out about it. :-)

@jeremystretch jeremystretch changed the title [BUG] A secret can't have Unicode characters A secret can't have Unicode characters Nov 29, 2017
@jeremystretch
Copy link
Member

Should be fixed now; tested on both Python 2 and 3. Please comment here if you run into any further issues and I'll reopen this.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants