You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Claude Vedovini (JIRA)" <ji...@apache.org> on 2010/02/05 16:29:28 UTC
[jira] Created: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
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.
[jira] Assigned: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
Posted by "Eric Norman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman reassigned SLING-1356:
----------------------------------
Assignee: Eric Norman
> 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
> Components: Servlets
> Affects Versions: Servlets Post 2.0.4
> Reporter: Claude Vedovini
> Assignee: Eric Norman
>
> 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.
[jira] Updated: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
Posted by "Justin Edelson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Edelson updated SLING-1356:
----------------------------------
Affects Version/s: Servlets Post 2.0.4
(was: Launchpad Webapp 5)
> 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
> Components: Servlets
> Affects Versions: Servlets Post 2.0.4
> 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.
[jira] Commented: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
Posted by "Eric Norman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898795#action_12898795 ]
Eric Norman commented on SLING-1356:
------------------------------------
Hi Claude, I tried to reproduce this issue using the current trunk code and I could not reproduce the problem. Maybe the problem has been resolved already by some other fix. Can you try your use case against the current sling trunk?
Below is the output I received from sling when uploading a file using your supplied form:
Content created /sling/notes/1_1281936074718
Status 201
Message Created
Location /sling/notes/1_1281936074718
Parent Location /sling/notes
Path /sling/notes/1_1281936074718
ChangeLog
created("/sling/notes/1_1281936074718");
created("/sling/notes/1_1281936074718/attachments");
created("/sling/notes/1_1281936074718/attachments/avé_un_assent.jpg");
created("/sling/notes/1_1281936074718/attachments/avé_un_assent.jpg/jcr:content");
modified("/sling/notes/1_1281936074718/attachments/avé_un_assent.jpg/jcr:content/jcr:lastModified");
modified("/sling/notes/1_1281936074718/attachments/avé_un_assent.jpg/jcr:content/jcr:mimeType");
modified("/sling/notes/1_1281936074718/attachments/avé_un_assent.jpg/jcr:content/jcr:data");
modified("/sling/notes/1_1281936074718/created");
modified("/sling/notes/1_1281936074718/creator");
modified("/sling/notes/1_1281936074718/modified");
modified("/sling/notes/1_1281936074718/editor");
modified("/sling/notes/1_1281936074718/sling:resourceType");
> 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
> Components: Servlets
> Affects Versions: Servlets Post 2.0.4
> Reporter: Claude Vedovini
> Assignee: Eric Norman
>
> 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.
[jira] Resolved: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
Posted by "Eric Norman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman resolved SLING-1356.
--------------------------------
Resolution: Cannot Reproduce
I'm resolving this issue as "Cannot Reproduce". Please reopen if you are able to reproduce the problem with some additional test steps.
> 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
> Components: Servlets
> Affects Versions: Servlets Post 2.0.4
> Reporter: Claude Vedovini
> Assignee: Eric Norman
>
> 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.
[jira] Updated: (SLING-1356) Problem with non-ascii characters in
uploaded files filname
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated SLING-1356:
------------------------------------
Component/s: Servlets
> 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
> Components: Servlets
> 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.