-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editing Moderators Requires Restart to Take Effect #7
Comments
IMHO, caching of list owners and moderators is severely flawed in 6.2. Ran into the same problem a while ago and I finally resorted to just disable this sort of caching by a hack in the code. Thanks for the report. |
@racke Can you share the hack that you did? I'd love to work around it the same way if possible. |
Let me stress that it is a hack and may cause problems. Certainly not a proper fix. Method get_admins in src/lib/Sympa/List.pm:
I also patched wwsympa.cgi, because changes to moderators etc. didn't end up in the database:
|
@racke Thank you very much! |
@racke May we apply your hack? |
On 04/14/2017 03:21 AM, IKEDA Soji wrote:
@racke <https://github.com/racke> May we apply your hack?
Not really. It deserves another look, as of now it just prevents the caching of the information.
Regards
Racke
…--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.
|
@ikedas: actually the patch to wwsympa should be fine and we could apply that one. |
@racke, thanks for investigating. I have no objection to apply it. |
I think it would be good to also add |
Thanks to Moritz Schlarb for the suggestion.
I think so - but I'm really not an expert at all. I know neither Perl nor Sympa that well. ;-) |
Thanks to Moritz Schlarb for the suggestion.
Are there any more fixes on this issue? If not, I'd like to close. |
@ikedas Go ahead, we can open new issues if this or a similar problem pops up again with 6.2.17 release. |
Okey, closed. Thanks for reporting and fixing bugs! |
Still facing with this problem. While refreshing wws/lists page, sometimes shows list@domain (Owner) and sometimes without owner. After restarting spawn-fcgi service, everything works fine. Sympa version: Sympa 6.2.19b.1 // Okey, after applying manually this line: "delete $self->{_admin_cache}{$role} if exists $self->{_admin_cache}{$role};" to src/lib/Sympa/List.pm:. Seems to work, I expected, it already have submitted to newer verision source code. |
Why change in List.pm is not applied to code? Is it hack or? |
@MargoM, the change you suggested is the same as stopping use of In fact |
@ikedas, unfortunately, this minor change didn't helped me. I can still reproduce this bug. |
@MargoM, owners sometimes shown or not shown is included from data source, or owners set in list config page?
This is the feature at this moment. I guess radical fix will be done in the future. |
@ikedas, while logging in as "normal owner" sometimes I can change list configuration and sometimes shows red textbox "AUTHORIZATION REJECT (edit_list_request) This action is restricted to list owners. ". |
At this point I would suggest to add a global/list option to switch off the admin cache, which probably should to on by default. |
@racke how I can switch off the admin cache? You mean this: src/lib/Sympa/List.pm, #7 (comment)? I'm using this change in List.pm and it seems to be working fine. |
Fixed by publishing the last change and sync by .last_chage.member and .last_sync.member files in list directory so that the last time of update may be shared among processes. This change possiblly can solve issue sympa-community#7.
The PR above can solve the problem. Please check it (it will be included in next beta, 6.2.23b.1). |
Fixed by publishing the last change and sync by .last_chage.member and .last_sync.member files in list directory so that the last time of update may be shared among processes. This change possiblly can solve issue sympa-community#7.
If problem will not be reported reproducing with 6.2.23b.2 by 14 Dec., I'll close this issue. |
[root@listes ~]# yum info sympa same error here -> ERREUR INTERNE (edit_list) - Impossible de synchroniser les administrateurs de la liste |
@tannevaled, could you please show the Sympa log (syslog)? |
L'utilisateur lismaster@domain.tld a été confronté à une erreur Problème de synchronisation des administrateurs de la liste 'xdev' Consultez les logs pour plus de détails. |
The error |
Problem has no longer been reported. Issue is closed. |
Version: 6.2.14
OS: RHEL 7
When adding, or editing, a list's moderator list in a newsletter list, newly added moderators are rejected by Sympa as not having permission to send to the list until the Sympa software is restarted.
From what I can tell, when the list config changes it's supposed to trigger a cache update in the database but I don't believe this is ocurring.
The text was updated successfully, but these errors were encountered: