OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Open access for Files Browser files.

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Open access for Files Browser files.

Postby Pinkerton » Thu Jan 15, 2009 3:33 pm

Hi there,

I have aw journal that is open to the public, so that nobody need login to read the issues. However graphics elements that are used in HTML-code added to the page is uploaded in the "Files Browser" and referenced with relative links.

But these images in the Files Browser are not available for non-logged in users. I can't find anywhere to regulate the access restrictions for arbitrary files in the Files Browser. How can I make these images (in a folder i created called images) visible for non-logged in users?

Furthermore, how can I keep pages where someone is logged in through https, but the open pages for users that don't log in through regular http?
Pinkerton
 
Posts: 7
Joined: Sat Jan 03, 2009 4:43 pm

Re: Open access for Files Browser files.

Postby jmacgreg » Fri Jan 16, 2009 1:01 am

HI Pinkerton,

There's no way you can upload publicly-accessible files by default: the Files Browser looks at only your private 'files' directory, which stores things like submission files etc. Public files are stored in your 'public' directory, which is not touched by the Files Browser.

If you want to use the Files Browser to upload publicly-accessible files, here are a couple of workarounds:

1. viewtopic.php?f=9&t=2747.
2. viewtopic.php?f=9&t=1254&p=3891

We may consider handling the 'public' folder differently in the future to provide easier access, but either of these solutions should suffice for now.

Cheers,
James
jmacgreg
 
Posts: 4183
Joined: Tue Feb 14, 2006 10:50 am

Re: Open access for Files Browser files.

Postby Pinkerton » Fri Jan 16, 2009 5:10 am

Right, I see.

The public directory will suffice. But I am just a journal manager, and haven't installed the system.

This means I only access stuff like the files browser. Can the public directory be access through the journal manager interface?

And about http and https - is there any configuration possible in OJS to make sure only logged in sessions are encrypted, or will this have to be done in Apache?
Pinkerton
 
Posts: 7
Joined: Sat Jan 03, 2009 4:43 pm

Re: Open access for Files Browser files.

Postby jmacgreg » Fri Jan 16, 2009 6:16 pm

HI Pinkerton,

To accomplish either of the two solutions I listed you'll have to have server/command line access. For ease' sake, I would suggest going with the second one that involves symbolically linking your 'public' dir to a directory in your 'files' dir (information on symlinks here: http://en.wikipedia.org/wiki/Symbolic_link).

I've reported this as a bug/feature request: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4012. Please feel free to Cc yourself for future notifications.

Regarding your question about http/https: I'm not sure, but I've asked a developer to respond.

Cheers,
James
jmacgreg
 
Posts: 4183
Joined: Tue Feb 14, 2006 10:50 am

Re: Open access for Files Browser files.

Postby asmecher » Mon Jan 19, 2009 10:07 am

Hi Pinkerton,

For the SSL question, have a look at the "force_login_ssl" option in config.inc.php. This forces SSL to be used for login requests, after which requests will be made by default via SSL (though once logged in, a user could remove the "s" from "https" in URLs to go back to cleartext). This will require that you have a proper Apache SSL setup, i.e. if your journal URL is http://www.my-journal-url.com/ojs/index.php/myJournal, it should also be available via https://www.my-journal-url.com/ojs/index.php/myJournal.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8337
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 8 guests