Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
11.3-rc-1
-
None
-
Unknown
-
Description
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.
Attachments
Issue Links
- is related to
-
XWIKI-6686 Rollback occasionally fails to remove new attachments and replace with old.
- Open
-
XWIKI-15450 Browser cache for attachments is never invalidated (needs browser clear cache)
- Closed