After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632219 - Network Manager cannot handle login/password with special characters
Network Manager cannot handle login/password with special characters
Status: RESOLVED NOTGNOME
Product: NetworkManager
Classification: Platform
Component: ModemManager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-10-15 14:31 UTC by Stefan Oschkera
Modified: 2014-10-14 09:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wvdial config file for A1/Austria (406 bytes, application/octet-stream)
2010-10-27 04:23 UTC, Stefan Oschkera
Details
wvdial config file (tar.gz archive) (358 bytes, application/x-gzip)
2010-10-27 04:30 UTC, Stefan Oschkera
Details
Modem-manager log file (1.15 KB, text/plain)
2011-05-01 04:25 UTC, Stefan Oschkera
Details

Description Stefan Oschkera 2010-10-15 14:31:18 UTC
As typically the Ubuntu team asks to forward GNOME related issues upstream to Bugzilla, I'd like to open a Network Manager related bug already reported in Launchpad [1]:

This is quite interesting and may also be the reason, why individual users have trouble to use their HSDPA/GPRS devices: I run a DELL Latitude E4300, which features a DELL Mobile HSDPA Modem DW5530. Since updating from Ubuntu Jaunty (9.04), where the modem worked like a charm, I never managed to connect to the Internet under Ubuntu Lucid LTS (10.04) currently featuring GNOME 2.30.2. This, though all settings were double-checked to be identical.

Point is, that I've verified the following: Some ISPs require logins/passwords with special characters (please refer e.g. to [2]). In my case connecting to the Internet fails, when trying to connect via A1, but connects perfectly when using a T-Mobile card. Please note, that T-Mobile does not require any particular login or password to be set. Hence this issue is not related to the modem driver, but to the authentication process. Unfortunately I can not provide the link to the Austrian Ubuntu forum, where some guy found out, that this is probably related to an UTF8 issue.

As most ISPs do not require any login or password but identify the user via the GSM card ID explains, why this issue affects only a rather small group of users. Changing one's ISP, however, requires to cancel the ISP contract and consequently one has to pay cancellation fees, hence I consider this bug as critical, though the workaround is quite simple.

[1] https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/540003
[2] http://linux.frankenberger.at/Huawei_E220_Daten.html
Comment 1 Dan Williams 2010-10-19 17:08:50 UTC
So here's what we can do.  If you could help debug a bit by setting up the modem to *not* use modem-manager, but to use plain wvdial and then tar up the wvdial config file where the username or password containing special chars is (to preserve it's string encoding) and mail it to me or attach it.  What I'm curious about is the exact byte array of the username or password that works for you, then I can see whether that gets changed by NM/MM and perhaps how to fix it.
Comment 2 Stefan Oschkera 2010-10-21 06:58:15 UTC
Sure, I expect this to work as using wvdial was the workaround proposed in the Austrian forum mentioned above. I'll get back to you as soon as I get home from my business trip.
Comment 3 Stefan Oschkera 2010-10-27 04:23:05 UTC
OK, here we are: Attached please find a working wvdial.conf file (see also [1]). No problems observed so far. 

[1] http://robert.penz.name/162/mini-howto-on-how-to-get-the-onboard-umts-card-wireless-5530-hsdpa-minicard-of-a-dell-e6500-running-on-kubuntu-904-jaunty/
Comment 4 Stefan Oschkera 2010-10-27 04:23:37 UTC
Created attachment 173300 [details]
wvdial config file for A1/Austria
Comment 5 Stefan Oschkera 2010-10-27 04:30:57 UTC
Created attachment 173301 [details]
wvdial config file (tar.gz archive)
Comment 6 Stefan Oschkera 2010-11-13 05:15:27 UTC
Can I be of any further assistance?
Comment 7 Fabio Durán Verdugo 2011-01-03 02:13:56 UTC
does the bug still exists?
Comment 8 Stefan Oschkera 2011-01-05 16:43:27 UTC
Yes, indeed -- though all updates currently available are installed (Ubuntu 10.04 LTS). I'm still using wvdial as the Network Manager doesn't work; I've just checked it to be sure. 

I'm available for any further assistance you may need, but please keep in mind, that I have only very little programming skills. However, here's a 10y+ Debian user, running his Linux boxes for business purposes. For whatever this is worth...
Comment 9 Dan Williams 2011-04-26 19:37:38 UTC
It gets more complicated.  If the device you have (a 5530, aka Ericsson F3507g) used PPP for data transport, this wouldn't be an issue.  But instead the 5530 uses a pseudo-ethernet interface, and the password is sent to the modem because of this, instead of to pppd.

Now, modems talk in specific character sets.  Since the 5300/3507g handle the authentication internally, the user & password are sent to the modem and when they are sent, they are converted into the character set the modem is using at the time.  That could be UTF-8 or UCS2, which is probably the source of these issues...
Comment 10 Dan Williams 2011-04-26 20:20:42 UTC
I think at this point we'd need to get modem-manager logs to see what specifically is getting sent to the modem.  MM will prefer UTF-8 encoding if the modem supports it, otherwise UCS2.  I'm pretty sure the Ericsson parts support UTF-8 so we should be using that by default and thus not have any problems.

so:

mv /usr/sbin/modem-manager /
killall -TERM modem-manager
/modem-manager --debug

and then try to connect and we'll see what's going on.
Comment 11 Dan Williams 2011-04-27 18:11:34 UTC
Checking with a SonyEricsson MD300 (external USB dongle using same commands as F3507g) the device does support UTF-8 and MM selects UTF-8 as the command set.  So for your modems, we'll need to see what character set MM is selecting using the procedure I mention in comment 10.
Comment 12 Stefan Oschkera 2011-05-01 04:24:07 UTC
Attached please find the log as requested. Thanks for your effort!
Comment 13 Stefan Oschkera 2011-05-01 04:25:37 UTC
Created attachment 186958 [details]
Modem-manager log file
Comment 14 Stefan Oschkera 2011-06-18 04:01:34 UTC
FYI: I occasionally found the following website [1], which seems to provide further info our issue.  

[1] http://natisbad.org/E4300/
Comment 15 Marius Kotsbak 2012-09-17 19:19:55 UTC
I don't see anything interesting in the log. It seems like it does not succeed in connecting. Anyway it is hard to read the log because echo is enabled. Could you please try again using a newer version of NM/MM/Ubuntu?
Comment 16 Aleksander Morgado 2014-10-14 09:32:58 UTC
Moving bugreport to the new ModemManager bugzilla in fd.o; summarized the issue there as well:

https://bugs.freedesktop.org/show_bug.cgi?id=84978

Closing this report as NOTGNOME.