Question
When I perform a search (over text), the result set has two problems:
- URLs for pages in the result set are bad (see details below)
- all dates are displayed as
01 Jan 1970
I am using GnuWin32 for grep v.2.5.1. And RCSLite.
Bad Result Set URLs
The URL seems to be a concatenation of the TWiki (web URL) and the Windows filepath.
Example: the wiki
Sandbox.DoIWork
has the URL
http://localhost/twiki/bin/view/Sandbox/C:\twiki\data\Sandbox\DoIWork
Attempts to remedy
I have experimented with changing the
General Path Settings
in my configuration using
C:/
,
C:\
,
C:\\
styles. To no avail.
Environment
--
BillLay - 11 Feb 2007
Answer
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.
Just 'seconding' this; I'm also having this problem with 4.1.x (I've tested with 4.1.0 and 4.1.1, using clean installs of each; 4.0.5 didn't have these path problems). My server config is slightly different. We're running Windows Server 2003, Apache 2.2 with
ActivePerl 5.8.8. Just to add two more cents, even removing all instances of c: from the configure page and setting paths to things like /htdocs/twiki/bin or /usr/local/wbin/grep, etc, still creates problematic paths.
--
ToddLemoine - 12 Feb 2007
I experience the same issue when I tried to upgrade
TWikiForWindowsPersonal from TWiki 4.0.5 to 4.1.0. This bug is tracked at
Bugs:Item3622. Please add as many details as possible on taht bug item so that we can nail down the issue quickly.
--
PeterThoeny - 12 Feb 2007
Fix: Apply this patch:
--- twiki/branches/Patch04x01/lib/TWiki/Store/RcsFile.pm 2007-02-13 11:42:36 UTC (rev 12854)
+++ twiki/branches/Patch04x01/lib/TWiki/Store/RcsFile.pm 2007-02-13 11:43:06 UTC (rev 12855)
@@ -358,7 +358,7 @@
TOKEN => $searchString,
FILES => \@set);
foreach my $match ( split( /\r?\n/, $matches )) {
- if( $match =~ m/([^\/]*)\.txt(:(.*))?$/ ) {
+ if( $match =~ m/([^\/\\]*)\.txt(:(.*))?$/ ) {
push( @{$seen->{$1}}, $3 );
}
}
See
HowToApplyPatch
--
PeterThoeny - 13 Feb 2007