[Deploying Sakai] problem downloading file from Resources which Chinese characters in filename

Steve Swinsburg steve.swinsburg at gmail.com
Mon Oct 31 15:04:03 PDT 2011


[Replied to wrong thread, here is is again]

The nightly servers have also had the utf-8 setting added to the connector (Thanks Chris) and I can confirm that nightly trunk correctly uploads and presents a URL to the file in Chinese characters. The only issue is that on download the file name becomes the escape codes.

ie

素菜汤水.xls

becomes:

%E7%B4%A0%E8%8F%9C%E6%B1%A4%E6%B0%B4.xls

I've filed this as https://jira.sakaiproject.org/browse/SAK-21344

regards,
Steve


On 01/11/2011, at 5:19 AM, Maurer, Christopher Wayne wrote:

> I changed the settings.xml file for the tomcat7 nightly build and it should be in play now.  Feel free to verify that it works.
> 
> Chris
> 
> From: Chris Maurer <chmaurer at iupui.edu>
> Date: Mon, 31 Oct 2011 12:48:31 +0000
> To: Matthew Jones <jonespm at umich.edu>, Steve Swinsburg <steve.swinsburg at gmail.com>
> Cc: wendy lee <lhh at mail.sysu.edu.cn>, production List <production at collab.sakaiproject.org>, "i18n at collab.sakaiproject.org" <i18n at collab.sakaiproject.org>, Sakai Developers <sakai-dev at collab.sakaiproject.org>
> Subject: Re: [Deploying Sakai] problem downloading file from Resources which Chinese characters in filename
> 
> Probably right.  I created https://jira.sakaiproject.org/browse/INFRSTR-63 to track it for the nightly instance and will check on that today.
> 
> Chris
> 
> From: Matthew Jones <jonespm at umich.edu>
> Date: Sun, 30 Oct 2011 21:54:17 -0400
> To: Steve Swinsburg <steve.swinsburg at gmail.com>
> Cc: wendy lee <lhh at mail.sysu.edu.cn>, production List <production at collab.sakaiproject.org>, <i18n at collab.sakaiproject.org>, Sakai Developers <sakai-dev at collab.sakaiproject.org>
> Subject: Re: [Deploying Sakai] problem downloading file from Resources which Chinese characters in filename
> 
> Very likely it's just not configured correctly with the upgrade to Tomcat 7.
> 
> 2011/10/30 Steve Swinsburg <steve.swinsburg at gmail.com>
>> I've just noticed that nightly trunk is exhibiting the same issue (although nightly 2.8 is not). it may not be setup with UTF-8, or it might be a bug.
>> 
>> I've renamed this thread to track this issue, and CC'd in some other lists.
>> 
>> cheers,
>> Steve
>> 
>> 
>> On 31/10/2011, at 12:24 PM, wendy lee wrote:
>> 
>>> hi Steve,
>>>  
>>> Nothing is reported in catalina.out.
>>>  
>>> The url inside sakai resource is like this:
>>> http://202.116.96.80:8080/access/content/attachment/%E7%B4%A0%E8%8F%9C%E6%B1%A4%E6%B0%B4.doc
>>>  
>>> UI error is like:
>>> HTTP Status 404 -
>>> 
>>> type Status report
>>> message
>>> description The requested resource () is not available.
>>> Apache Tomcat/5.5.33
>>> 
>>> I try to input these urls directly into the IE,
>>> those like http://202.116.96.80:8080/access/content/attachment/1001440701001002.doc or http://202.116.96.80:8080/access/content/attachment/backuplist.db is work,
>>> yet those like http://202.116.96.80:8080/access/content/attachment/素菜汤水.doc orhttp://202.116.96.80:8080/access/content/attachment/%E7%B4%A0%E8%8F%9C%E6%B1%A4%E6%B0%B4.doc report 404 error. Nothing reports in catalina.out no matter what I input.
>>> wendy lee
>>>  
>>>  
>>> From: Steve Swinsburg
>>> Date: 2011-10-31 08:56
>>> To: wendy lee
>>> CC: production
>>> Subject: Re: [Deploying Sakai] problem with storing binary content on the filesystem
>>> Hi,
>>>  
>>> What is in the catalina.out log file when you get the error? (tomcat/logs/catalina.out)
>>>  
>>> cheers,
>>> Steve
>>>  
>>> On 31/10/2011, at 11:53 AM, wendy lee wrote:
>>>  
>>> > hi, all
>>> > 
>>> > I store binary content on the filesystem of CentOS. 
>>> > I can upload files with filename in chinese using Resources tool. Yet it reports "HTTP Status 404" when I clicked the files.  
>>> > If using files with english filename, they can be downloaded or read successfully. 
>>> > I use sakai2.8, centos6.0 and tomcat5.5.33. I have set chinese supported according to the release notes of 2.8 and chinese words are display correctly in IE. 
>>> > Why it happen? Thanks a lot!
>>> > 
>>> > --------------
>>> > wendy lee
>>> > 2011-10-28
>>> > _______________________________________________
>>> > production mailing list
>>> > production at collab.sakaiproject.org
>>> > http://collab.sakaiproject.org/mailman/listinfo/production
>>> > 
>>> > TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>> 
>> 
>> _______________________________________________
>> production mailing list
>> production at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/production
>> 
>> TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> 
> _______________________________________________ production mailing list production at collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/production TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> _______________________________________________ production mailing list production at collab.sakaiproject.org http://collab.sakaiproject.org/mailman/listinfo/production TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20111101/033edb96/attachment-0001.html 


More information about the production mailing list