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

Cannot add wifi network with spaces in it's name #1389

Closed
6 tasks done
darnokb opened this issue Sep 4, 2023 · 4 comments
Closed
6 tasks done

Cannot add wifi network with spaces in it's name #1389

darnokb opened this issue Sep 4, 2023 · 4 comments

Comments

@darnokb
Copy link

darnokb commented Sep 4, 2023

Checklist

  • This is a bug report
  • I observed this bug on a clean install of the OS
  • I have followed the project prerequisites
  • I have searched this repository for existing issues
  • I checked the FAQ and official documentation before creating this issue
  • I have read and understand the issue reporting guidelines

Bug description

When trying to connect to wifi network with spaces in it's name RaspAP reports following error:

Passphrase must be 8..63 characters

Your environment

  1. Operating System: *RPi OS 32-bit lite
  2. Hardware and version: RPi Zero W 2
  3. RaspAP version: 2.9.3
  4. Clean install of a compatible operating system? Yes
  5. RaspAP Quick Install or Manual setup? Quick Install
  6. Using default configuration? Yes
  7. Simultaneous AP and managed mode? Yes
  8. Onboard wireless chipset or external adapter? Onboard
  9. Other software or services running with RaspAP?

Steps to reproduce

Connect to WiFi network with spaces in it's name from Wifi Client web page

Screenshots

image
image

Additional context

wpa_passphrase needs quotation mark ("") when wifi name has spaces in it's name. otherwise it will wrongly parse the input provided by raspap

@darnokb
Copy link
Author

darnokb commented Sep 4, 2023

You can of course add wifi manually to /etc/wpa_supplicant/wpa_supplicant.conf, but it's the way it should be done.
Moreover, I did that and tried to remove the wifi network with spaces from raspap-webgui, but I encourtered the same error:

WPA passphrase must be between 8 and 63 characters

Seems that in configure_client.php quotation marks should be added to exec(); functions where wpa_passphrase is called.

@billz
Copy link
Member

billz commented Sep 5, 2023

Screenshot 2023-09-05 at 12 36 34 PM
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
	ssid="POCO F3"
	#psk="test hotspot"
	psk=7ab563ed72732029b8203bb712939d757d5802c55c68e46c11f3f9031b70a27c
}

@billz billz added the norepro label Sep 5, 2023
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 28, 2023
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants