cancel
Showing results for 
Search instead for 
Did you mean: 

Guest Download Servlet

jjf
Champ in-the-making
Champ in-the-making
I have a space which I want anonymous users to have read access to, so  I've added the guest account to the space as a Consumer.  This works fine with CIFS and the mapUnknownUserToGuest file system param. 

When I try accessing files in the space via web link:

http://localhost:8080/alfresco/download/direct/workspace/SpacesStore/7c8b1d88-aa66-11dc-a6e6-2f47cea...

I get redirect to the login page.  I check the log which shows:

WARN  [org.alfresco.web.app.servlet.AuthenticationHelper] Unable to login as Guest: Access Denied.  You do not have the appropriate permissions to perform this operation.

I've added guest=true as an arugment and tried the guestDownload servlet.  It's pretty much an out of the box deployment, so I can't see what would cause the issue.  Any ideas?
12 REPLIES 12

kevinr
Star Contributor
Star Contributor
I am running on Weblogic 9.2.

is the information i needed Smiley Happy

Weblogic has a built-in version of Rhino JAR which is conflicting with the one we supply with Alfresco.

See the instructions here: http://wiki.alfresco.com/wiki/Install_BEA_Weblogic steps 6/7.

Kevin

jjf
Champ in-the-making
Champ in-the-making
Ah ha.  That makes sense.  Thanks for the info/help, Kevin.

jjf
Champ in-the-making
Champ in-the-making
I was able to fix the issue.  After granting authority to the Guest user, the download servlet now works!  Thanks for the help.

On a somewhat related note, when a user tries to access a file as Guest, and Guest does not have permission to view, it sends the user to Guest Home in the web client.  Is there a way to display an error message "Access denied." instead of forwarding to Guest Home?  I am going to start looking in the source to see if I need to write an aspect or something.  Is there a better way to do this?