Topic: double slash accessing the sessions folder

In my development.log, I have this error:

/home/software/jammer/rails/dashboard/public/dispatch.cgi:10
Permission denied - /home/software/jammer/rails/dashboard/public/../config/../tmp/sessions//dashboard.2f91ad3938f575a9
/usr/local/lib/ruby/1.8/pstore.rb:290:in `initialize'

For some reason, Rails is trying to create a session in the sessions folder but its using 2 slashes, instead of 1. Any ideas?

Last edited by Jammer1982 (2007-01-11 11:30:46)

Re: double slash accessing the sessions folder

Double slashes is technically legal in most *nix situations.  What would happen is that either the shell or the filesystem would quietly fix the error and it would act as though only one slash was given.

You can try this to see if it works right on your system:

mkdir new
touch new//new2
ls new # => should output 'new2'

I'm guessing the real problem is permissions in your tmp directory.  If you run
chmod -R 777 ./tmp

Does that fix it?

Re: double slash accessing the sessions folder

Thanks danger. I changed the permissions and that seems to have fixed things. The sys admin thought he changed the permissions, but hadn't.

Thanks!

James