Explore the community Forums Lectora Lectora Suggestions trivantis-cookie.js fix

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #345900 Score: 1
    Profile photo of approg
    approg
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    friend finder
    picture perfect
    12 pts
    @approg

    I’m not sure if I’ve already posted this and it got lost or if I thought about it but never posted it.

    Anyhow there a bug in trivantis-cookie.js that affects SCORM titles that store suspend_data and the names of pages in the titles include characters that are not web safe. You get this error displayed “Some of the persistent data was not able to be stored”.

    The bug has been around at least since version 11 and it occurs because there’s a comparison made between encoded and decoded text (instead of both being decoded).

    In version 17, at line 878 change

    if( chkdata.length < newData.length ) {
    bErr = true;
    }

    to

    if( chkdata.length < newData.length ) {
    if (chkdata != Decode(newData)) {
    bErr = true;
    }
    }

    As far as my testing goes, it doesn’t break anything.

    This post has received 1 vote up.
    #345999 Score: 0
    Profile photo of Jennifer Valley
    Jennifer Valley
    Moderator
    contributor
    beginner
    friend finder
    advanced
    lectora beginner
    verified member
    wise owl
    profile
    picture perfect
    curious george
    106 pts
    @jvalley4735

    I’ve brought the issue with development and they’ll look at implementing a fix.  Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.