Image upload bug after update to ckeditor 3.6.2

Moderator: crythias

Post Reply
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Image upload bug after update to ckeditor 3.6.2

Post by Bull »

Hi!

I made (on our testsystem) an update of ckeditor 3.4.2 to 3.6.2 as described in http://forums.otrs.org/viewtopic.php?f= ... t=ckeditor and with adjusting Frontend::RichTextPath in Framework -> Core::Web.
Everthing looked fine but now with that modifications it isn't possible to upload an images to the server for embedding it into a note. :(

Details:
1. Selecting the local image file works fine
Image

2. but when I press the Send-Button something strange happens with the text panel - it will be replaced with the topmost part of my OTRS window and you can see the right corner of the banner (with executable code):
Image

3. Pressing the OK-Button leads to an error message "Image source URL is missing".

Your help is appreciated.
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

have a look in the logfile if there is any hint.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

Hi!
Which log? I looked in /opt/otrs/var/log and /var/log but there seems nothing be logged for this action... :(
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

Apache error log...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

Ah, ok:
Nothing to see in error_log.
In access_log this entries were generated, when I try the image upload:
10.205.6.106 - - [20/Dec/2011:16:34:20 +0100] "GET /otrs-web/js/thirdparty/ckeditor-3.6.2/plugins/image/dialogs/image.js?t=B8DJ5M3 HTTP/1.1" 304 - "http://10.106.25.12/otrs/index.pl?Actio ... ketID=2021" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:34:20 +0100] "GET /otrs-web/js/thirdparty/ckeditor-3.6.2/skins/default/dialog.css?t=B8DJ5M3 HTTP/1.1" 304 - "http://10.106.25.12/otrs/index.pl?Actio ... ketID=2021" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:34:48 +0100] "POST /otrs/index.pl?&CKEditor=RichText&CKEditorFuncNum=0&langCode=de HTTP/1.1" 200 87447 "http://10.106.25.12/otrs/index.pl?Actio ... ketID=2021" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
On the production server witk the old ckeditor version 3.4.2 I can see:
10.205.6.106 - - [20/Dec/2011:16:37:06 +0100] "GET /otrs-web/js/thirdparty/ckeditor-3.4.2/plugins/image/dialogs/image.js?t=AA4E4NT HTTP/1.1" 304 - "http://10.106.25.14/otrs/index.pl?Actio ... ketID=1222" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:37:06 +0100] "GET /otrs-web/js/thirdparty/ckeditor-3.4.2/skins/default/dialog.css?t=AA4E4NT HTTP/1.1" 304 - "http://10.106.25.14/otrs/index.pl?Actio ... ketID=1222" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:37:24 +0100] "POST /otrs/index.pl?&CKEditor=RichText&CKEditorFuncNum=0&langCode=de HTTP/1.1" 200 450 "http://10.106.25.14/otrs/index.pl?Actio ... ketID=1222" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:37:25 +0100] "GET /otrs/index.pl?Action=PictureUpload;FormID=1324395406.10103628.1811162;ContentID=inline8220.26563824568.1324395406.10103628.1811162@otrs.profi-ag.de HTTP/1.1" 200 31142 "http://10.106.25.14/otrs/index.pl?Actio ... ketID=1222" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
10.205.6.106 - - [20/Dec/2011:16:37:25 +0100] "GET /otrs/index.pl?Action=PictureUpload;FormID=1324395406.10103628.1811162;ContentID=inline8220.26563824568.1324395406.10103628.1811162@otrs.profi-ag.de HTTP/1.1" 200 31142 "http://10.106.25.14/otrs/index.pl?Actio ... ketID=1222" "Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 ( .NET CLR 3.5.30729)"
Hint: The error is reproducable with an Firefox client 7.x
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

Please check if there are any other references to the old ckeditor. Did you also delete all caches?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

I now executed /opt/otrs/bin/otrs.DeleteCache.pl and I removed manually any /opt/otrs/var/tmp/SysConfig-Cache_Kernel_Config_Files_*.pm => same behavior of ckeditor. :shock:
Searching for "ckeditor-3.4.2" in the entire otrs-tree leads to
Kernel/Config/Files/Framework.xml: <String Regex=""><OTRS_CONFIG_Frontend::WebPath>js/thirdparty/ckeditor-3.4.2/</String>
Kernel/Config/Files/ZZZAAuto.pm:$Self->{'Frontend::RichTextPath'} = '<OTRS_CONFIG_Frontend::WebPath>js/thirdparty/ckeditor-3.4.2/';
Timestamps of that files:
-rw-rw-r-- 1 otrs www 279468 Oct 11 14:04 Kernel/Config/Files/Framework.xml
-rw-rw-r-- 1 otrs www 255908 Dec 20 17:16 Kernel/Config/Files/ZZZAAuto.pm
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

well than this should be ok.

Why did you change the editor?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

jojo wrote: Why did you change the editor?
There is a awful disablity in ckeditor 3.4.2 (and still in 3.6.2):
You can't mark some text lines and format them afterwards with another font or color - you have to select the desired format before you write or paste some text
That's awful if you copy some log/script output, which is only readable with fixed width signs, and want to paste it above the last written lines.
My Workaround (editing the HTML source code) is not practible for the other agents...

We recently migrated from OTRS 2.4.5, which used fckeditor 2.6.4.1 - that worked fine :(
Maybe the solution is to change back to that fsckeditor version?
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

Marking a text and changing color, font etc works like a charm on 3.11 (Firefox 8)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

jojo wrote:... works like a charm on 3.11 (Firefox 8)
What do you mean with "3.11" ?
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

oh sorry, OTRS 3.0.11
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Bull
Znuny newbie
Posts: 7
Joined: 22 Nov 2011, 09:17
Znuny Version: 3.0.11
Real Name: Martin Rückert
Company: PROFI Engineering Systems AG
Location: Hamburg

Re: Image upload bug after update to ckeditor 3.6.2

Post by Bull »

Hmm, but we already have OTRS 3.0.11 - and with that version we got the ugrade to ckeditor (3.4.2) and those problems...

Now for something different:
Meanwhile I guess, the described problems are not caused by ckeditor. I checked http://dev.ckeditor.com/wiki/Bugs and testing the demo Website http://ckeditor.com/demo I couldn't reproduce the bugs. So the real reason for the described behavior might be in another part of the system?
OTRS 3.0.11, OTRS::ITSM 3.0.5, OS: openSUSE 11.4, DB: MySQL
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Image upload bug after update to ckeditor 3.6.2

Post by jojo »

there could be a lot of possible causes, like caches etc
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zhakal
Znuny newbie
Posts: 47
Joined: 30 Jul 2011, 20:06
Znuny Version: 3.0.11

Re: Image upload bug after update to ckeditor 3.6.2

Post by zhakal »

Clearing the cache doesn't work on this case.
We had the same issue, I resolved it by removing the button on our environment as it wasn't needed.

But if you look inside the 3.4.2 folder you have a file called OTRS-PATCHES.txt, have you done these steps?

If not you need to follow the description here and the files you need is inside the 3.4.2 _source folder
Copy them to the 3.6.2 location (same place as in 3.4.2) then apply the patch.
Does this happen afterwards?
OTRS 3.0.11 , RHLE 5.6 & CentOS 6
MSSQL 2008 R2 , Windows 2008 R2
Post Reply