ClearFoundation Tracker - ClearOS
View Issue Details
0000337ClearOSapp-content-filter - Content Filterpublic2011-10-18 13:132012-04-18 19:39
user2 
 
highmajoralways
closedopen 
 
6.2.0 Beta 26.2.0 Beta 2 
0000337: Deletion of filter group breaks configuration
Deletion of a new filter group wipes out some of the files required for the default configuration of Dansguardian causing the service to stop, and unable to start again

Steps followed show below for information on a clean 5.1 install with all upgrades applied

###To reproduce, create new filter group (called testing), note files with 0000002 suffix

[root@system lists]# ls
authplugins bannedsitelist2 exceptionmimetypelist greyurllist2
bannedextensionlist bannedurllist exceptionmimetypelist2 headerregexplist
bannedextensionlist2 bannedurllist2 exceptionphraselist logregexpurllist
bannedextensionlist.all blacklists exceptionregexpurllist logsitelist
bannediplist contentregexplist exceptionsitelist logurllist
bannedmimetypelist contentscanners exceptionsitelist2 phraselists
bannedmimetypelist2 downloadmanagers exceptionurllist pics
bannedmimetypelist.all exceptionextensionlist exceptionurllist2 urlregexplist
bannedphraselist exceptionextensionlist2 filtergroupslist weightedphraselist
bannedregexpheaderlist exceptionfilesitelist greysitelist weightedphraselist2
bannedregexpurllist exceptionfileurllist greysitelist2
bannedsitelist exceptioniplist greyurllist
[root@system lists]# ls ../
authplugins dansguardian.conf.default dansguardianf2.conf lists
contentscanners dansguardian.conf.rpmsave downloadmanagers transparent1x1.gif dansguardian.conf dansguardianf1.conf languages

###Delete group from webconfig,

[root@system lists]# ls
authplugins bannedsitelist exceptioniplist headerregexplist
bannedextensionlist bannedurllist exceptionmimetypelist2 logregexpurllist
bannedextensionlist.all blacklists exceptionphraselist logsitelist
bannediplist contentregexplist exceptionregexpurllist logurllist
bannedmimetypelist contentscanners exceptionsitelist phraselists
bannedmimetypelist.all downloadmanagers exceptionurllist pics
bannedphraselist exceptionextensionlist2 filtergroupslist urlregexplist
bannedregexpheaderlist exceptionfilesitelist greysitelist weightedphraselist
bannedregexpurllist exceptionfileurllist greyurllist
[root@system lists]# ls ../
authplugins dansguardian.conf.default downloadmanagers transparent1x1.gif
contentscanners dansguardian.conf.rpmsave languages
dansguardian.conf dansguardianf1.conf lists

###Stop / start content filter from webconfig

Apr 11 15:35:16 system dansguardian[8872]: Error reading file /etc/dansguardian-av/lists/exceptionextensionlist: No such file or directory
Apr 11 15:35:16 system dansguardian[8872]: Error reading file /etc/dansguardian-av/lists/exceptionextensionlist: No such file or directory
Apr 11 15:35:16 system dansguardian[8872]: Error opening exceptionextensionlist
Apr 11 15:35:16 system dansguardian[8872]: Error opening filter group config: /etc/dansguardian-av/dansguardianf1.conf
Apr 11 15:35:16 system dansguardian[8872]: Error reading filter group conf file(s).
Apr 11 15:35:16 system dansguardian[8872]: Error parsing the dansguardian.conf file or other DansGuardian configuration files

Note the wrong files have been deleted and files that are remaining and not in the original default filter group
exceptionmimetypelist2
exceptionextensionlist2

I also found on a properly configured version of the content filter on my production system, other files were also missing, see below. But my clean VM test had only the two above.
greyurllist
bannedsitelist
greysitelist
bannedurllist
exceptionurllist
exceptionsitelist
weightedphraselist
exceptionmimetypelist
exceptionextensionlist
exceptionfilesitelist




No tags attached.
Issue History
2011-10-18 13:13user2New Issue
2011-10-18 13:13user2Issue generated from: 0000071
2011-10-18 13:14user2Statusnew => resolved
2011-10-18 13:14user2Fixed in Version => 6.1 Beta 2
2011-10-18 13:14user2Target Version => 6.1 Beta 2
2012-04-18 19:39user2Statusresolved => closed

There are no notes attached to this issue.