Subject: | File Permissions creating session_data |
My server logs are showing that Catalyst had no permission to write
to /tmp/MyApp/session_data. I had no idea it would want to, but
tracked it down to this module, and the below routine: it seems
Catalyst::Utils::class2tempdir creates /tmp/MyApp as root.
I guess I should report to whomever owns Catalyst::Utils...?
83 sub setup_session {
84 my $c = shift;
85
86 $c->NEXT::setup_session(@_);
87
88 my $tmpdir = Catalyst::Utils::class2tempdir($c)
89 || Catalyst::Exception->throw("Can't determine tempdir
for $c");
90
91 my $file = $c->config->{session}{storage} ||=
92 File::Spec->catfile( # Cache::FastMmap doesn't like
Path::Class objects
93 $tmpdir,
94 "session_data",
95 );