You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/10/06 14:51:45 UTC

[Bug 5119] New: 3.1.6 breaks sa-update, if admins set rule scores in site config

http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119

           Summary: 3.1.6 breaks sa-update, if admins set rule scores in
                    site config
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P5
         Component: sa-update
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: jm@jmason.org


(as discussed on the dev list --) it appears that if the site
config changes a setting that refers to a system rule -- for example,

   score ALL_TRUSTED -2.0

in /etc/mail/spamassassin/local.cf, then sa-update will fail to perform an
update successfully.

discussion so far:

> Theo Van Dinter wrote:
> > On Thu, Oct 05, 2006 at 03:31:33PM -0400, Daryl C. W. O'Shea wrote:
> >> Sigh.  None of the machines I tested the change on redefined any scores.
> >>  I forgot that this actually causes an error and not info, so I didn't
> >> even think of trying it.
> >>
> >> For now you'll have to disable the score lines while you do sa-update.
> >> Temporarily renaming whatever.cf to whatever.cf-disabled is probably the
> >> easiest way to go about it.
> >
> > For such a major issue, I would suggest we fix it ASAP and release 3.1.7.
> > People will likely just stop doing sa-update if they have to go through this.
>
> I agree (and I feel like an ass -- I should have caught this).
>
> So far these are the options I've thought of:
>
> 1) only load pre files:
>
> I originally didn't do this since I wanted a successful sa-update to
> signify that the rest of the config was good too and you could restart
> spamd with no problems.
>
>
> 2) pass in a flag to lint to ignore warnings about score/tflags/describe
> for non-existent rules:
>
> There could be other things that would cause lint errors, when the
> default (or sa-update'd) rulesets aren't loaded, that I'm not thinking of.
>
>
> 3) load the current ruleset in the local state dir (or the default rule
> set if sa-update hasn't been run before):
>
> We can't do it... we run into the same problem we have now if someone
> has zeroed out a score in their local config and the same rule gets
> removed in an sa-update ruleset.
>
>
> 4) revert the change for now
>
>
> So, option 1 seems the safest.  Option 2 would be nice, but I'm not
> certain I'm not missing something.  Option 3 isn't an option.  I'd like
> to avoid option 4, but it's better than nothing if 1 or 2 or something
> else doesn't work out shortly.
>
> Unfortunately, as like when anything goes wrong, I'm out the door in
> less than an hour to go pickup SWMBO.  I'll be away for 36+ hours. :(


#2 seems unreliable to me, since new plugins can define new things that depend
on existing rule definitions.  #3, ugh.   #1 I think should work, though.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] [review] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119


spamassassin@dostech.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|3.1.6 breaks sa-update, if  |[review] 3.1.6 breaks sa-
                   |admins set rule scores in   |update, if admins set rule
                   |site config                 |scores in site config
  Status Whiteboard|                            |needs 2 votes






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119





------- Additional Comments From felicity@apache.org  2006-10-06 07:49 -------
(In reply to comment #1)
> Theo is suggesting that we simply reverse the patch for bug 5044 for an
> immediate 3.1.7 release, then fix it *properly* for 3.1.8.  +1 on that idea.

+1



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] [review] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119





------- Additional Comments From felicity@apache.org  2006-10-07 15:35 -------
Since the plan is to remove the entirety of the patch that went in, I'd just do
a reverse merge and commit it.  IMO, it doesn't need a vote since we've already
discussed the issue and the plan (and even voted to move forward with the plan...)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119


spamassassin@dostech.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|[review] 3.1.6 breaks sa-   |3.1.6 breaks sa-update, if
                   |update, if admins set rule  |admins set rule scores in
                   |scores in site config       |site config
  Status Whiteboard|needs 2 votes               |




------- Additional Comments From spamassassin@dostech.ca  2006-10-07 22:57 -------
ok, done... just trying to move the plan along.  Since I can't sign tarballs,
someone else is going to have to cut a release (hopefully soon).


[dos@FC5-VPC trunk]$ svn ci -m "bug 5119: revert r452711 change that breaks
sa-update"
Sending        sa-update.raw
Transmitting file data .
Committed revision 454082.

[dos@FC5-VPC 3.1]$ svn ci -m "bug 5119: revert r452712 change that breaks sa-update"
Sending        sa-update.raw
Transmitting file data .
Committed revision 454083.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119





------- Additional Comments From spamassassin@dostech.ca  2006-10-06 10:47 -------
(In reply to comment #2)
> (In reply to comment #1)
> > Theo is suggesting that we simply reverse the patch for bug 5044 for an
> > immediate 3.1.7 release, then fix it *properly* for 3.1.8.  +1 on that idea.
> 
> +1

+1

(I found some wifi in a Holiday Inn parking lot)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |5044
             Status|NEW                         |ASSIGNED




------- Additional Comments From jm@jmason.org  2006-10-06 07:34 -------
Theo is suggesting that we simply reverse the patch for bug 5044 for an
immediate 3.1.7 release, then fix it *properly* for 3.1.8.  +1 on that idea.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119





------- Additional Comments From spamassassin@dostech.ca  2006-10-07 14:03 -------
Created an attachment (id=3712)
 --> (http://issues.apache.org/SpamAssassin/attachment.cgi?id=3712&action=view)
patch to revert change from bug 5044




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119


jm@jmason.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Undefined                   |3.1.7






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 5119] 3.1.6 breaks sa-update, if admins set rule scores in site config

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5119


spamassassin@dostech.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spamassassin@dostech.ca




------- Additional Comments From spamassassin@dostech.ca  2006-10-06 10:47 -------
*** Bug 5118 has been marked as a duplicate of this bug. ***



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.