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 402063 - Empty space is not a valid keyword
Empty space is not a valid keyword
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jamie McCracken
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2007-01-29 12:02 UTC by John Stowers
Modified: 2008-10-29 13:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Stowers 2007-01-29 12:02:17 UTC
Currently tracker allows an empty space as a valid keyword for a file.

Perhaps tracker should check for 

valid = strlen(keyword) > 1 && g_unichar_isalnum(keyword[0]) && !g_unichar_isspace(keyword[0])
Comment 1 Kris Marsh 2007-04-07 23:24:16 UTC
Confirmed.

moogman@eyebrow:~$ tracker-tag --list
moogman@eyebrow:~$ touch file
moogman@eyebrow:~$ tracker-tag file
/home/moogman/file:
moogman@eyebrow:~$ tracker-tag file -a ' '
moogman@eyebrow:~$ tracker-tag --list
  : 1 

moogman@eyebrow:~$ trackerd --version
Tracker version 0.5.4 Copyright (c) 2005-2006 by Jamie McCracken (jamiemcc@gnome.org)
Comment 2 Jean-François Fortin Tam 2007-07-18 19:27:21 UTC
is it me or this is fixed in SVN?
Comment 3 Kris Marsh 2007-07-18 19:44:06 UTC
Yes, fixed in SVN.

moogman@gbcdff1461m:~/svn/tracker$ tracker-tag --list
moogman@gbcdff1461m:~/svn/tracker$ touch file
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file
tracker-tag: internal tracker error: [keywords_get] Entity /home/moogman/svn/tracker/file not found in database
The following error has happened : [keywords_get] Entity /home/moogman/svn/tracker/file not found in database
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file
/home/moogman/svn/tracker/file:
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file
/home/moogman/svn/tracker/file:
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file -a ' '
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file
/home/moogman/svn/tracker/file:  
moogman@gbcdff1461m:~/svn/tracker$ tracker-tag file
/home/moogman/svn/tracker/file:  
Comment 4 Ivan Frade 2008-10-29 13:24:02 UTC
This bug was still there. Committed the fix in trunk.