Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1375

Problem with attachments which contain a semicolon in the name

$
0
0

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

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1375

Trending Articles