Forum LAMS for Tech-Heads - General Forum: permissions issues in LAMS 2.02


 
You may request notification for permissions issues in LAMS 2.02.
Search: 

1: permissions issues in LAMS 2.02
05/22/07 10:34 PM
[ Reply | Forward ]
Hi all,

had a really weird one in a sequnece I'm running: I want my learneres to download and view a (DeathBy)PowerPoint tutorial. The first attached image shows the page with the (DeathBy)PowerPoint link. The next image shows the error learners get. As the administrator, I don't get the message and my sequence runs properly. I have logged into the sequence as a student from an computer administrator's account (to see that it wasn't a permissions issue with our student's pc login accounts), and I still got the same error. Any ideas?

OS = XP
Browsers = FF2, IE7

Posted by Matthew Topp

Attachments:
2: Re: permissions issues in LAMS 2.02
In response to 1 05/22/07 10:37 PM
[ Reply | Forward ]
here is the second image

btw: the logs files belong to a different disaster in LAMS that was sorted...

Posted by Matthew Topp

Attachments:
3: Re: Re: permissions issues in LAMS 2.02
In response to 2 05/22/07 10:48 PM
[ Reply | Forward ]
Matt,

Firstly, 10 out of 10 for supplying all the information on browser, os, LAMS version, etc. :->

Secondly, I think you have found a bug. :-<

We've had something very similar to this in shared resources - I suspect it a couple of lines missing from a web.xml file. I'll check and get back to you.

Fiona

Posted by Fiona Malikoff

4: Re: permissions issues in LAMS 2.02
In response to 1 05/22/07 11:06 PM
[ Reply | Forward ]
Good, I'm not going insane. I ran a very similar sequence in 2.0 (at the end of last year) and the download happened well. Should I downgrade my server to version 2.0? Or is 2.03 coming quickly?

Thanks again,

Matt.

Posted by Matthew Topp

5: Re: Re: permissions issues in LAMS 2.02
In response to 4 05/23/07 01:21 AM
[ Reply | Forward ]
2.0 had the same bug in it, so rolling back would be a BAD idea.

I'm not sure why it worked last year. The problem only occurs if the user is a Learner in ALL courses - if they are an Author or some other privilege in another course then you won't see the problem.

It will be fixed in 2.0.3 (I've already checked in the change) but I can't promise 2.0.3 in the next week, so you need a work around.

Option (1) Create a new course and put all of your learners in that course and give them authoring or monitoring rights. Now they'll work. As they have the more powerful rights in a different course, they can't do any "damage" to the proper course. Mind you, they will wonder about the new buttons on the screen. Then your sequence should work.

Option (2) Fix the actual bug! You can do this if you are comfortable unzipping and rezipping .war files. Be very careful - if you get it wrong LAMS won't start.

* Shutdown LAMS / JBOSS.
* Go to the lams.ear directory in jboss.
* Copy the lams-tool-larsrc11.war to somewhere else as a backup, in case you don't make the change correctly and need to rollback the change.
* Unzip lams-tool-lafrum11.war to a temporary directory.
* Edit the file WEB-INF\web.xml.
* Find the entry for "Download Files" and change it to this:
    <security-constraint>
          <web-resource-collection>
            <web-resource-name>Download Files</web-resource-name>
            <url-pattern>/download/</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>LEARNER</role-name>
            <role-name>AUTHOR</role-name>
            <role-name>MONITOR</role-name>
            <role-name>TEACHER</role-name>
            <role-name>ADMIN</role-name>
            <role-name>AUTHOR ADMIN</role-name>
            <role-name>SYSADMIN</role-name>
        </auth-constraint>
    </security-constraint>

You will need to add the line <role-name>LEARNER</role-name>

* Rezip up the directory, calling it lams-tool-lafrum11.war. Make sure you don't accidentally get an extra folder in the lams-tool-lafrum11.war file - that will cause an error when JBOSS starts up.
* Start JBOSS/LAMS. The problem should now be fixed.

Fiona

Posted by Fiona Malikoff

6: Re: permissions issues in LAMS 2.02
In response to 1 05/23/07 04:36 PM
[ Reply | Forward ]
Thanks Fiona,

Works a dream! Let's have 2.03... I can't code to save myself!

Matt.

Posted by Matthew Topp

7: Re: Re: permissions issues in LAMS 2.02
In response to 6 05/25/07 12:57 AM
[ Reply | Forward ]
Hi Matt,

2.0.3 should be out by next Friday if everything goes according to plan. Big testing week ahead, but we should be alright. We'll let people know as the week progresses.

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum