Item14031: permission error on out-of-the-box publish

Priority: Normal
Current State: Duplicate
Released In: n/a
Target Release:
Applies To: Extension
Component: PublishPlugin
Reported By: BramVanOosterhout
Waiting For:
Last Change By: LynnwoodBrown
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/ 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.


-- 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


ItemTemplate edit

Summary permission error on out-of-the-box publish
ReportedBy BramVanOosterhout
Codebase 2.0.3
SVN Range
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState Duplicate
ReleasedIn n/a
Topic revision: r3 - 24 Jan 2017, LynnwoodBrown
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy