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

Item5859: Plugin does not work if using NTLM

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Normal Waiting for Feedback TWiki:Main.LarsHaarber patch  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


TinyMCE plugin does not work with NTLM

As noted on TinyMCEPluginDev several users have reported problems when using TinyMCE with NTLM authentication. The problem is that the page never loads or you are prompted for credentials which are then never accepted. (how the problem manifests itself depends on the browser used).

I too have the same problem.

TinyMCE is the default editor in TWiki 4.2 and NTLM authentication is used on many corporate intranet TWikis which means this "bug" is obviously a problem for the adoption of TWiki 4.2. Therefore I've taken the liberty of reporting this as priority "Urgent".

Sergei Klink reported on TinyMCEPluginDev that it could simply be fixed by removing

TWikiTiny.request.req.setRequestHeader("Connection", "close");

from twiki_tiny.js without much information as to why.

I've found the following links to support this:



-- TWiki:Main/LarsHaarber - 01 Aug 2008

OK, thanks Lars. I cannot test NTLM, but you can, so can you please remove that line and confirm here that it fixes the problem. When you have confirmed, then that together with the links will be enough for me and I will remove the line from the source.

-- CrawfordCurrie - 01 Aug 2008

I'm sorry for not having responded on this earlier. Holiday season I'm afraid. I've got bad news: I cannot make it work even by removing the line above. It is true that others have reported the opposite but as for me it doesn't seem to change a thing.

-- TWiki:Main.LarsHaarber - 31 Aug 2008

OK. I'm sorry, Lars, but as I said before I can't test NTLM, and I'm relying on you (and other NTLM users) to isolate this problem.

-- CrawfordCurrie - 16 Sep 2008

Re-prioritized from urgent to normal at TWiki:Codev/GeorgetownReleaseMeeting2008x11x24

-- TWiki:Main.PeterThoeny - 25 Nov 2008

Perhaps I should pick up from here, Crawford.... this does definitely not work by simply removing the line. It still tries to authenticate, and it still hangs with the error. Again, raw edit works, it MUST be something TinyMCE is calling.

-- TWiki:Main.IngoFechtel - 17 Feb 2009

Re-set to urgent, as I agree that this is a pretty significant bug.

-- TWiki:Main.IngoFechtel - 17 Feb 2009

OK, I just tried something else. I also found the "close" statement in the file


I deleted the line THERE, and it seems to work now....

-- TWiki:Main.IngoFechtel - 17 Feb 2009

Just found out that we have the same problem in attach.js (and attach_src.js) which is called when you press the attachment-button in TinyMCE. Just remove that line, and you will be fine.

-- TWiki:Main.IngoFechtel - 05 Mar 2009

OK, since the above info is a little on the short side - apologies - here the full version:
The TinyMCE plugin will not work as delivered with NTLM authentification in IE. The error will not surface in FF. What happens is that as soon as you edit a page and TinyMCE tries to fetch the content of the page you are about to edit from the server, there will be an authentication window. Even if you enter valid credentials, the authentification will not work, and the page cannot be edited.
The same happens when you hit the "manage attachments" button, as this action also tries to fetch data from the server.

There are two files (and their respective sources) which need to be edited in order for this to work. In all four files files, we are looking for a string saying
("connection", "close")

The first two files are in /www/wikipath/htdocs/twiki/pub/TWiki/TinyMCEPlugin and called twiki_tiny.js and twiki_tiny_src.js

The other two files are in /www/wikipath/htdocs/twiki/pub/TWiki/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/twikibuttons/jscripts and called attach.js and attach_src.js

If you delete the line containig the ("connection", "close") -statement, or the sequence between the ; in front of and behind that statement, the editor and attachment button will work.

(Changing priority to normal due to error solved, just needs to be looked over)

Good luck wink

-- TWiki:Main.IngoFechtel - 09 Mar 2009

Summary Plugin does not work if using NTLM
ReportedBy TWiki:Main.LarsHaarber
Codebase 4.2.0, 4.2.4
SVN Range TWiki-5.0.0, Sun, 27 Jul 2008, build 17148
AppliesTo Extension
Component TinyMCEPlugin
Priority Normal
CurrentState Waiting for Feedback
WaitingFor TWiki:Main.LarsHaarber

TargetRelease patch

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2009-03-09 - IngoFechtel
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