InsertImage and SSL

Last post 10-15-2008, 12:38 PM by Adam. 7 replies.
Sort Posts: Previous Next
  •  10-03-2008, 5:09 PM 44548

    InsertImage and SSL

    Hi all,
    Running the CuteEditor over SSL. When the Insert Image button is clicked, the resultant page display the "this page contains both secure and nonsecure items" message. This message only displays the first time the insertimage dialog opens (i.e. the cuteeditor does not throw this warning when it loads). I need this message to go away. After searching the page source for "http:" I have found two instances. 1. the xmlns defintion xmlns="http://www.w3.org/1999/xhtml" (however, removing this did not fix the problem). 2. an Img tag in the middle of the page: 

    <img UniqueID="InputFile" Namespace="CuteEditor" Root="/MTC_v60_0801/" onload="this.onerror()" src="http://" style="display:none;" />

    (p.s. i removed quite a few of the parameters in the above tag, hopefully this shortened version will do the job)
     
    I haven't been able to find this in the InsertImage.aspx page or anywhere else in the cuteeditor code. 

    Am I missing something, or am I not even on the right track?

    Thanks 
  •  10-05-2008, 12:44 AM 44559 in reply to 44548

    Re: InsertImage and SSL

    Hi ThePope78705,
     
    We have fixed  this problem in version 6.2.
     
    Please download the latest version:
     
     
    Regards
     
    Ken
  •  10-06-2008, 2:50 PM 44637 in reply to 44559

    Re: InsertImage and SSL

    Thanks, that took care of the problem.

    However, we are still having issues with the InsertImage dialog.

    Problem1. We are setting the upload directory dynamically, based on some account settings, in the page_init method:

      Me.edHTML.SetSecurityImageGalleryPath(String.Format("/ImgHost/{0}/{1}", Me.GID, Me.BaseAID))
      Me.edHTML.SetSecurityTemplateGalleryPath("/ImgHost") 

    When a fresh browser is opened and goes to the site in question, when they click the InsertImage button an error is generated. "Access to c:\WINDOWS\TEMP is denied". 
    If you close the insert image dialog and click the insert image button again, everything comes up correctly. But the first time you enter the site it throws the error everytime. Is there some kind of rebind we need to do after setting the above paths to make them take affect?

    Problem2. Related to the above i suspect. When the "Upload" button is clicked and an image is selected the same error is thrown saying "Access to c:\WINDOWS\TEMP is denied" however, this one will not go away. Is there a seperate file or virtual directory we need to create for handling the uploads?

    Thanks! 
  •  10-08-2008, 6:41 AM 44687 in reply to 44637

    Re: InsertImage and SSL

    Hi ThePope78705,
     
    Please add the code in  <appSettings>  section of your web.config, and try again.
    <add key="CuteEditorTempPath" value="~/TempFolder" />
     
    Regards
     
    Ken
     
     
  •  10-08-2008, 9:58 AM 44696 in reply to 44687

    Re: InsertImage and SSL

    Thanks a lot, that took care of those problems.

    Now, however, we are getting sporadic errors when the insert image button is clicked. The error says that an uploading .resx file in the temp directory cannot be accessed. 

    How are these files getting created? Is there a way to prevent this error?

     
  •  10-10-2008, 4:25 AM 44770 in reply to 44696

    Re: InsertImage and SSL

    Hi,
     
    I think you need to edit the permission settings on that folder , allow the ASP.NET account to write data.
     
    Regards,
    Terry
  •  10-15-2008, 12:26 PM 44907 in reply to 44770

    Re: InsertImage and SSL

    giving the ASPNET user full control of the directory did not work. Still receiving the error:

    Access to the path 'd:\inetpub\wwwroot\MTC_v60_0801\Temp\uploads\uploading.051e59a3-fa06-ab52-5892-2b5bafdb0813.logo.jpg.resx' is denied.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access to the path 'd:\inetpub\wwwroot\MTC_v60_0801\Temp\uploads\uploading.051e59a3-fa06-ab52-5892-2b5bafdb0813.logo.jpg.resx' is denied.

    the first time someone clicks the insert image dialog button.

    How are these files getting created? 
  •  10-15-2008, 12:38 PM 44908 in reply to 44907

    Re: InsertImage and SSL

View as RSS news feed in XML