[Building Sakai] [Assignment tool ] Zip upload/download does not format special character properly

David Horwitz david.horwitz at uct.ac.za
Tue Apr 16 00:25:55 PDT 2013


I believe this is a problem with the Java zip library and effects most places zips are created. There was talk about testing an apache commons linbrary a while back but no on eto do the work.

D

On Mon, 2013-04-15 at 18:08 -0400, Sam Ottenhoff wrote:
Is your bug this JIRA?  Or is it a new bug?


https://jira.sakaiproject.org/browse/SAK-20556


Also, if you have a fix for a genuine bug, there is no reason it needs to be only available via a special property.  Not preserving UTF-8 characters is considered a core bug that needs to be fixed.  We're happy to use good libraries, with liberal licenses, to perform actions correctly.


--Sam





On Mon, Apr 15, 2013 at 5:55 PM, Cyril Mace <cyril.mace at hec.ca<mailto:cyril.mace at hec.ca>> wrote:
Hello,

On our Sakai 2.8.1 instance we were having problems with Download All/Upload All feature of Assignment tool when using special characters.

For example:

1) A student submit an assignment including a file named mon_résultat.txt
2) The instructor  downloads all the submissions of the assignment => the file name will be changed to mon_resultat.txt within the bulk_download.zip archive.
3) The instructor update the content of the comment.txt file and write a comment with special characters (éééééé), then zip it to use the "Upload All" feature => the ééé are replaced by ������  characters in the comments area.

Has anyone experienced this problem?
We solved it by using the org.apache.tools.zip library instead of the native java.util.zip one and are thinking about doing the same for our 2.9.1 instance.
We could make the use of the apache library configurable through a sakai property and submit a patch if needed.

Thanks for reading,


--
[cid:part1.07020103.01020202 at hec.ca]<http://www.hec.ca>

        Cyril Mace Analyste-Programmer Direction des technologies de l'information
[hec.ca]<http://www.hec.ca>
[Agréments]     3000, chemin de la Côte‑Sainte‑Catherine, Montréal (Québec) H3T 2A7 Téléphone : 514 340-6000, poste 2199 



[recyclez]              Pensons à l'environnement avant d'imprimer


_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"




_______________________________________________
sakai-dev mailing list
sakai-dev at collab.sakaiproject.org<mailto:sakai-dev at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org<mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"


________________________________
UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/9a47bc7d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Feuille_25px.jpg
Type: image/jpeg
Size: 20493 bytes
Desc: Feuille_25px.jpg
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/9a47bc7d/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3A-2008.png
Type: image/png
Size: 5127 bytes
Desc: 3A-2008.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/9a47bc7d/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hecca.png
Type: image/png
Size: 345 bytes
Desc: hecca.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/9a47bc7d/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HEC_149px.png
Type: image/png
Size: 4883 bytes
Desc: HEC_149px.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130416/9a47bc7d/attachment-0002.png 


More information about the sakai-dev mailing list