ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000071ClearOSapp-content-filter - Content Filterpublic2010-04-11 13:482012-04-18 19:39
Reportertimb80 
Assigned Todsokoloski 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.1 
Target Version6.2.0 Beta 2Fixed in Version6.2.0 Beta 2 
Summary0000071: Deletion of filter group breaks configuration
DescriptionDeletion 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

Additional Information###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




TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000194)
user2
2010-07-19 17:51

Bump to 5.2 errata (high priority)
(0000330)
dsokoloski (developer)
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

- Issue History
Date Modified Username Field Change
2010-04-11 13:48 timb80 New Issue
2010-04-12 13:52 user2 Status new => assigned
2010-04-12 13:52 user2 Assigned To => dsokoloski
2010-04-12 13:52 user2 Target Version => 5.2
2010-07-19 17:51 user2 Note Added: 0000194
2010-07-19 17:52 user2 Target Version 5.2 => 5.2-SP
2010-07-19 17:52 user2 Priority normal => high
2010-10-07 08:53 user2 Target Version 5.2-SP1 => 5.2-SP2
2011-01-06 09:58 user2 Target Version 5.2-SP2 => 6.0
2011-01-18 11:50 dsokoloski Checkin
2011-01-18 11:50 dsokoloski Note Added: 0000330
2011-01-18 11:50 dsokoloski Status assigned => resolved
2011-01-18 11:50 dsokoloski Resolution open => fixed
2011-10-18 13:13 user2 Issue cloned: 0000337
2011-10-18 13:46 user2 Fixed in Version => 6.1 Beta 2
2011-10-18 13:46 user2 Target Version 6.1 Future => 6.1 Beta 2
2012-04-18 19:39 user2 Status resolved => closed