Unable to remove non-member
Hi Everyone,
I ran across a strange issue today. A client reported the inability to remove a non-member in the following format:
z_email/domain.org.za@domain.org.za
The reported error from Postorius was:
"The user could not be removed"
I used https://verifalia.com/validate-email to validate the email address and it is syntactically correct.
-- Brian Carpenter Harmonylists.com Emwd.com
On 9/28/20 6:43 AM, Brian Carpenter wrote:
Hi Everyone,
I ran across a strange issue today. A client reported the inability to remove a non-member in the following format:
z_email/domain.org.za@domain.org.za
The reported error from Postorius was:
"The user could not be removed"
Is that all it said? The code says it is
The user could not be removed: <error message>
Where <error message> is the relevant HTTP error.
I used https://verifalia.com/validate-email to validate the email address and it is syntactically correct.
Mailman core thinks it's OK too as does RFC5322.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 9/29/20 12:40 AM, Mark Sapiro wrote:
Is that all it said? The code says it is
The user could not be removed: <error message>
Where <error message> is the relevant HTTP error.
It says:
The user could not be removed:
Nothing comes after the colon.
-- Brian Carpenter Harmonylists.com Emwd.com
On 9/29/20 4:54 AM, Brian Carpenter wrote:
On 9/29/20 12:40 AM, Mark Sapiro wrote:
Is that all it said? The code says it is
The user could not be removed: <error message>
Where <error message> is the relevant HTTP error.
It says:
The user could not be removed:
Nothing comes after the colon.
I see the issue. when mailmanclient processes the delete request from
Postorius it calls the REST API DELETE method with the URL
lists/<listname>/<role>/<address> and the address is quoted
with
urllib.parse.quote_plus, co in this case, the URL becomes
lists/<listname>/nonmember/z_email%2Fdomain.org.za@domain.org.za
This is all fine except the REST API doesn't call urllib.parse.unquote_plus to change the %2F back to slash. This is now reported at <https://gitlab.com/mailman/mailman/-/issues/774>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 9/29/20 1:18 PM, Mark Sapiro wrote:
I see the issue. when mailmanclient processes the delete request from Postorius it calls the REST API DELETE method with the URL lists/<listname>/<role>/<address> and the address is
quoted
with urllib.parse.quote_plus, co in this case, the URL becomes lists/<listname>/nonmember/z_email%2Fdomain.org.za@domain.org.zaThis is all fine except the REST API doesn't call urllib.parse.unquote_plus to change the %2F back to slash. This is now reported at<https://gitlab.com/mailman/mailman/-/issues/774>.
Thanks Mark!
-- Brian Carpenter Harmonylists.com Emwd.com
participants (2)
-
Brian Carpenter
-
Mark Sapiro