Skip to content

🪲: 404 Error if list short name contains "/" #109

@listerr

Description

@listerr

What happened?

I created a list called "admins/postmaster".

List is created ok. But if you try to edit it, stalwart throws a 404 error.

Looks like it tries to load a URL like:

https://my.server.net:8443/manage/directory/lists/admins/postmaster/edit

but the "admins/postmaster" part is breaking the URL.

Either the "/" needs to be URL encoded like this:

https://my.server.net:8443/manage/directory/lists/admins%2Fpostmaster/edit

Or some input validation to only accept url-friendly characters (e.g. 0-9 A-Z a-z -_ ) - but this might not work well with
other character sets/non-ascii characters.

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

  1. Create a new mailing list with "/" in the name
  2. Try to edit it

Version

v0.13.x

What database are you using?

RocksDB

What blob storage are you using?

Filesystem

Where is your directory located?

Internal

What operating system are you using?

Linux

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions