Changes for page Attachments

Last modified by Thomas Mortagne on 2023/10/10

<
From version < 9.2 >
edited by Vincent Massol
on 2012/02/21
To version < 9.3 >
edited by ataran
on 2012/03/19
>
Change comment: Added comment

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.ataran
XWiki.XWikiComments[0]
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.ataran
Comment
... ... @@ -1,0 +1,16 @@
1 +Hi there.
2 +I found a strange bug with xwiki, I believe it is something todo with encoding.
3 +Can you help me fix it?
4 +
5 +Prerequisites:
6 +I am using a Standalone installation including a Jetty container and an HSQLDB on Windows 7 with Russian language included.
7 +I have set up Attachment Storage to filesystem.
8 +
9 +Problem:
10 +When I create a page and name it in Russian language and attach any file to that page,
11 +then xwiki, according to its logic, creates a directory containing that file with all revisions.
12 +1) The first problem here is that xwiki creates directories using UTF8 encoding and Windows does not support that AFAIK.
13 +So in my example directory will look like: "%D0%A2%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%B0%D1%8F+%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%87%D0%BA%D0%B0+%D0%B0%D1%82%D1%82%D0%B0%D1%87%D0%B5%D0%B9" instead of '???????? ????????? ???????'.
14 +I believe it is wrong.
15 +2) The second problem is that Windows has a restriction of 255 chars for filename and thus if I create a page with long enough name in Russian I will not be able even to open that directory (or do backups, etc).
16 +
Date
... ... @@ -1,0 +1,1 @@
1 +2012-03-19 19:31:51.276

Get Connected