Tags:
create new tag
view all tags

Bug: RefByMatchesUnrelatedEntries

See Test Case. The search expression generated by ref-by seems to be incorrect in the case that a WikiWord ends in a number.

Test case

  1. Create a page: TestPage1 with the text TestPage1
  2. Create a page: TestPage11 with the text TestPage11
  3. Visit TestPage1 and click "ref-by"
  4. Notice that TestPage11 shows in the list
  5. Visit TestPage11 and click "ref-by"
  6. Notice that TestPage11 is not in the list

Environment

TWiki version: TWiki20030201
TWiki plugins:  
Server OS: RedHat Linux 8.0
Web server: Apache 2.0.40
Perl version: 5.8.0
Client OS: Windows 98
Web Browser: Opera 7.11

-- WillBridewell - 15 Jul 2003

Follow up

This can be fixed by changing the file view.tmpl, adding a 0-9 to the end of the regular expression.

The Ref-By link should read

"%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/SearchResult?scope=text&regex=on&search=%SPACEDTOPIC%%5B%5EA-Za-z0-9%5D"

Fix record

Fix is in Subversion now.

Other fixes (too busy to create new bug reports for fixes done):

  • The search results now don't list the topic itself
  • Search is going through all webs instead of the topic's own web

The new link in the view templates is now:

&lt;a href="%<nop>SCRIPTURLPATH%/search%<nop>SCRIPTSUFFIX%/%<nop>WEB%/SearchResult?scope=text&amp;regex=on&amp;web=all&amp;excludetopic=%<nop>TOPIC%&amp;search=%<nop>SPACEDTOPIC%%5B%5EA-Za-z0-9%5D"&gt;

But now a new bug has come to light. The new bug's title is still this topic's title. See extended report below:

-- ArthurClemens - 30 Jul 2004

The spaced topic RegEx gives a lot of wrong results

Search results give back a load of results that are not related to the topic.

Test case

Follow up

The simple solution would be to remove the spaced topic search. But I think the search should look for actual urls, not the way these appear on the page.

-- ArthurClemens - 30 Jul 2004

We can't eaily get rid of spaced topic ref-bu search since a [[foo bar]] link points to FooBar.

Removing it from Cairo.

-- PeterThoeny - 08 Aug 2004

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2004-08-08 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.