SID-01925: RCS Permissions corrupted in Configure
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
perl5 (revision 5 version 18 subversion 2) |
| Category: |
CategoryError |
Server OS: |
Fedora 20: 3.14.3-200.fc20.x86_64 |
Last update: |
11 years ago |
Editing any page fails with:
During save of Sandbox.TestPageV6 an error was found by the version control system. Please notify your TWiki administrator.
/usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F% of .../Sandbox/TestPageV6.txt failed: 1
Permissions on file:
--w------T 1 apache apache 426 May 19 23:02 TestPageV6.txt
The configure program is corrupting the permissions parameters. Correcting the values and re-saving does not help.
- {RCS}{dirPermission} 01356 (entered 750)
- {RCS}{filePermission} 01200 (entered 640)
Also,
- {SmimeKeyFile} is set to my Wiki username and
- {SmimeKeyPassword} is set to some value...
Manually adjusting the parameters in twiki/lib/LocalSite.cfg also doesn't help.
When configure runs, httpd's error_log reports errors on various
RCS modules:
[Tue May 20 11:21:38.546561 2014] [cgi:error] [pid 19502] [client 10.160.186.119:55351] AH01215: rcs: warning: -V is obsolete; instead, use --version, referer: http://10.160.49.47/twiki/bin/configure?t=1400584879
co --version reports:
co (GNU
RCS) 5.9.0
Additionally, I was getting errors from setlib.cfg
setlib.cfg: defined(@array) is deprecated at setlib.cfg line 53.
setlib.cfg: defined(@array) is deprecated at setlib.cfg line 55.
I corrected these two lines by removing the "defined" so that it tests against the scalar value of @localPerlLibPath. Prior to that fix, the @INC values for the shipped modules wasn't available. I got errors trying to install CGI::Session, so I needed to use the TWiki version. Correcting setlib.cfg fixed the configure error that CGI::Session wasn't available.
Thanks!
--
Stephen Preisach - 2014-05-20
PS:
Thanks to Brian Dunshaw, SID-01918, for noticing that the "corrupted" permissions values are the result of inappropriate decimal-to-octal conversion. I edited twiki/lib/LocalSite.cfg with decimal values, and am operational -- until the next time I run configure.
Discussion and Answer
The permission issue sounds like a bug. Please file one at
TWikibug:WebHome
.
Not sure on
rcs: warning: -V is obsolete; instead, use --version. On
RCS 5.7 (default on Red Hat/ConetOS)
--version produces an error, and
-V works.
defined(@array
) is deprecated at setlib.cfg is known issue,
TWikibug:Item7487
.
--
Peter Thoeny - 2014-05-20
We got a report and fix:
TWikibug:Item7517
configure breaks {RCS}{filePermission} under Perl v5.18.2. This is caused by a Perl bug. The fix works around the bug.
Please apply the patch, then run configure and set
{RCS}{dirPermission} to
0755, and
{RCS}{filePermission} to
0644.
--
Peter Thoeny - 2014-06-17
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.