paperless_app icon indicating copy to clipboard operation
paperless_app copied to clipboard

Login charset

Open skaa opened this issue 4 years ago • 2 comments

Describe the bug Application can't connect to server with cyrillic user login name ('Константин').

To Reproduce Steps to reproduce the behavior:

  1. Open application (after clean install)
  2. Input valid server address, press 'Connect'
  3. Input valid login and password, press 'Login'
  4. See error: Error while connecting to server. Invalid argument (string): Contains invalid characters.: "Константин:password"

Expected behavior Application accepts credentials.

Additional information Paperless App Version: e.g. 0.0.11 Do you use Paperless NG as a backend: Yes Error message shows my login and password without masking. This is bad, at least password should be masked. Paperless NG server accepts this login, but paperless_app can't use it.

skaa avatar Oct 14 '21 07:10 skaa

Thanks for reporting this.

The underlying is that the HTTP Basic authentication we use doesn't support UTF-8. This can be solved by changing to token authentication in the app.

I will work on that but it will probably take a few weeks.

bauerj avatar Oct 14 '21 07:10 bauerj

Thanks for answer and for your work!

skaa avatar Oct 14 '21 08:10 skaa