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   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

Version-Release number of selected component (if applicable):
publican-2.8-1.fc16

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-29 02:56:37 UTC
Disabled keep mode in directory copy.

Committed revision 2047 to trunk.

Comment 2 Peter Hutterer 2012-03-01 04:06:09 UTC
Can we have an updated fedora package for this please? It's a rather painful bug.

Comment 3 Martin Prpič 2012-04-26 20:32:45 UTC
Verified on:

Fedora 16
]$ rpm -q publican
publican-3.0-0.fc16.t166.noarch