[Building Sakai] portalscripts.js causing error on login page in 2.7.x

Bryan Bakotich bakotibj at plu.edu
Tue Oct 26 09:44:16 PDT 2010


Hi,

I just upgraded a dev server from 2.6.x to 2.7.x and now when you navigate
to the login page it keeps refreshing itself. We use the sakai property
gatewaySiteList to display two sites on the landing page instead of just the
gateway page.

The problem is being caused because portalscripts.js detects whether a user
is logged in or not by looking for the presence of the siteNav div. This div
exists when a user is not logged in because of the above property that we
are using. So some functions are being called that shouldn't be called
unless you are logged in.

Prior to 2.7 the only symptom of this bug was a timeout warning being
displayed even if you aren't logged in. In 2.7 there is an extra check in
the poll_session_data function that looks for a userId and if it is null
redirect to the loggedOutUrl. This is why the page keeps refreshing.

Is there a better check we can do to find out if a user is logged in or not?
For a temporary solution I can take out the extra check for a userId so we
at least get the same functionality as in 2.6, but it'd be nice to find a
real fix to the problem. 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101026/e4b806fc/attachment.html 


More information about the sakai-dev mailing list