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

Item6847: TWiki5.1.1 - Undefined {Site}{Charset} causes LDAP authetication to crash but defined {Site}{Charset} causes improper Chinese character handling in Wysiwyg

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension LdapContrib Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

-- TWiki:Main/LingyunTuo - 2012-02-14

I did an upgrade from 5.1.0 to 5.1.1 and installed LdapContrib for LDAP authentication. The problem is below:

  1. If $TWiki::cfg{Site}{CharSet} is defined in lib/LocalSite.cfg, error occurs when editing Chinese text in WysiwygPlugin;
  2. If $TWiki::cfg{Site}{CharSet} is not defined in lib/LocalSite.cfg, error occurs when login using LDAP authentication;

I could login with $TWiki::cfg{Site}{CharSet} defined first and remove/uncomment it in lib/LocalSite.cfg manually after login. Then it's OK to use WysiwygPlugin to edit Chinese text and save it correctly in single user mode.

A stupid workaround on this problem is as follow:

  • Define another parameter $TWiki::cfg{Site}{LdapCharSet} in lib/LocalSite.cfg but remove/uncomment the line of $TWiki::cfg{Site}{CharSet}.
  • Change LdapContrib.pm Line 2340 from:
my $charset = $TWiki::cfg{Site}{CharSet};

To:

my $charset = $TWiki::cfg{Site}{LdapCharSet};

This might be a problem of Wysiwyg instead of LdapContrib as I'm not familiar with TWiki development.

ItemTemplate
Summary TWiki5.1.1 - Undefined {Site}{Charset} causes LDAP authetication to crash but defined {Site}{Charset} causes improper Chinese character handling in Wysiwyg
ReportedBy TWiki:Main.LingyunTuo
Codebase 5.1.1
SVN Range TWiki-5.1.0, Thu, 26 Jan 2012, build 22596
AppliesTo Extension
Component LdapContrib
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2012-02-14 - LingyunTuo
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback