openzim / cms

ZIM file Publishing Platform
https://cms.openzim.org
GNU General Public License v3.0
4 stars 0 forks source link

Common constraint: filename format #9

Open kelson42 opened 3 years ago

kelson42 commented 3 years ago

Should match something like /^(.+?_)([a-z\-]{2,10}?_|)(.+_|)([\d]{4}|)\-([\d]{2})$/i

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

kelson42 commented 2 years ago

To avoid problems like https://github.com/kiwix/maintenance/issues/198

rgaudin commented 2 years ago

Given filename is not something we'll have control over, am I right to assume an invalid filename should prevent Book creation on the add_book endpoint?

kelson42 commented 2 years ago

I'm not 100% sure about the exact behaviour of the CMS in that case but what is sure is that:

rgaudin commented 2 years ago

OK, we'll discuss this again when working on M2 then.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.