Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
3.5, 4.0, 4.1, 4.2-milestone-1
-
None
-
Unknown
-
Description
com.xpn.xwiki.doc.XWikiAttachment changes the filename from the given name that should be already URL decoded:
filename.replaceAll("
+", " ");
The filename should be already url decoded by this point, so this substitution should not be needed.
public void setFilename(String filename) { filename = filename.replaceAll("\\+", " "); if (!filename.equals(this.filename)) { setMetaDataDirty(true); this.filename = filename; } this.reference = null; }
Attachments
Issue Links
- duplicates
-
XWIKI-7835 Webdav uploading an attachment with + character in filename fails leaving duplicate attachments in hibernate session.
-
- Closed
-