Versioning is not correct in some parts of Files tab
Expected behavior
For each file the version should be increased by one, for all workflows every time a file with the same name is uploaded.
Current behavior
There are some case where the version is not updated correctly like in the book here, check images section. Same images where uploaded in bulk twice.
How to reproduce
This is an issue for all workflows for the sections Bookshelf Display PDFs (for xml/pdf wholebooks), Supplementary, Images and Support.
The issue is because the files during upload are compared with the extension. So in the example book the files ch4f1.png
and ch4f12.png
are similar. First time uploaded both will have v1.1, second time the file ch4f1.png
it will have version v1.3, because it counts how many times it finds the string ch4f1
in the files.
Example to upload in one for the sections:
- Upload files cer242-edited.pdf, cer242.pdf
- Upload again the file
cer242.pdf
, it will be a new version, for the first match that the string finds and the version number will be v1.3