Problem with attachments which contain a semicolon in the name

If an attachment with a semicolon in its name is created by mistake, it can neither be displayed nor deleted via the user interface. The error message always states that the attachment does not exist.

However, it can be easily deleted using a small program like

{{groovy}}
attName="test;test.txt"
theDoc=xwiki.getDocument(doc.fullName)
theAtt=theDoc.getAttachment(attName)
theDoc.getDocument().removeAttachment(theAtt.attachment, false)
theDoc.save()
{{/groovy}}

Is there somewhere to configure which characters are allowed in the names?

Thanks
Norbert

No we don’t have this ATM, everything is allowed and is supposed to work.

Open jiras that are related:

You should open a bug issue on jira.xwiki.org for this as it’s supposed to work.

Thanks

2 Likes