Problem with URL when uploading images with CKEditor

Problem with URL when uploading images with CKEditor

  
When I attempt to upload an image using CKEditor 3.5.2 I have two issues:

1) It mangles the URL. It comes back with "https://cscdo/CKEditor/Download.aspx?GUID=2012323ksxm51iu2zr1hmprgw3wxdal1p66o50hv22070n29a". The server name is supposed to be "cscdoutsys1". If I fix the reference, the image will be recalled fine (except for the issue in #2 below)

2) If I leave the "https" in the reference, it will not recall the image. If I change it to "http", it works fine.

Can anyone help me?
TIA...
Hi Gerry,

I had an extremely brief look at the CKEditor eSpace and the expression in the Assign node inside the GetServerURL action looks very suspicious to me. :(

It won't work if the url is HTTPS instead of HTTP and I'm sure it will cause the truncation of the server name that you mentioned.

Have a look into that logic and let me know if you can fix it or you need any help.

Cheers,


Miguel
Miguel Melo wrote:
Hi Gerry,

I had an extremely brief look at the CKEditor eSpace and the expression in the Assign node inside the GetServerURL action looks very suspicious to me. :(

It won't work if the url is HTTPS instead of HTTP and I'm sure it will cause the truncation of the server name that you mentioned.

Have a look into that logic and let me know if you can fix it or you need any help.

Cheers,


Miguel
 I definately need help with this. Thanks.
 
Gerald Seidl wrote:
 I definately need help with this. Thanks.
 
 
Hi again,

Try to change the "Value 1" that is being assigned to the "Text" variable on the Assign node inside the GetServerURL action from

Substr(GetBookmarkableURL(), 0, Index(Replace(GetBookmarkableURL(), "http://", ""), "/") + 7)

to

Substr(GetBookmarkableURL(), 0,

    Index(GetBookmarkableURL(),

        "/",

        Index(GetBookmarkableURL(), "://") + 3)

)

and let me know if this fixes the problem.

Regards,

Miguel
Miguel Melo wrote:
 
Hi again,

Try to change the "Value 1" that is being assigned to the "Text" variable on the Assign node inside the GetServerURL action from

		Substr(GetBookmarkableURL(), 0, Index(Replace(GetBookmarkableURL(), "http://", ""), "/") + 7)

to

		Substr(GetBookmarkableURL(), 0,

    Index(GetBookmarkableURL(),

        "/",

        Index(GetBookmarkableURL(), "://") + 3)

)

and let me know if this fixes the problem.

Regards,

Miguel
 
 That seems to work fine. However, if I leave the "https://" on the URL, when I attempt to use that text containing the image in an email, I get an error:

If I change the https to http, the email works ok. What's going on??

When you create an email, the platform downloads all the resources (images, css etc) to pack them up into the email. Fetching files from HTTPS should work, but you have to make sure that you have no certificate problems from the server to where the resources reside e.g. if to access an https file you need to accept a certificate in your browser, than that means that the server won't be able to fetch this file unassisted.

Do you really need these files to be stored in https?


Miguel