Enhance validation of Amazon-hosted cover scans. As per Dirk Stoecker, the valid URL formats for Amazon-hosted images are:
New Amazon format:
Old Amazon format:
The proposed regexes are:
/images/[PIG]/[0-9A-Za-z+-]{10}[LS]?(\._CR[0-9]+,[0-9]+,[0-9]+,[0-9]+)?\.(gif|png|jpg)$
and
\.images-amazon\.com/images/G/0[1-3]/ciu/[0-9a-f]{2}/[0-9a-f]{2}/[0-9a-f]{22,24}\.L\.(gif|png|jpg)$
A "diff" patch file is attached.
Anonymous
Note: Somehow the mail I sent contained not the last one, but the diff which still contains the debug text: " + value.replace('%2B','+')" in the warning="" line must be removed. I though the mail program always sends the last version when I overwrite the file. Seems not.
Part 1 - Cleanup report:
Installed in SVN 413 on 2019-05-10. Keeping the FR open since we still need to enhance the post-submission warning.
Part 2 - Post-submission warnings:
common/viewers.py
Installed in SVN 415 on 2019-05-11. Closing the FR.
Re-opening the FR in order to disallow 13-character fragments in image URLs.
Part 3 - Disallow 13-character URL fragments:
Installed in SVN 417 on 2019-05-13. Re-closing the FR.