Tags:
create new tag
, view all tags

Question

How do I configure TWiki so that the TWiki:Plugins/TablePlugin works with TWiki:TWiki/ShorterUrlCookbook?

I followed the instructions for shorter urls, but when a page with a table on it get shown and the user clicks on a column name to sort the table, he gets an oops:

Attention The "TWiki/TablePlugin/TWiki" web does not exist

The generated URL is: http://server/twiki/bin/oops/TWiki/TablePlugin/TWiki/TablePlugin?template=oopsaccessdenied;def=no_such_web;param1=view#sorted_table

The column's target URL is: http://server/TWiki/TablePlugin/TWiki/TablePlugin?sortcol=2;table=2;up=0#sorted_table

I tried to "fix" the problem, and made the following change to TablePlugin/Core.pm, around line 577 (sub handler):

        # Extract and attach existing parameters
        my $plist = $cgi->query_string();
        $plist =~ s/\;/\&/go;
        $plist =~ s/\&?sortcol.*up=[0-9]+\&?//go;
        $plist .= '&' if $plist;
#        $url = $cgi->url . $cgi->path_info() . '?' . $plist;
#        $url =~ s/\&/\&/go;
        $url = '?' . $plist;

In short, I remove everything before the query string from the URL, and the browser ends up getting a relative URL of the form ?sortcol=2;table=2;up=0#sorted_table, which apparently made the trick, but I don't know if this is the correct way to go about it.

I also commented the second line because of a bug I saw (check my comments at TWiki:Plugins/TablePluginDev near the end, on 28 Feb 2007).

I'm attaching my configure script output and httpd-wiki.conf.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: TablePlugin
Server OS: Solaris 9 Sparc
Web server: Apache 2.2.2
Perl version: 5.8.7
Client OS: MS Windows XP Professional SP2
Web Browser: Firefox 2.0.0.2
Categories: Installation, Search, Fatal error, Contributing code, Plugins

-- JoseGPedro - 28 Feb 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Cold you please file a bug report at Bugs:TablePlugin if you feel that this has not been fixed in the latest release?

-- PeterThoeny - 02 Apr 2007

 
Change status to:
Topic attachments
I Attachment Action Size Date Who Comment
HTMLhtml configure.html manage 152.5 K 2007-02-28 - 17:31 JoseGPedro /twiki/bin/configure output
Unknown file formatconf httpd-twiki.conf manage 3.8 K 2007-02-28 - 17:36 JoseGPedro Apache's httpd-twiki.conf
Topic revision: r2 - 2007-04-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.