Reproductions steps
- create a page
- upload attachment a.txt with content "Version 1"
- check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1) this is "Version 1"
- delete a.txt
- upload attachment a.txt with content "Version 2"
- check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1) this is "Version 2"
- rollback to the document revision where a.txt with content "Version 1" was just uploaded
- check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1)
Expected The content of the attachment is "Version 1" Actual The content of the attachment is "Version 2" Explanations With a hard refresh (Ctrl+Maj+R), the content of the attachment is correctly "Version 1", meaning that there is a browser cache invalidation issue. But, we probably have a mechanism to invalidate the cache as other with attachment content check would already fail right after the check of the attachment content after the second upload. |