Skip to Content.
Sympa Menu

en - Re: [sympa-users] Problem with sympa.pl add_list with command line - all info

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Stefan Hornburg (Racke)" <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Problem with sympa.pl add_list with command line - all info
  • Date: Fri, 6 Mar 2020 17:33:20 +0100

On 3/6/20 4:03 PM, TISSOT Jacques wrote:
> Dear Community,
>
>
> I just updated SYMPA from version 6.1.25 to last version 6.2.54 (Debian 9).
> But now I could not create a list per command line with XML template :
>
> root@serveur: /usr/bin/sympa -d --add_list=indigo --robot=unifr.ch
> --input_file=/mnt/shared/indigo/prune/prune.xml
> create_automatic_list [user] XXX
> Impossible to add a list to the family indigo
>
> MORE INFOS:
>
> Error in the sympa.log file:
>
> Feb 27 12:02:06 svx-sympa2 sympa[18444]: err main::#731 >
> Sympa::Spindle::spin#95 > Sympa::Request::Handler::create_list::_twist#66
> Error in representation data with these xml data
>

Hello Jacques,

this line breaks it:

https://github.com/sympa-community/sympa/blob/sympa-6.2/src/lib/Sympa/Config_XML.pm#L171

The problem is caused by tags without body or children like <owner_include
multiple="1"/>.

I think we should not return undef without throwing an error.

Regards
Racke

>
> XML template file: prune.xml:
>
> <?xml version='1.0' ?>
> <list>
> <listname>prune</listname>
> <subject>Prunes à l Université</subject>
> <description>aaa</description>
> <status>open</status>
> <send>newsletter</send>
> <shared_edit>editor</shared_edit>
> <language>fr</language>
> <owner multiple="1">
> <email>address@concealed</email>
> <gecos>Jacques Tissot</gecos>
> </owner>
> <owner_include multiple="1"/>
> <editor_include multiple="1"/>
> <topics>computing/DIT</topics>
> </list>
>
> AND config.tt2 file (extract):
>
> ..
> [% IF owner_include -%]
> owner_include
> source include_file
> reception mail
> visibility noconceal
> source_parameters /mnt/shared/indigo/[% listname %]/owners.txt
> [% END %]
>
> [% IF editor_include -%]
> editor_include
> source include_file
> reception mail
> visibility noconceal
> source_parameters /mnt/shared/indigo/[% listname %]/moderators.txt
> [% END %]
> ..
>
>
> This was good running under version 6.1. The problem seems to be with
> editor/owner_include part.
>
>
> Thank you for help
>
> J. Tissot
> ----------------------------------------------------------------------
> Jacques Tissot
> University of Fribourg - SWITZERLAND
> ----------------------------------------------------------------------
>
>
>


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.



Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.19+.

Top of Page