Item14031: permission error on out-of-the-box publish
Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release:
I am using Foswiki 2.0.3 with
PublishPlugin 2.4.0,
I installed with all defaults and attempted to publish Main.WebHome with all defaults. It failed with a file creation error in directory /var/www/Foswiki-2.0.3/pub/publish/file. The permissions on the directory file were d---------.
The error was reported in /var/www/Foswiki-2.0.3/lib/Foswiki/Plugins/PublishPlugin/Backend/file.pm line 71.
On inspection I found that the code references Foswiki::cfg{RCS}{dirPermission} on line 34 and 70.
That config variable was not set in configure. Probably because I use the
PlainFile Store. The variable {Store}{dirPermission} exists and is set to 0755.
I changed the references in line 34 and 70 to Foswiki::cfg{Store}{dirPermission} and the publishing now proceeds normally.
Not sure whether this change has any side effects, but it seems to me that the defect needs an expert opinion.
regards...
--
BramVanOosterhout - 22 Mar 2016
This task was addressed in conjunction with
Item14198 and the required fix was checked in with
PublishPlugin:6d9b22574408. Changing status to Duplicate.
--
LynnwoodBrown - 24 Jan 2017