Question
When I request "Total Page History" (rdiff) I get a header for each version but no differences. I've tried all the suggestions in
DiffProblem but with no success.
Environment
Here are the highlights from the delivered testenv (I'm not able to down load the latest version)
$safeEnvPath:/usr/local/bin:/opt/sfw/bin:/bin:/usr/bin
Current PATH: /usr/local/bin:/opt/sfw/bin:/bin:/usr/bin
- diff
- GNU diff was found on the PATH - this is the recommended diff tool.
$rcsDir:/usr/local/bin
RCS Version:5.7
Perl version:5.6.1
TWiki module in
@INC
path: OK, TWiki.pm found (TWiki version: 01 Sep 2004 $Rev: 1742 $)
"strings /usr/local/bin/rcsdiff | grep /diff" yields /usr/local/bin/diff
"/usr/local/bin/diff -v" yields diff (GNU diffutils) 2.8.1
From the TWiki access log I get:
and no errors in the TWiki error log
From the httpd access log I get
"my IP address" - - [09/Dec/2004:14:37:05 -0600] "GET /twiki/bin/rdiff/TRSWiki/WebHome HTTP/1.1" 200 73931
"my IP address" - - [09/Dec/2004:14:37:07 -0600] "GET /twiki/bin/view/TRSWiki/ HTTP/1.1" 400 302
"my IP address" - - [09/Dec/2004:14:37:07 -0600] "GET /twiki/bin/view/TRSWiki/ HTTP/1.1" 400 302
"my IP address" - - [09/Dec/2004:14:37:17 -0600] "GET /twiki/pub/twikilogo3.gif HTTP/1.1" 404 298
From the httpd error log
[Thu Dec 09 14:37:05 2004] [notice] cannot use a full URL in a 401
ErrorDocument directive --- ignoring!
[Thu Dec 09 14:37:17 2004] [error] [client "my IP address" ] File does not exist: /apps/httpd/twiki/pub/twikilogo3.gif, referer:
http://ghost.swen/twiki/bin/rdiff/TRSWiki/WebHome
Disabling plugins didn't help
Also I noticed in TWiki.cfg the command definition
diffCmd => "/opt/sfw/bin/gdiff $rcsArg -q -w -B -r%REVISION1% -r%REVISION2% $keywordMode --unified=%CONTEXT% %FILENAME% $endRcsCmd",
and $keywordMode = -ko
-ko is not a valid option for gdiff. I tried changing this but it didn't help
Our server is behind a firewall.
--
DavidSimmons - 09 Dec 2004
Answer
I doubt this is the cause of your problem, but did you try re-locking your
RCS files? That's mentioned in the
testenv (thanks for including this). If you do re-lock, I really recommend
not using the easy re-lock link from
testenv as that has some problems (see
SourceForgeDec2004UpgradeIssue) - instead, use the command line in
WindowsInstallCookbook, which definitely works OK.
Other than that I don't really have any great suggestions other than to try building your own copy of
RCS, which will use its own diff. The
RCS and diff versions look OK but it may be you have an odd Solaris version of diff, even though it is in
/usr/local/bin
--
RichardDonkin - 10 Dec 2004
I relocked the files, and built my own version of diff and
RCS. I still get no diff output.
--
DavidSimmons - 20 Dec 2004
Are you using the GNU tool? The Solaris one do not work in TWiki.
I noticed in your TWiki.cfg that you have
"/opt/sfw/bin/gdiff $rcsArg..." for
diffCmd. I think it should be the default for your configuration:
"$rcsDir/rcsdiff $rcsArg....
--
PeterThoeny - 22 Dec 2004