• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.
Test case (see the "current parent" section):

http://develop.twiki.org/~develop/cgi-bin/oops/LitterTray/ChildOfA%E7%E3oR%E1pida?template=oopsmore&param1=1&param2=1

Adding the dynamic "=use locale()=" fixed the problem.

AT

What exactly was fixed here?

I am trying to evaluate this fix for a hotfix release.

When I click on your test case link I get a failure message.

When I look at InternationalCharsAndIfStatement then there is no test case there. It just contains a link to an i18n named topic.

With a testcase link that fails and no way to reproduce what was fixed I think we need another round on on this bug.

Setting it to open. I assume next step comes from AT.

I will not include this in the hotfix 1 for 4.0.4

KJL

As I continued testing other things I found the TWikiVariables topic to be broken.

The browser reporting

TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.

Insecure dependency in eval while running with -T switch

Same error both on my test server, on ~develop and on ~twiki4.

I looked at the apache error_log and what do we find?

[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] Insecure dependency in eval while running with -T switch at /usr/local/apache2/twiki/lib/TWiki/If.pm line 110., referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9]  at /usr/local/apache2/twiki/lib/TWiki/If.pm line 110, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::If::__ANON__('TWiki=HASH(0x95a5d10)', 'undef', '{AntiSpam}{HideUserDetails}') called at /usr/local/apache2/twiki/lib/TWiki/If.pm line 64, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::IfNode::evaluate('TWiki::IfNode=HASH(0xa5b0ce8)', 'TWiki=HASH(0x95a5d10)') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2623, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_IF('TWiki=HASH(0x95a5d10)', 'TWiki::Attrs=HASH(0xa5b0bec)', 'VarUSERINFO', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2271, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_expandTagOnTopicRendering('TWiki=HASH(0x95a5d10)', 'IF', '"{AntiSpam}{HideUserDetails}" then=" _(User details are hidde...', 'VarUSERINFO', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2190, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_processTags('TWiki=HASH(0x95a5d10)', '#VarUSERINFO\\x{a}---+++ USERINFO - retrieve details about a user ...', 'CODE(0x9daa828)', 16, 'VarUSERINFO', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2116, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_expandAllTags('TWiki=HASH(0x95a5d10)', 'SCALAR(0xa71e824)', 'VarUSERINFO', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2779, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_INCLUDE('TWiki=HASH(0x95a5d10)', 'TWiki::Attrs=HASH(0xa5c9e90)', 'TWikiVariables', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2271, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_expandTagOnTopicRendering('TWiki=HASH(0x95a5d10)', 'INCLUDE', 'TWiki.VarUSERINFO', 'TWikiVariables', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2190, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_processTags('TWiki=HASH(0x95a5d10)', '%INCLUDE{TWiki.VarACTIVATEDPLUGINS}%\\x{a}%INCLUDE{TWiki.VarALLOWT...', 'CODE(0x9daa828)', 15, 'TWikiVariables', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2196, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_processTags('TWiki=HASH(0x95a5d10)', '%TOC%\\x{a}%STARTSECTION{type="include"}%\\x{a}---# TWiki Variables\\x{a}\\x{a}_S...', 'CODE(0x9daa828)', 16, 'TWikiVariables', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2116, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::_expandAllTags('TWiki=HASH(0x95a5d10)', 'SCALAR(0x9dcd120)', 'TWikiVariables', 'TWiki') called at /usr/local/apache2/twiki/lib/TWiki.pm line 2459, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::handleCommonTags('TWiki=HASH(0x95a5d10)', '%TOC%\\x{a}%STARTSECTION{type="include"}%\\x{a}---# TWiki Variables\\x{a}\\x{a}_S...', 'TWiki', 'TWikiVariables') called at /usr/local/apache2/twiki/lib/TWiki/UI/View.pm line 322, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::UI::View::_prepare('%TOC%\\x{a}%STARTSECTION{type="include"}%\\x{a}---# TWiki Variables\\x{a}\\x{a}_S...', 'TWiki=HASH(0x95a5d10)', 'TWiki', 'TWikiVariables', 'TWiki::Meta=HASH(0x98a5270)', 0) called at /usr/local/apache2/twiki/lib/TWiki/UI/View.pm line 306, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::UI::View::view('TWiki=HASH(0x95a5d10)') called at /usr/local/apache2/twiki/lib/TWiki/UI.pm line 109, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::UI::__ANON__() called at /usr/local/apache2/twiki/lib/CPAN/lib///Error.pm line 379, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \teval {...} called at /usr/local/apache2/twiki/lib/CPAN/lib///Error.pm line 371, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tError::subs::try('CODE(0x98a710c)', 'HASH(0xa5a7090)') called at /usr/local/apache2/twiki/lib/TWiki/UI.pm line 158, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome
[Sun Jul 09 12:20:09 2006] [error] [client 192.168.1.9] \tTWiki::UI::run('CODE(0x95be8c0)') called, referer: http://merlin.lavrsen.dk/twiki/bin/view/TWiki/WebHome

So the error is in the If.pm. The last change done to that was SVN 10801 10802.

Reverting it fixes the problem.

I will revert this. It also seems quite odd that in this particular module you have to require/import locale. If there is an issue it has to be resolved in another way because the 10801/10802 breaks normal use of IF.

KJL

Just checked this, and it's still a problem

CC

Made the demo active again.

It is the \w that works differently depending on whether locale is active or not.

It is not discussed here what the problem related to putting in the use locale statement is (seems like an easy fix?).

-- SP

Changed the attribution to I18N to keep all related issues together

CC

ItemTemplate
Summary IfStatement breaks when using I18N topic names
ReportedBy TWiki:Main.AntonioTerceiro
Codebase 4.0.3
SVN Range Thu, 29 Jun 2006 build 10750
AppliesTo Engine
Component I18N
Priority Normal
CurrentState New
WaitingFor

Checkins 10801 10802 10913 10915
TargetRelease patch
ReleasedIn

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r13 - 2007-05-27 - TWikiUserMapping_CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback