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 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.

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

There's an open bug already, Bugs:Item5408, and a closed one at Bugs:Item2525 that bug 5408 says still didn't fix it.

I'm not using TWiki anymore since I left that job a long time ago, but I'm putting these pointers to the bugs here as this question seems to have been helpful to others.

Regards,

-- JoseGPedro - 2012-09-11

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml configure.html r1 manage 152.5 K 2007-02-28 - 17:31 UnknownUser /twiki/bin/configure output
Unknown file formatconf httpd-twiki.conf r1 manage 3.8 K 2007-02-28 - 17:36 UnknownUser Apache's httpd-twiki.conf
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-09-11 - JoseGPedro
 
  • 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.