-
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
Cannot include privileged owner from list even if it has to (#969) #973
Conversation
Hello DIED: Not an ARRAY reference at /usr/share/sympa/lib/Sympa/List.pm line 4752. If you could tell me where my mistake is. cordially |
Sympa 6.2.56 was released on 24th May, thus it doesn't include this fix. |
Yes, I reported this one in the code of the List.pm module. |
@bmarchal54 , could you please show the configuration related to |
Hello,
Here is the owner_include paragraph of the config file.
The error occurs regardless of the privileged type or not.
…---------------------------
owner_include
source inclusion-liste
reception mail
profile normal
visibility noconceal
source_parameters dn-test-proprietaires@tmp.univ-lorraine.fr
--------------------------
Without the patch, there is indeed the insertion of the people from the list in the admin_table table, but in 'normal' mode.
cordially
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 2 Sep 20, à 2:40, IKEDA Soji <notifications@github.com> a écrit :
[ https://github.com/bmarchal54 | @bmarchal54 ] , could you please show the
configuration related to owner_include ?
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBMWJ6XJ2SXQBRSP2CTSDWIBBANCNFSM4PHIYXEA
| unsubscribe ] .
|
So what is the content of |
Here is the contents of the file
…-----------------
more /etc/sympa/data_sources/inclusion-liste.incl
include_list [% param.0 %]
----------------
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 2 Sep 20, à 10:06, IKEDA Soji <notifications@github.com> a écrit :
So what is the content of inclusion-liste.incl ?
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBPBZCTPHISUOXR4M5LSDX4HLANCNFSM4PHIYXEA
| unsubscribe ] .
|
Hello,
I tried to see what was wrong with the patch by showing the type of structure pointed to by the $cfgs variable.
Sometines, these are ARRAYs, but there are also HASHs. Wouldn't it come from there?
See you soon
…---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 2 Sep 20, à 10:06, IKEDA Soji <notifications@github.com> a écrit :
So what is the content of inclusion-liste.incl ?
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBPBZCTPHISUOXR4M5LSDX4HLANCNFSM4PHIYXEA
| unsubscribe ] .
|
Can you dump the content of |
Hello,
Here is the code I inserted to display the contents of the variable:
…-------------------
foreach my $cfgs (values %include) {
$log->syslog('notice',
'patch : valeurs type : %s',
$cfgs);
$log->syslog('notice',
'patch : valeurs type : %s',
Dumper($cfgs));
print FICDUMPER Dumper($cfgs);
}
-------------------
And here is the result in the logs of Sympa :
-------------------
Sep 4 14:15:32 vacherin wwsympa[107155]: notice Sympa::List::_load_include_admin_user_file() patch : valeurs type : ARRAY
Sep 4 14:15:32 vacherin wwsympa[107155]: notice Sympa::List::_load_include_admin_user_file() patch : valeurs type : $VAR1 = [#12 {#12 'filter' => undef,#12 'listname' => 'dn-test-proprietaires@tmp.univ-lorraine.fr',#12 'name' => 'include_list dn-test-proprietaires@tmp.univ-lorraine.fr'#12 }#12 ];
Sep 4 14:15:32 vacherin wwsympa[107155]: notice Sympa::List::_load_include_admin_user_file() patch : valeurs type : HASH
Sep 4 14:15:32 vacherin wwsympa[107155]: notice Sympa::List::_load_include_admin_user_file() patch : valeurs type : $VAR1 = {};
-------------------
Hope this can help you.
Kind regards
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 4 Sep 20, à 10:43, IKEDA Soji <notifications@github.com> a écrit :
> Sometines, these are ARRAYs, but there are also HASHs. Wouldn't it come from
> there?
Can you dump the content of $cfgs ?
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBMLGO3KTPV2YFTQCATSECSDFANCNFSM4PHIYXEA
| unsubscribe ] .
|
If I add the following line in the code, I no longer have an error:
But it may not be complete. In any case, with a quick test, the members of the list pass well as privileged owner. |
@bmarchal54 , if possible, can you dump whole value of $log->syslog('notice', 'patch : valeurs : %s', Dumper(\%include)); # <- Insert this
foreach my $cfgs (values %include) {
... |
Hello
Here is the result in the log file
…------
Sep 9 08:18:02 vacherin wwsympa[3142]: notice Sympa::List::_load_include_admin_user_file() patch : valeurs : $VAR1 = {#12 'include_sympa_list' => [#12 {#12 'filter' => undef,#12 'listname' => 'dn-test-proprietaires@tmp.univ-lorraine.fr',#12 'name' => 'include_list dn-test-proprietaires@tmp.univ-lorraine.fr'#12 }#12 ],#12 'defaults' => {}#12 };
-----
Cordially
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 9 Sep 20, à 3:21, IKEDA Soji <notifications@github.com> a écrit :
[ https://github.com/bmarchal54 | @bmarchal54 ] , if possible, can you dump
whole value of %include ?
$log -> syslog( ' notice ' , ' patch : valeurs : %s ' , Dumper(\ %include )); #
<- Insert this foreach my $cfgs ( values %include ) {
...
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBJZGP44XIHVERJVWYLSE3KCFANCNFSM4PHIYXEA
| unsubscribe ] .
|
@bmarchal54 ,please apply this additional patch and check if the problem will be solved. |
If I delete the line "next if ref $cfgs ne 'ARRAY';", I have this message again
Pile d'appel
DIED: Not an ARRAY reference at /usr/share/sympa/lib/Sympa/List.pm line 4778.
at /usr/share/sympa/lib/Sympa/List.pm line 4778.
Sympa::List::_load_include_admin_user_file(Sympa::List <dn-test-benoit@tmp.univ-lorraine.fr>, HASH(0x73fd210)) called at /usr/share/sympa/lib/Sympa/Request/Handler/include.pm line 99
Sympa::Request::Handler::include::_get_data_sources(Sympa::List <dn-test-benoit@tmp.univ-lorraine.fr>, 'owner') called at /usr/share/sympa/lib/Sympa/Request/Handler/include.pm line 136
Sympa::Request::Handler::include::_twist(Sympa::Spindle::ProcessRequest=HASH(0x7111218), Sympa::Request <action=include;context=dn-test-benoit@tmp.univ-lorraine.fr;role=owner>) called at /usr/share/sympa/lib/Sympa/Spindle.pm line 95
Sympa::Spindle::spin(Sympa::Spindle::ProcessRequest=HASH(0x7111218)) called at /usr/share/sympa/lib/Sympa/List.pm line 4815
Sympa::List::sync_include(Sympa::List <dn-test-benoit@tmp.univ-lorraine.fr>, 'owner') called at /usr/share/sympa/lib/Sympa/List.pm line 411
Sympa::List::new('Sympa::List', 'dn-test-benoit', 'tmp.univ-lorraine.fr', HASH(0x73c8160)) called at /usr/libexec/sympa/wwsympa.fcgi line 10637
main::do_edit_list() called at /usr/libexec/sympa/wwsympa.fcgi line 1556
…---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 9 Sep 20, à 11:18, IKEDA Soji <notifications@github.com> a écrit :
[ https://github.com/bmarchal54 | @bmarchal54 ] ,please apply [
https://github.com/sympa-community/sympa/commit/d3a2dfe.patch | this additional
patch ] and check if the problem will be solved.
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBKXL47P67P7SNZ5KJTSE5B5FANCNFSM4PHIYXEA
| unsubscribe ] .
|
Please restart wwsympa service (cf. Reloading WWSympa). |
I did
Shouldn't I change my long-standing inclusion.incl file?
Put include_sympa_list instead of include_list
…---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 9 Sep 20, à 11:44, IKEDA Soji <notifications@github.com> a écrit :
Please restart wwsympa service (cf. [
https://sympa-community.github.io/manual/admin/services.html#reloading-wwsympa
| Reloading WWSympa ] ).
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBNMSPKNUZOD6HRAW2TSE5FAZANCNFSM4PHIYXEA
| unsubscribe ] .
|
@bmarchal54 , please show the dump of |
Here is the result
notice Sympa::List::_load_include_admin_user_file() patch : valeurs : $VAR1 = {#12 'include_sympa_list' => [#12 {#12 'filter' => undef,#12 'listname' => 'dn-test-proprietaires@tmp.univ-lorraine.fr',#12 'name' => 'include_list dn-test-proprietaires@tmp.univ-lorraine.fr'#12 }#12 ],#12 'defaults' => {}#12 };
Thanks
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
…----- Le 10 Sep 20, à 2:29, IKEDA Soji <notifications@github.com> a écrit :
[ https://github.com/bmarchal54 | @bmarchal54 ] , please show the dump of
%include .
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBKNPAU3ODYKJWQLQXTSFAMVNANCNFSM4PHIYXEA
| unsubscribe ] .
|
And please show the content of |
Here are the files. There is only one * .incl
inclusion-liste.incl
-------
include_list [% param.0 %]
------
config file :
-------
.....
owner_include
source inclusion-liste
reception mail
profile privileged
visibility noconceal
source_parameters dn-test-proprietaires@tmp.univ-lorraine.fr
.....
…-----
---
Benoît MARCHAL
Sous direction Infrastructure & Services
Direction du Numérique
Université de Lorraine
Tél : 03.72.74.11.39 / 06.07.35.50.65
mél : Benoit.Marchal@univ-lorraine.fr
----- Le 10 Sep 20, à 10:38, IKEDA Soji <notifications@github.com> a écrit :
And please show the content of *.incl file(s) and all owner_include paragraph(s)
in config file.
—
You are receiving this because you were mentioned.
Reply to this email directly, [
#973 (comment) | view
it on GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AINKMBLEDLJB7Q4T5H7DL33SFCF67ANCNFSM4PHIYXEA
| unsubscribe ] .
|
@bmarchal54 , please apply this additional patch for the time being. It will be included in the next release. |
Hello,
I am on leave for two weeks without access to a computer (except e-mail).
I could not do the modifications and the tests before.
I will keep you posted as soon as possible.
cordially
…---
Benoît Marchal
Sous-direction des infrastructures
Direction du Numérique
Université de Lorraine
Benoit.Marchal@univ-lorraine.fr
Le 15 sept. 2020 à 03:21, IKEDA Soji ***@***.***> a écrit :
@bmarchal54 , please apply this additional patch for the time being. It will be included in the next release.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This may fix #969 .