Test missing in lists_lists leading to wrong listing when using -V option

Bug #1695610 reported by Laurent Declercq on 2017-06-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Low
Mark Sapiro
mailman (Debian)
New
Undecided
Unassigned
mailman (Ubuntu)
Undecided
Unassigned

Bug Description

Dear project leader,

When we list the lists for specific virtualhost, a wrong result can be printed-out in the following condition:

Let's say we have somme lists hosted on bbox.nuxwin.com virtualhost and other lists on the lists.bbox.nuxwin.com virtualhost. Then, when running list_lists as follow:

list_lists -b -V bbox.nuxwin.com

We get also the lists names from the lists.bbox.nuxwin.com virtualhost which is an unexpected behavior.

This is due to the fact that you're using find() only.

Real use case:

# Expected result:
root@devuan:~# /usr/lib/mailman/bin/list_lists -b -V lists.bbox.nuxwin.com
foo
bar

# Unexpected result:
root@devuan:~# /usr/lib/mailman/bin/list_lists -b -V bbox.nuxwin.com
foo
bar

# Unexpected result:
root@devuan:~# /usr/lib/mailman/bin/list_lists -b -V nuxwin.com
foo
bar

# Unexpected result:
root@devuan:~# /usr/lib/mailman/bin/list_lists -b -V com
foo
bar

# Unexpected result:
root@devuan:~# /usr/lib/mailman/bin/list_lists -b -V m
foo
bar

Thank you.

Related branches

description: updated
description: updated
Mark Sapiro (msapiro) on 2017-06-03
Changed in mailman:
assignee: nobody → Mark Sapiro (msapiro)
importance: Undecided → Low
milestone: none → 2.1.25
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers