Only attempt to guess the file encoding of text or html file uploads

Description

This related to the regression here:

introduced code that attempts to guess the encoding of a Sakai resource.

This JIRA is a proposal to modify the code to only check the content type for file uploads. All content created in Sakai (e.g., in Resources -> New Text Document) should be UTF-8 as Sakai is a UTF-8 system.

Attachments

1

Activity

Show:

Anthony Whyte August 4, 2011 at 5:15 AM

1.1.x r96370.

Hudson CI Server March 10, 2011 at 3:06 AM

Integrated in kernel-trunk #276 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/276/)

David Horwitz March 10, 2011 at 1:56 AM

applied patch from Sam - thanks!

Sam Ottenhoff March 9, 2011 at 9:32 AM

Patch attached.

Sam Ottenhoff March 9, 2011 at 9:31 AM

Also, there is no reason to guess the file encoding of GIFs, ZIPs, etc. This is just wasted cycles and could be problematic in certain cases. Shouldn't we only be detecting file encoding for text and html file upploads?

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created March 9, 2011 at 9:12 AM
Updated April 25, 2018 at 3:19 PM
Resolved October 5, 2011 at 5:10 AM