ClearFoundation Tracker - ClearOS
View Issue Details
0000071ClearOSapp-content-filter - Content Filterpublic2010-04-11 13:482012-04-18 19:39
timb80 
dsokoloski 
highmajoralways
closedfixed 
5.1 
6.2.0 Beta 26.2.0 Beta 2 
0000071: 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
2010-04-11 13:48timb80New Issue
2010-04-12 13:52user2Statusnew => assigned
2010-04-12 13:52user2Assigned To => dsokoloski
2010-04-12 13:52user2Target Version => 5.2
2010-07-19 17:51user2Note Added: 0000194
2010-07-19 17:52user2Target Version5.2 => 5.2-SP
2010-07-19 17:52user2Prioritynormal => high
2010-10-07 08:53user2Target Version5.2-SP1 => 5.2-SP2
2011-01-06 09:58user2Target Version5.2-SP2 => 6.0
2011-01-18 11:50dsokoloskiCheckin
2011-01-18 11:50dsokoloskiNote Added: 0000330
2011-01-18 11:50dsokoloskiStatusassigned => resolved
2011-01-18 11:50dsokoloskiResolutionopen => fixed
2011-10-18 13:13user2Issue cloned: 0000337
2011-10-18 13:46user2Fixed in Version => 6.1 Beta 2
2011-10-18 13:46user2Target Version6.1 Future => 6.1 Beta 2
2012-04-18 19:39user2Statusresolved => closed

Notes
(0000194)
user2   
2010-07-19 17:51   
Bump to 5.2 errata (high priority)
(0000330)
dsokoloski   
2011-01-18 11:50   
Source Code Changelog
---------------------------------------------------
- Removed lines which caused the filter group delete bug. [fixed tracker 0000071]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=459 [^]
U legacy/webconfig/branches/5.2/api/DansGuardianAv.class.php