Problem with non-ascii characters in uploaded files filname
-----------------------------------------------------------
Key: SLING-1356
URL: https://issues.apache.org/jira/browse/SLING-1356
Project: Sling
Issue Type: Bug
Affects Versions: Launchpad Webapp 5
Reporter: Claude Vedovini
I use a simple form to upload files into Sling, such as this one:
<code>
<form enctype="multipart/form-data" action="/sling/notes/*" method="POST">
<textarea rows="5" cols="40" name="text"></textarea>
<label>Pièce jointe:</label>
<input type="file" name="attachments/*"
class="input-text">
<input type="hidden" value="2010-02-05T16:08:06"
name="created">
<input type="hidden" value="esg" name="creator">
<input type="hidden" value="2010-02-05T16:08:06"
name="modified">
<input type="hidden" value="esg" name="editor">
<input type="hidden" value="esg/notes"
name="sling:resourceType">
<input type="submit" value="envoyer"
class="form-button">
</form>
</code>
Everything works fine, but when the filename contains non-ascii characters the
name of the node ends up wrong.
Example:
In the file upload input field I specify a file which name is
"avé_un_assent.jpg"
The sling node ends up being:
/sling/content/notes/2_1265383081005/attachments/avé_un_assent.jpg
where it should be
/sling/content/notes/2_1265383081005/attachments/avé_un_assent.jpg (or
/sling/content/notes/2_1265383081005/attachments/av%C3%A9_un_assent.jpg)
Using esp script the Node.getName() method also return an incorrect name
I verified content headers (sent and returned) and the content encodings are
properly set to utf-8
Thanks for your help
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.