Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
14.5
-
None
-
None
-
Unknown
-
Description
Hi team!
Using 14.5 and got strange behaviour: try to attach file to the page while editing page with ckeditor and see, that file stored twice in persistent storage in server filesystem:
xwiki:/data/xwiki/data/store/file/xwiki/9/e/840ff55e9386ee2aa2b5e993a03f5b/attachments/e/3/d80b161b06ffe2881e04ff7df02f66 # ls -la
total 36
drwxr-xr-x 2 tomcat tomcat 57 Aug 23 13:41 .
drwxr-xr-x 3 tomcat tomcat 44 Aug 23 13:41 ..
rw-rr- 1 tomcat tomcat 14753 Aug 23 13:41 f.txt
rw-rr- 1 tomcat tomcat 14753 Aug 23 13:41 fv1.1.txt
rw-rr- 1 tomcat tomcat 350 Aug 23 13:41 ~METADATA.xml
xwiki:/data/xwiki/data/store/file/xwiki/9/e/840ff55e9386ee2aa2b5e993a03f5b/attachments/e/3/d80b161b06ffe2881e04ff7df02f66 # cat ~METADATA.xml
<?xml version="1.0" encoding="UTF-8"?>
<attachment-list serializer="attachment-list-meta/1.0">
{{ <attachment serializer="attachment-meta/1.0">}}
{{ <filename>WhatsNew.txt</filename>}}
{{ <filesize>14753</filesize>}}
{{ <author>XWiki.kuchinva</author>}}
{{ <version>1.1</version>}}
{{ <comment></comment>}}
{{ <date>1661251272000</date>}}
{{ </attachment>}}
</attachment-list>
xwiki:/data/xwiki/data/store/file/xwiki/9/e/840ff55e9386ee2aa2b5e993a03f5b/attachments/e/3/d80b161b06ffe2881e04ff7df02f66 # md5sum f.txt fv1.1.txt
3a16ba5811907778687f655217868f5b f.txt
3a16ba5811907778687f655217868f5b fv1.1.txt
Why same version stored twice? I think this is a bug.
Regards, Vadim
Attachments
Issue Links
- duplicates
-
XWIKI-17457 Filesystem attachments versioning ends up storing 2 copies of the latest version
- Closed