Ticket #2002 (closed defect: fixed)
VPN: Must not use space in VPN name
| Reported by: | gilles.ebox@… | Owned by: | ejhernandez@… |
|---|---|---|---|
| Milestone: | Component: | openvpn | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Whilst trying to download my certificates for my VPN clients (via VPN->Servers->Download client bundle) I got the following error message (see below).
I suspect the current script does not like VPNs that have been labeled with a name that contains a space (I suspect the easy workaround will be to avoid using space when labeling the VPN).
A really nasty bug has occurred
Exception
root command chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip failed. Error output: chmod: cannot access /var/lib/ebox/tmp/downloads/Home': No such file or directory chmod: cannot access VPN-client.zip': No such file or directory Command output: . Exit value: 1
Attachments
Change History
comment:2 Changed 3 years ago by gilles.ebox@…
- priority changed from low to normal
In fact, using a space in the VPN name not only causes issues with the bundle tool, but it also stops the whole VPN from working properly. So it definitively would be an idea to forbid the use of space in the GUI or add a comment warning the user not to use a space...
comment:3 Changed 3 years ago by anonymous
- Summary changed from VPN / Download client bundle "nasty bug" to VPN: Must not use space in VPN name
comment:4 Changed 3 years ago by gilles.ebox@…
Note: Test environment is Ubuntu 10.04 using ebox 1.5
comment:5 Changed 3 years ago by ejhernandez@…
- Owner changed from javier.amor.garcia@… to ejhernandez@…
The bug was fixed in eBox 1.5.1, do you have latest 1.5 packages available using this sources list?:
deb http://ppa.launchpad.net/ebox/1.5/ubuntu lucid main
Report us back if there are any problem with server's names with spaces.
Note: The beginning of the trace is:
Trace
root command chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip failed. Error output: chmod: cannot access `/var/lib/ebox/tmp/downloads/Home': No such file or directory chmod: cannot access `VPN-client.zip': No such file or directory
Command output: . Exit value: 1 at /usr/share/perl5/Error.pm line 182 Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', 'chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip', 'output', 'ARRAY(0x22d34bf8)', 'error', 'ARRAY(0x22291130)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 215 EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/ebox/tmp/AaQTD5dGJA.cmd 2> /v...', 'chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip', 256, 'ARRAY(0x22d34bf8)', 'ARRAY(0x22291130)') called at /usr/share/perl5/EBox/Sudo.pm line 182 EBox::Sudo::_root(1, 'chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip') called at /usr/share/perl5/EBox/Sudo.pm line 137 EBox::Sudo::root('chmod 0600 /var/lib/ebox/tmp/downloads/Home VPN-client.zip') called at /usr/share/perl5/EBox/OpenVPN/Server/ClientBundleGenerator.pm line 256 EBox::OpenVPN::Server::ClientBundleGenerator::_createBundle('EBox::OpenVPN::Server::ClientBundleGenerator::Windows',