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

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

Open
mcneiljt opened this issue Dec 29, 2021 · 6 comments
Open

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

mcneiljt opened this issue Dec 29, 2021 · 6 comments
Labels
tracked Tracked elsewhere (Bugzilla, Jira, Trello)

Comments

@mcneiljt
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Author

mcneiljt commented Jan 1, 2022

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

@dgdavid
Copy link
Member

dgdavid commented Jan 3, 2022

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

Thank you guys.

@dgdavid dgdavid added the tracked Tracked elsewhere (Bugzilla, Jira, Trello) label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracked Tracked elsewhere (Bugzilla, Jira, Trello)
Projects
None yet
Development

No branches or pull requests

3 participants