click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-17735
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Chris Maurer
Reporter: Alan Berg
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Sakai

Test form zip file fails to import with unexpected MIME type

Created: 19-Jan-2010 01:16   Updated: 05-Mar-2010 06:13
Component/s: OSP: Forms
Affects Version/s: 2.7.0-b01
Fix Version/s: 2.7.0-b04

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. glossary.png
(15 kB)

2. Screenshot.png
(55 kB)
Environment:
Browser: Firefox 3.5.7 Ubuntu 9.10
Mozilla/5.0 (X11; U; Linux i686; en-US;
Server: qa3-us.sakaiproject.org
sakai-2.7.0-M2 QA on Oracle - Built: 12/14/09 10:10 - Sakai sakai-2.7.0-M2
Issue Links:
Depend
 

2.7.x Status: Closed
2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
Test form zip file fails to import while following instructions - ST.Script.04.Set-up+project+site

Could not import test zip file for forms on qa3-us. Please verify.

Further, if imported into project site there is no select option is this functionally correct? Please verify.

Hint: Notice that exported_reflection_form.zip is seen twice, once for a previous import in October. The icons are now different. Looks like a mime type issue.

Error Message: Alert: The file exported_reflection_form.zip did not match the filter type.

Site= Test Project Site.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Alan Berg added a comment - 19-Jan-2010 01:49
Glossary also has the same issue.

Ubuntu sees the zip files as zip files, so it appears to be a mime dectection issue on the Sakai side. (Can also unzip). See screengrab of zip icon under ubuntu.

Alan Berg added a comment - 19-Jan-2010 02:26
http://techblog.procurios.nl/k/news/view/15872/14863/Mimetype-corruption-in-Firefox.html

The issue is obviously corrupt mime type in Firefox and has no doubt handled this way for a long time. I can reproduce also on 2-5-X-QA (qa1-nl). The question is does OSP need to change its logic to deel with this portion of the Sakai population. Note: Firefox has 25% market share

http://marketshare.hitslink.com/browser-market-share.aspx?qprid=0

Erica Ackerman added a comment - 25-Jan-2010 11:28
Alan, could you clarify what you mean by "Further, if imported into project site, there is no select option". In the screenshot you included, there is something strange. There should be a "Remove" link next to the name of the file that you just uploaded (where it is listed at the top). That would allow you to select another file. Is that what you are talking about? The "Remove" link is present for me on qa3 in Firefox.

Alan Berg added a comment - 25-Jan-2010 23:42
Erica, the problem is associated with the mime type that filefox gives on uploading. This may vary between different firefox's (see link mentioned). When a file is not of a zip mime type, OSP refuses to consider it of the right format and then you do not get the select.

For a tester this is hard to pin down as there is variance. However, one thing is certain a percentage of the end users are affected as firefox has 25% of the market share.

The way I would consider cleaning up is two fold. The first is for the kernel code to be improved for this situation and the other is to consider the logic of the OSP code itself.

Noah Botimer added a comment - 08-Feb-2010 12:58
Alan: I see some comments on KNL-101. Are you aware of a plan to implement it? Also, have you formed an opinion on whether KNL-101 would resolve this issue or if it would require additional OSP changes?

Alan Berg added a comment - 08-Feb-2010 23:40
I have brought this up in the last Release Management Meeting and it is on the todo list. The problem for OSP is that it does not see the correct mime type for the format and chooses to ignore the package as incorrect. You should decide if you want the OSP code to try harder. This issue will affect Firefox users and I have been told some OS's in general (Mac ??).

Chris Maurer added a comment - 23-Feb-2010 10:26
r73991
Loosen the mime type restriction for the import files.

Bryan Holladay added a comment - 23-Feb-2010 13:52
r73999

Added a missing ")" that was causing trunk not to build

Anthony Whyte added a comment - 05-Mar-2010 06:11 - edited
2.7.x, r74258 and 74261.