[Building Sakai] Turnitin problems

John Bush jbush at anisakai.com
Mon Oct 28 15:13:36 PDT 2013


I think we've made some headway on this today.  We've been seeing this
a lot.  We tracked one problem down due to the use of "&" in the
assignment title.  It appears that the createAssignment code is
replacing these with "n", but the job processor is not.  So when it
tries to find assignments it can't find a match.

My understanding from TII and some googling is that other characters
cause issue as well.  I don't have access to the api docs to know if
this is documented there.

Some more info:

http://blogs.luc.edu/sakaisys/2013/07/19/turn-it-in-avoid-special-characters-in-assignment-titles-and-submissions/

In code...

/* TODO SWG
* I'm not sure why this is encoding n's to & rather than just
* encoding all parameters using urlencode, but I'm hesitant to change
* without more knowledge to avoid introducing bugs with pre-existing
* data.
*/
String assignEnc = assign;
try {
if (assign.contains("&")) {
//log.debug("replacing & in assingment title");
assign = assign.replace('&', 'n');
}
assignEnc = assign;
log.debug("Assign title is " + assignEnc);
}
catch (Exception e) {
e.printStackTrace();
}

On Mon, Sep 2, 2013 at 9:55 AM, Adam Marshall <adam.marshall at it.ox.ac.uk> wrote:
> I seem to have lost the post about "206" errors with the content review integration. That is somewhat typical of me!
>
> FWIW, we've just started seeing new Turnitin exceptions. I have no idea whether it is related but thought I'd mention it.
>
> Adam
>
>
> TransientSubmissionException
>
> IOException making turnitin call.
>
>     org.sakaiproject.turnitin.util.TurnitinAPIUtil in callTurnitinReturnInputStream at line 418 (application)
>
>     Caused by: java.net.ConnectException ("Connection timed out") (application)
>
>     org.sakaiproject.turnitin.util.TurnitinAPIUtil in callTurnitinReturnInputStream at line 333 (application)
>
>     org.sakaiproject.turnitin.util.TurnitinAPIUtil in callTurnitinReturnMap at line 186 (application)
>
>     org.sakaiproject.contentreview.impl.turnitin.TurnitinAccountConnection in callTurnitinReturnMap at line 358 (application)
>
>     org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl in checkForReportsBulk at line 1797 (application)
>
>     org.sakaiproject.contentreview.impl.turnitin.TurnitinReviewServiceImpl in checkForReports at line 1688 (application)
>
>     org.sakaiproject.component.app.scheduler.jobs.ContentReviewReports in execute at line 22 (application)
>
>     org.sakaiproject.component.app.scheduler.jobs.SpringStatefulJobBeanWrapper in execute at line 20 (application)
>
>     org.quartz.core.JobRunShell in run at line 202 (application)
>
>     org.quartz.simpl.SimpleThreadPool$WorkerThread in run at line 534 (application)
>
>
> --
> Dr A C Marshall, WebLearn Service Manager, University of Oxford.
> IT Services, 13 Banbury Rd, Oxford. OX2 6NN.
>
>
>
> _______________________________________________
> 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"



-- 
John Bush
602-490-0470

** This message is neither private nor confidential in fact the US
government is storing it in a warehouse located in Utah for future
data mining use cases should they arise. **


More information about the sakai-dev mailing list