Summary | [move_innocent_after_report'] not set globally |
Queue | IMP |
Queue Version | 6.2.3 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | sascha (at) schmidt (dot) ps |
Created | 12/02/2014 (3869 days ago) |
Due | |
Updated | 12/03/2014 (3868 days ago) |
Assigned | 12/02/2014 (3869 days ago) |
Resolved | 12/03/2014 (3868 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Michael Slusarz
State ⇒ Resolved
commit 690d731b354f8faaa19c09caae2c636a58758ac6
Author: Michael M Slusarz <slusarz@horde.org>
Date: Wed Dec 3 13:21:39 2014 -0700
[mms] Fix Horde_Prefs#isDefault() to return true if the given
pref name doesn't exist in a scope.
Since the pref is not defined, whatever value given should be considered
the default.
Ticket #13732framework/Prefs/lib/Horde/Prefs.php | 2 +-
framework/Prefs/package.xml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
http://github.com/horde/horde/commit/690d731b354f8faaa19c09caae2c636a58758ac6
If I don't have the "ham" preference within the prefs.local.php I can
see the following line in the log:
2014-12-03T20:54:27+01:00 DEBUG: HORDE [imp] Horde_Prefs: Storing
preference value (upgrade_tasks) [pid 13051 on line 148 of
"/var/www/pub/horde/pear/php/Horde/Core/LoginTasks/SystemTask/Upgrade.php"]
If I've configured the ham preference this line does not appear.
< 6 -> IMP 6.
script will be run at every system login...
Btw. I'm testing on a nearly fresh install.
6 -> IMP 6.
Upgrades are kept track of in the 'upgrade_tasks' preference, so it
looks like that preference isn't working/being saved on your system
correctly.
that 2 variables are handled for this task.
if (!$prefs->isDefault('move_ham_after_report')) {
$prefs->setValue('move_innocent_after_report',
$prefs->getValue('move_ham_after_report'));
After setting both variables with the desired value, it worked.
$_prefs['move_innocent_after_report']['value'] = '1';
$_prefs['move_ham_after_report']['value'] = '1';
Strange?
prefs.local.php:$_prefs['move_innocent_after_report']['value'] = '1';
prefs.php: 'spamselect', 'delete_spam_after_report',
'move_innocent_after_report',
prefs.php:$_prefs['move_innocent_after_report'] = array(
prefs.php: 'help' => 'prefs-move_innocent_after_report',
root@$:/var/www/pub/horde/imp/config#
prefs.local.php should override the prefs.php value as it does for the
delete_spam_after_report value...
Priority ⇒ 1. Low
State ⇒ Feedback
within prefs.local.php within the IMP path, this setting has _no
effect on the global configuration_. New users still need to
configure this value manually.
run the mysql statement "DELETE FROM horde_prefs...."
like this is still the issue: you have existing prefs still remaining
in your prefs backend.
Either that or you have a move_ham_after_report preference still
existing in your prefs backend and, for some reason, the upgrade
script is running on every login and copying over that old value.
identical (they are both used in only 1 place), this is more evidence
that your prefs backend is not pristine.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ [move_innocent_after_report'] not set globally
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
within prefs.local.php within the IMP path, this setting has _no
effect on the global configuration_. New users still need to configure
this value manually.
I've tested this with new users. And with existing users where I've
run the mysql statement "DELETE FROM horde_prefs...."
delete_spam_after_report for example, works.