Bug 798484

Summary: publican requires write access to source directory for file copying
Product: [Community] Publican Reporter: Peter Hutterer <peter.hutterer>
Component: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman+disabled>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.8CC: rlandman+disabled
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-30 23:11:39 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Peter Hutterer 2012-02-28 21:05:37 EST
Description of problem:
publican requires write access to the source directories to establish the processing tree.

Version-Release number of selected component (if applicable):

How reproducible:
remove write access from the en-US directory before running publican build.

Steps to Reproduce:
1. publican create foo
2. cd foo
3. chmod 555 en-US
4. publican build --langs=en-US --formats=html

Actual results:
"Cannot locate main XML file: 'foo.xml' at /usr/bin/publican line 763"

Expected results:
At least a more helpful error message given that the file is there and can be read just fine with the permissions it has. Publican doesn't seem to actually write to any file in that directory (chmod 444 on all works fine), so not requiring write permissions seems like the best solution.
Comment 1 Jeff Fearn 2012-02-28 21:56:37 EST
Disabled keep mode in directory copy.

Committed revision 2047 to trunk.
Comment 2 Peter Hutterer 2012-02-29 23:06:09 EST
Can we have an updated fedora package for this please? It's a rather painful bug.
Comment 3 Martin Prpič 2012-04-26 16:32:45 EDT
Verified on:

Fedora 16
]$ rpm -q publican