https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44272 --- Comment #8 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 212583 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212583&action=edit Bug 44272: Add Cypress tests for readable links to uploads Files are uploaded through Tools > Upload, in an UPLOAD category created for the tests, and the links are requested from the OPAC. Links by hashvalue and filename: - Tools > Upload shows the readable link - a public upload is served by its readable link and by ?id= - a wrong, missing or extra part in the link is a 404 - an upload that is not public is never served Link names (slugs): - a public upload is served by its link name, exactly (case, trailing slash and extra parts are a 404) - the cataloguing plugin's Choose button uses the link name, and the plugin does not offer to change it - a non-public upload is not served by its link name - invalid link names are refused (dot, space, leading dash, hashvalue) - a link name used by another upload is refused - emptying the link name removes it Released link names: - only staff with upload_manage can reuse a link name released by a deleted upload - the upload that released a link name can take it back Everything is removed afterwards. Koha leaves the empty CYPRESS directory it created in upload_path, as it does for every category. The staff member is created with insertSampleStaff and cy.loginAs, from bug 44270. Test plan: npx cypress run --spec t/cypress/integration/Tools/UploadReadableLinks_spec.ts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.