Uploading a binary file as text leads to broken OAI-PMH XML

Bug #456037 reported by Kit Blake
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Document Library
New
Undecided
Unassigned

Bug Description

Authors can mistakenly upload a binary file into the 'plain text' file upload field. The binary is then included into the OAI-PMH xml, which results in broken xml and an invalid feed. We need to validate the input of this field. We'll detect the mime-type and if it's not text, return a message saying "The file selected in the plain text field does not appear to be a text file. Please check this and try again."

Tags: improve
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.