Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: MS Windows XP Pro v2002 SP2
Web server: Apache 2.0.44 (Win32)
Perl version: 5.8.6 (from IndigoPerl binary)
Client OS: MS Windows XP Pro v2002 SP2
Web Browser: Firefox 2.0.0.1, Internet Explorer 6.0
Categories: Missing functionality

-- BillLay - 11 Feb 2007

Answer

ALERT! 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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtm configure.htm r1 manage 161.8 K 2007-02-11 - 19:13 UnknownUser Dump from configure
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-02-13 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.