yast / yast-network

YaST module network
http://en.opensuse.org/Portal:YaST
GNU General Public License v2.0
14 stars 35 forks source link

Apostrophe in wireless password does not appear to be supported #1276

Open mcneiljt opened 2 years ago

mcneiljt commented 2 years ago

On a fresh install of Raspberry PI openSUSE LEAP 15.3 (also tried Tumbleweed) I observed that using yast to configure the Wifi with a password containing an apostrophe (single quote) fails to connect. (e.g. Thispassworddoesn'twork.) After inspecting /etc/sysconfig/network/ifcfg-wlan0 it appears as though the single-quote may be breaking the formatting. The same wireless network works just fine when configured with NetworkManager.

I'm new to openSUSE/yast and am not sure if this is an issue with the yast tool or wicked itself. Happy to be redirected if this is the wrong place to file this report.

teclator commented 2 years ago

When you configured it with NetworkManager did you use YaST or NetworkManager directly? In these cases it would better to fill a bug with attached logs.

If the ifcfg file is well written by YaST then it is probably a **wicked^ bug but we need logs to confirm that.

mcneiljt commented 2 years ago

When I configured with NetworkManager it was through GNOME, so no YaST involvement.

I'll try to re-install and grab logs later today, sorry I didn't grab them at first wasn't expecting this to be an issue.

mcneiljt commented 2 years ago

I've attached the y2log wpa_supplicant.log and ifcfg-wlan0 files. I modified the PSK after confirming it was correct. I left all the punctuation the same (including the quoting/escaping in ifcfg-wlan0). My first guess would be the ifcfg-wlan0 file isn't escaping properly since the quotes don't seem to match up, but I don't know how the file is used :)

Please let me know if there is anything else I can do to help troubleshoot!

ifcfg-wlan0.txt wpa_supplicant.log.txt y2log.txt

teclator commented 2 years ago

I've attached the y2log wpa_supplicant.log and ifcfg-wlan0 files. I modified the PSK after confirming it was correct. I left all the punctuation the same (including the quoting/escaping in ifcfg-wlan0). My first guess would be the ifcfg-wlan0 file isn't escaping properly since the quotes don't seem to match up, but I don't know how the file is used :)

It is a escaping problem as you comment, I already reproduced the issue and it should work if you write the password using double quotes instead of single ones without escaping the single quote...

Like WIRELESS_WPA_PSK="Thispassword'work"

So I will create a bug report in order to address it.

Please let me know if there is anything else I can do to help troubleshoot!

ifcfg-wlan0.txt wpa_supplicant.log.txt y2log.txt

mcneiljt commented 2 years ago

Thanks for looking into this! I appreciate the advice on how to get it working.

dgdavid commented 2 years ago

Now tracked at https://bugzilla.opensuse.org/show_bug.cgi?id=1194222

Thank you guys.