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 161209 - gconf error on login if user has whitespace in homedir path
gconf error on login if user has whitespace in homedir path
Status: RESOLVED WONTFIX
Product: GConf
Classification: Deprecated
Component: XML backend
2.8.x
Other Linux
: Normal major
: ---
Assigned To: GConf Maintainers
GConf Maintainers
gnome[unmaintained]
: 640716 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-13 22:40 UTC by matt johnson
Modified: 2018-08-17 13:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description matt johnson 2004-12-13 22:40:13 UTC
Distribution: Debian 3.1
Package: GConf
Severity: major
Version: GNOME2.8.1 2.8.x
Gnome-Distributor: Debian
Synopsis: gconf error on login if user has whitespace in homedir path
Bugzilla-Product: GConf
Bugzilla-Component: XML backend
Bugzilla-Version: 2.8.x
Description:
Description of Problem:
Under gnome 2.8, gnome apps cannot find user gconf database for storing
keys if username has *spaces* in (e.g. is authenticating via winbind/pam
against nt usernames with whitespaces)
All users with whitespaces fail to login succesfully. 
All users without spaces (authenticating via the same means) always
successful - no error.
There was no error for any user in previous gnome (e.g. gnome 2.6 - all
worked very well before gnome upgrade)

Steps to reproduce the problem:
1. setup a workstation to authenticate from an nt server that uses
whitespace in username
2. test logins work in gnome 2.6 (or earlier), then upgrade to gnome
2.8
3. attempt gnome 2.8 login from (e.g. gdm)

Actual Results:
Error starting desktop gnome apps such as gnome panel etc.
Gconf complains it cannot open database for storage - user does not get
acceptable desktop (no panel, menus etc)

Expected Results:
Successful login
No error - there was no problem using gnome 2.6 with usernames with
whitespaces

How often does this happen?
Every time

Additional Information:
gnome 2.4, 2.6 login works
gnome 2.8 can get no login if user has whitespace
Comment 1 matt johnson 2004-12-23 12:14:34 UTC
To prove this, one can simply put in a test location in /etc/gconf/2/path,
replacing $(HOME)/gconf with something like /home/dirwith space/jsmith, and
create a corresponding user and homedir.
Comment 2 Boris de Laage 2005-07-25 17:03:48 UTC
2.10 have the same issue.
Comment 3 Kjartan Maraas 2006-08-10 14:57:07 UTC
This looks like it was fixed:

2005-10-18  Tor Lillqvist  <tml@novell.com>

        * gconf/gconf-backend.c (invalid_chars[]): Do allow space in
        configuration source addresses on Windows, as space is common in
        user names, and thus home directories (i.e., profile folders).

Comment 4 Andreas Köhler 2007-08-06 18:19:14 UTC
It seems to me that the commit mentioned in comment 3 only removed SPACE from invalid_chars on the Windows operating system.  The original report was for Debian though.

There has been a report on the gnucash-user mailing list about being unable to save preferences because the user name contained an ampersand (&).  Is it really necessary to forbid so many characters?
Comment 5 jose.rob.jr 2011-01-28 10:56:05 UTC
Easy steps to reproduce:

# mkdir "/mnt/home with space"
# adduser --home "/mnt/home with space" sample

Now, try to login and you will get the error message:

The application "gnome-panel" attempted to change an aspect of your
configuration that your system administrator or operating system vendor does
not allow you to change. Some of the settings you have selected may not take
effect, or may not be restored next time you use the application.

As you can see, the homedir can have white spaces in linux, too.

The update mentioned in comment 3 must be replicated to others operating systems...
Comment 6 jose.rob.jr 2011-01-28 10:57:27 UTC
*** Bug 640716 has been marked as a duplicate of this bug. ***
Comment 7 Kjartan Maraas 2011-05-25 13:28:16 UTC
It's easy to remove the Windows special casing of this, but I wonder if we hit more problems down the road with this. Has anyone tried GNOME 3 on such a home dir btw? Does this problem hit us in dconf/gsettings too?
Comment 8 John Ralls 2011-08-25 23:47:38 UTC
The only restriction in both dconf and gsettings seems to be 
 * @key must be a valid key (ie starting with a slash, not containing
 * '//', and not ending with a slash).
Comment 9 André Klapper 2018-08-17 13:58:26 UTC
GConf has been deprecated since 2011.

GConf is not under active development anymore. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gconf/commits/master

dconf and gsettings are its successors. See https://developer.gnome.org/gio/stable/ch34.html and https://developer.gnome.org/GSettings/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of dconf/gsettings. Thanks!