[Building Sakai] KNL-66 bug

D. Stuart Freeman stuart.freeman at et.gatech.edu
Wed Jul 15 13:06:07 PDT 2009


I just took a quick look at it and posted a patch to the JIRA.  It should
stop the IndexOutOfBounds and make FormattedText.processFormattedText()
behave as expected when an HTML tag is left without a closing brace.
However, if it's being used on unescaped text get ready for it to wrap
the text up in crazy ways, as it's not designed to do that.

On Wed, Jul 15, 2009 at 11:35:01AM -0700, Bryan Bakotich wrote:
> Hi all,
> 
> First off here is the url of the jira for the bug we are having problems
> with: http://jira.sakaiproject.org/browse/KNL-66
> 
> We have been having more problems with this bug lately when students are
> trying to submit an assessment. They get a stack trace if they have a
> '<' symbol in one of their short answer questions and are unable to
> submit. We are trying to find any sort of quick and dirty fix so that
> students don't ever get a stack trace when trying to submit.
> 
> What I tried doing is catching the StringIndexOutOfBoundsException and
> if it is caught call escapeHtml on the string and return. This seems to
> be working fine on a development server, but I wanted to know if I am
> overlooking a much bigger problem that this might cause. I have attached
> the patch, please let me know if this makes things worse of not. Thanks
> for the help.
> 
> -Bryan
> 
> -- 
> Bryan Bakotich
> Open Source Implementation Specialist
> Digital Media Center, Information & Technology Services
> Pacific Lutheran University
> Tacoma, WA 98447-0013
> Phone: 253-536-5021
> 


> _______________________________________________
> sakai-dev mailing list
> 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 with a subject of "unsubscribe"


-- 
D. Stuart Freeman
Georgia Institute of Technology
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090715/16026674/attachment.bin 


More information about the sakai-dev mailing list