Comment 0 for bug 1695610

Revision history for this message
Laurent Declercq (l-declercq) wrote :

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 domain 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# /usr/lib/mailman/bin/list_lists -b -V lists.bbox.nuxwin.com
foobar
release

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

# Unexpected result:
root@devuan:/usr/lib/mailman/bin# /usr/lib/mailman/bin/list_lists -b -V nuxwin.com
foobar
mailman
release

# Unexpected result:
root@devuan:/usr/lib/mailman/bin# /usr/lib/mailman/bin/list_lists -b -V com
foobar
mailman
release

# Unexpected result:
root@devuan:/usr/lib/mailman/bin# /usr/lib/mailman/bin/list_lists -b -V m
foobar
mailman
release

Thank you.