Bug: rdiff not rdiffauth when viewauth used
When viewing topics through viewauth the links for the diffs (eg 1.7 > 1.5 > 1.4, i'm talking about the > links now) are to rdiff, not rdiffauth, causing clicking on the link showing 'oops, no xx' error.
It seems this has to do with the templates, where a %SCRIPTSUFFIX% tag is defined, but not filled apparently.. Although simply putting 'auth' in that tag won't do either since then it will also link to 'attachauth' etc which does not exits.
Test case
Set up a wiki that can only be viewed by logged in users (eg ALLOWWEBVIEW=Main.MeOnly). Log in, load a page that has been editted and click the diff links.
Environment
--
KoenMartens - 10 Dec 2004
Follow up
Ok, so not hindered by any knowledge of how the source of TWiki is structured, I fixed it myself.
This patch adds a new global tag %AUTH% to the templates, it is replaced by 'auth' if viewauth is used, and by '' if view is used. All rdiff%SCRIPTSUFFIX% instances have been replaced by rdiff%AUTH%%SCRIPTSUFFIX% in the templates.
Probably should check whether rdiffauth is in .htaccess too.
Didn't check whether any of the alpha/beta releases fixes this problem btw (no time atm).
--
KoenMartens - 15 Dec 2004
Fix record