qgis-bridge-plugin icon indicating copy to clipboard operation
qgis-bridge-plugin copied to clipboard

Login with GeoServer password with umlaut fails

Open kannes opened this issue 1 year ago • 3 comments

Describe the bug The plugin seems to handle password encodings incorrectly for GeoServer login.

To Reproduce Steps to reproduce the behavior:

  1. Have a GeoServer user with password ääääääää
  2. Try to use it with the plugin
  3. CRITICAL Could not connect to GeoServer Megamap: please check credentials

Expected behavior Login should work with any valid password string.

Environment info (please complete the following information):

  • OS: Linux
  • QGIS version: 3.22
  • Bridge version: 4.4.1
  • Python version: 3.11

kannes avatar May 29 '24 09:05 kannes

I won't have time to fix this one, nothing fatal for us ;)

kannes avatar May 29 '24 09:05 kannes

Thanks for reporting @kannes, I will look into this some day... Perhaps there is a Qt library thing that I don't know of that deals with character encodings properly. Do you know what the default encoding of your client (QGIS, your OS, etc.) is?

GeoSander avatar Jun 11 '24 07:06 GeoSander

I am not 100% sure that this was the exact case when I reported it but I am fairly sure:

$ locale                                                                                                                                                                                                                      
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
$ grep -i locale QGIS3.ini
...
[locale]
globalLocale=
userLocale=de

kannes avatar Jul 01 '24 11:07 kannes