bauerj / paperless_app

An Android/iOS app for Paperless
https://play.google.com/store/apps/details?id=eu.bauerj.paperless_app
GNU General Public License v3.0
525 stars 46 forks source link

Login charset #56

Open skaa opened 3 years ago

skaa commented 3 years ago

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.

bauerj commented 3 years ago

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.

skaa commented 3 years ago

Thanks for answer and for your work!