Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.4.1
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce on a XEM 4.4.1:
- attach a file with a long name to a wiki page but make sure its length < 255; the name of the attachment should contain blank spaces, special characters for instance "Erreur connue - éééé ùùùùùùùùùùùùù dans èèèèèè et AxiAM ààààààààààààààààààààà gjhdghjdghf.msg"
- in the history tab the summary should look like
"Ajout du fichier <a href="/xwiki/wiki/projects/downloadrev/SomeLongSpaceName/SomeEvenLongerPageName/Erreur+connue+-+%C3%A9%C3%A9%C3%A9%C3%A9+%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9%C3%B9+dans+%C3%A8%C3%A8%C3%A8%C3%A8%C3%A8%C3%A8+et+AxiAM+%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0%C3%A0+gjhdghjdghf.msg?rev=1.1">Erreur+connue+-+éééé+ùùùùùùùùùùùùù+dans+èèèèèè+et+AxiAM+ààààààààààààààààààààà+gjhdghjdghf.msg</a>"
So the final comment has more than the maximum allowed value which is 255 and if you try to copy this page to another sub-wiki or to import and export it with history, you will get
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'XWR_COMMENT' at row 1
.
Maybe we could trim the comment in such cases?
Attachments
Issue Links
- is duplicated by
-
XWIKI-9635 When adding an annotation don't include the annotated text in the save summary
- Closed
- is related to
-
XWIKI-9635 When adding an annotation don't include the annotated text in the save summary
- Closed
- relates to
-
XWIKI-9637 Migrator to change column size for XWR_COMMENT DB to support comments longer than 768 characters
- Open
-
XNSUPPORT-500 Loading...