Skip to content
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

Error message "Use of uninitialized value $2" while instancing family lists #749

Closed
jhb2 opened this issue Sep 12, 2019 · 5 comments · Fixed by #752
Closed

Error message "Use of uninitialized value $2" while instancing family lists #749

jhb2 opened this issue Sep 12, 2019 · 5 comments · Fixed by #752
Labels
Milestone

Comments

@jhb2
Copy link

jhb2 commented Sep 12, 2019

When instancing many lists (students lists) using families from an XML file, each instantiation return an error message like this one :
Creating lists: 71% [==]0m50s Left
Use of uninitialized value $2 in int at /home/sympa/bin/Sympa/Datasource.pm line 109.
Use of uninitialized value $4 in int at /home/sympa/bin/Sympa/Datasource.pm line 110.
Use of uninitialized value $2 in int at /home/sympa/bin/Sympa/Datasource.pm line 109.
Use of uninitialized value $4 in int at /home/sympa/bin/Sympa/Datasource.pm line 110.
List "etuqesi1e" (339/471) created/updated

Version

6.2.40

Installation method

Source package

Expected behavior

Error message should disapear

Actual behavior

Error message are shown, don't know whats incorrect in list creation

Additional information

Here is an example of xml use to instanciate one list

etuQESI1E 1ere annee Ing agroalim E (ESIAB Quimper) Liste des etudiants de : 1ere annee Ing agroalim E 1ere annee Ing agroalim E (cn=2019QESI1E)
@racke
Copy link
Contributor

racke commented Sep 12, 2019

The example XML appears as plain text, can you please wrap it as code so it displays properly?

@jhb2
Copy link
Author

jhb2 commented Sep 12, 2019

Here is the new XML

<list>
<listname>etuQESI1E</listname>
<subject>1ere annee Ing agroalim E (ESIAB Quimper)</subject>
<description>Liste des etudiants de : 1ere annee Ing agroalim E</description>
<custom_subject>1ere annee Ing agroalim E</custom_subject>
<ldap>
<filter>(cn=2019QESI1E)</filter>
</ldap>
</list>

@ikedas ikedas added bug ready A PR is waiting to be merged. Close to be solved labels Sep 16, 2019
@ikedas ikedas added this to the 6.2.46 milestone Sep 16, 2019
@ikedas
Copy link
Member

ikedas commented Sep 16, 2019

@jhb2, could you please check this patch?

(Note that, on recent beta, Datasource.pm was renamed to DataSource.pm, but this change may be applicable to earlier releases.)

@jhb2
Copy link
Author

jhb2 commented Sep 16, 2019

@ikedas

Fixed! perfect, thank you...

List "uestc2op" (1255/1366) created/updated
List "uestc2uo" (1256/1366) created/updated
List "uestc2uoc" (1257/1366) created/updated
Creating lists: 100% [======================

@jhb2 jhb2 closed this as completed Sep 16, 2019
ikedas added a commit that referenced this issue Sep 16, 2019
Error message "Use of uninitialized value $2" while instancing family lists (#749)
@ikedas ikedas removed the ready A PR is waiting to be merged. Close to be solved label Sep 16, 2019
@ikedas
Copy link
Member

ikedas commented Sep 16, 2019

Thanks for confirming fix! Fixes will be included in the next stable, 6.2.46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants