プロジェクト

全般

プロフィール

Vote #68271

完了

Email notifications send to everybody

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2010/09/30
期日:
進捗率:

100%

予定工数:
category_id:
9
version_id:
20
issue_org_id:
6541
author_id:
10655
assigned_to_id:
5
comments:
23
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Email notifications send to everybody, regardless settings.


journals

Same here. I just updated to 1.0.2 and suddently email notifications are sent to ALL users :/
--------------------------------------------------------------------------------
Are you on 1.0.2 or latest trunk?
--------------------------------------------------------------------------------
Sorry, I wasn't very specific.

I first upgraded to latest trunk (currently r4229) and got this problem, so I downgraded to r4210 (which corresponds to 1.0.2) but still have the same problem: email notifications are sent to all users.
--------------------------------------------------------------------------------
It seems the migration to the "new" messaging preferences resets the mail preferences to "any event in all my projects", or at least this is what I have observed so far. I'll have a look at the migration to see if there is a bug in there.
--------------------------------------------------------------------------------
I suspect migrations introduced in r4216 won't be easy to downgrade... Do users receive mail notifications they shouldn't be recipient of regarding projects privacy ? Or they just receive notification as if they chose it in "My account" page ?
--------------------------------------------------------------------------------
Jean-Baptiste Barth wrote:
> I suspect migrations introduced in r4216 won't be easy to downgrade... Do users receive mail notifications they shouldn't be recipient of regarding projects privacy ? Or they just receive notification as if they chose it in "My account" page ?

The notifications options are set to "receive all mails for all events", and this is because the second migration of r4216 isn't run due to the wrong timestamp. JB, didn't you open a ticket for that? Could you make it a related to this one here?

Regarding that migration, there is another problem with it: it assumes @true@ and @false@ are stored as @1@ and @0@ in the DB, which isn't the case for sqlite, which stores @t@ and @f@. Will submit a patch soon.
--------------------------------------------------------------------------------
Yes it's #6527. In fact they _are_ run (at least on my laptop...) : with timestamped migrations, rails inserts a line for each migration in the internal table where it stores the migration (@schema_something@, I don't remember). Anyway, I'm not sure it will be easy to reverse after upgrading to a recent revision on trunk.

I let you investigate Felix (and thanks for the boolean thing, it makes me think of something on your doodle plugin I didn't report to you!)
--------------------------------------------------------------------------------
Could everyone facing this problem please post here what DB they are using, if @20100129193402@ and @20100129193813@ are in in the table @schema_migrations@, and if the values for @users.mail_notifications@ are either @0@ and @1@, @t@ and @f@ or some @meaningful_strings@. Thanks.
--------------------------------------------------------------------------------
Jean-Baptiste Barth wrote:
> Yes it's #6527. In fact they _are_ run (at least on my laptop...) : with timestamped migrations, rails inserts a line for each migration in the internal table where it stores the migration (@schema_something@, I don't remember). Anyway, I'm not sure it will be easy to reverse after upgrading to a recent revision on trunk.

They are run here too, but the main problem is that the migration assumes the values from the boolean are @0@ and @1@, though at least on sqlite they are @f@ and @t@.
--------------------------------------------------------------------------------
I have both @20100129193402@ and @20100129193813@ in the @schema_migrations@ table.
As for the @users.mail_notification@, two users have _all_, one has _none_ and all others have _only_my_events_.
--------------------------------------------------------------------------------
Eric: seeing that you are toying around ;-) with the notification, I think you should review and commit this.

The fix is here: http://github.com/thegcat/redmine/commit/ea2642fe16dc717d33826555c4db525635a41cc5

It fixes two things: the migration to update the @user.mail_notification@ column is fixed for sqlite, and @Project@ s won't return all members but only those wishing to receive notifications for it.

Luc: you can re-upgrade and apply just this change http://github.com/thegcat/redmine/commit/ea2642fe16dc717d33826555c4db525635a41cc5#L0L390 , your DB is already up-to-date with the correct values, so that should correct the problem for you.
--------------------------------------------------------------------------------
Oh, forget the target version, I wasn't paying much attention, but seeing that the notification changes will not get into 1.0.3, the fix doesn't need either :-)
--------------------------------------------------------------------------------
I confirm that Felix' github patch fixes the problem for me.
--------------------------------------------------------------------------------
Anyone who made the update might want to have a look at http://www.redmine.org/issues/6549#note-1.
--------------------------------------------------------------------------------
Felix Schäfer wrote:
> Regarding that migration, there is another problem with it: it assumes @true@ and @false@ are stored as @1@ and @0@ in the DB, which isn't the case for sqlite, which stores @t@ and @f@. Will submit a patch soon.

Regarding that, from a completely fresh (i.e. nothing else than a @rake db:migrate@) sqlite DB:

<pre>sqlite> SELECT mail_notification FROM users;
t</pre>

So I can't say for sure other other sqlites don't convert @true@ in a boolean field to a @1@ in a varchar(255) field, but that one doesn't :-)
--------------------------------------------------------------------------------
we still got this problem in version 4231-devel after an update yesterday. we are using mysql.
what can I do to fix it?
--------------------------------------------------------------------------------
christoph scheyk wrote:
> we still got this problem in version 4231-devel after an update yesterday. we are using mysql.
> what can I do to fix it?

The fix isn't in trunk yet. "What I told Luc":/issues/6541#note-11 a few comments up should correct the problem too.
--------------------------------------------------------------------------------
Thank you, Felix!
--------------------------------------------------------------------------------
Does this relate to that I also see both the english and the swedish values in the @select@ on the accountpage where they choose their setting for this?
--------------------------------------------------------------------------------
Henrik Jönsson wrote:
> Does this relate to that I also see both the english and the swedish values in the @select@ on the accountpage where they choose their setting for this?

Probably not all strings are translated yet, which happens rather often on trunk.
--------------------------------------------------------------------------------
Fixed in r4246 with a modified version of Felix's patch.
--------------------------------------------------------------------------------
Whoops, wrong issue. #6549 was fixed in r4246. Still looking into this one.
--------------------------------------------------------------------------------
Fixed in r4247 with a bunch of tests to make sure this doesn't regress. Thanks for reporting the bug and finding the cause everyone.
--------------------------------------------------------------------------------


related_issues

relates,Closed,6527,Recent migrations don't have the correct date
relates,Closed,6549,Notification settings not migrated properly

Admin Redmine さんが約4年前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン1.1.0_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0