Upgrade to 6.4 and prob with security config

Last post 10-04-2009, 9:56 AM by cw808. 4 replies.
Sort Posts: Previous Next
  •  10-02-2009, 12:14 PM 56061

    Upgrade to 6.4 and prob with security config

    Hi
     
    I just upgraded from v6 to v6.4. I have a problem where SetSecurityImageGalleryPath doesn't seem to be working. Note that the exact same code and configuration I have works fine with v6.
     
    I removed the v6 dll files and app files. I copied the v6.4 dll files and app files. I copied all custom config files to same locations as v6 (CuteSoft_Client\CuteEditor\Configuration\Security). The editor works but when I use the image button I get this error: Could not find a part of the path "C:\Inetpub\wwwroot\abc\Uploads\".
     
    So, my code is (I've added the spaces in the tags for pasting in this forum):
    < CE:Editor id="IconFilePath" ShowPreviewMode="False" EditorWysiwygModeCss="ce.css" Width="1" 
                   ShowBottomBar="False" Height="1" EnableViewState="False" runat="server" ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/ImageOnly.config" ></ CE:Editor >
     
    In the code-behind:
       CuteEditor.Editor ce=(CuteEditor.Editor)e.Item.FindControl("IconFilePath");
       
    if(ce!=null)
       {
          ce.SetSecurityImageGalleryPath("~/../images/icons");
          // also tried  @"C:\Inetpub\wwwroot\abc\images\icons"
       }
     
    The only config file CuteSoft_Client\CuteEditor\Configuration\Security\ImageOnly.config has:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <security name="RestrictUploadedImageDimension">true</security>
     <security name="OverWriteExistingUploadedFile">true</security>
     <security name="UseTimeStampRenameUploadedFiles">false</security>
     <security name="AutoResizeUploadedImages">true</security>
     <security name="MaxImageWidth">1024</security>
     <security name="MaxImageHeight">768</security>
     <security name="MaxImageSize">1000</security>
     <security name="MaxMediaSize">10000</security>
     <security name="MaxFlashSize">1000</security>
     <security name="MaxDocumentSize">10000</security>
     <security name="MaxTemplateSize">1000</security>
     <security name="ImageGalleryPath">~/../images</security>
     <security name="MediaGalleryPath">~/../images</security>
     <security name="FlashGalleryPath">~/../images</security>
     <security name="TemplateGalleryPath">~/templates</security>
     <security name="FilesGalleryPath">~/../images</security>

     <security name="MaxImageFolderSize">1000000</security>
     <security name="MaxMediaFolderSize">1000000</security>
     <security name="MaxFlashFolderSize">1000000</security>
     <security name="MaxDocumentFolderSize">1000000</security>
     <security name="MaxTemplateFolderSize">1000000</security>
     <security name="ThumbnailWidth">80</security>
     <security name="ThumbnailHeight">80</security>
     <security name="ThumbnailColumns">5</security>
     <security name="ThumbnailRows">3</security>
     <security name="AllowUpload">true</security>
     <security name="AllowModify">true</security>
     <security name="AllowRename">true</security>
     <security name="AllowDelete">true</security>
     <security name="AllowCopy">true</security>
     <security name="AllowMove">true</security> <!-- this is rename too -->
     <security name="AllowCreateFolder">true</security>
     <security name="AllowDeleteFolder">true</security>
     <security name="ImageFilters">
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
     </security>
     <security name="MediaFilters">
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wmv</item>
      <item>.wav</item>
     </security>
     <security name="DocumentFilters">
      <item>.txt</item>
      <item>.doc</item>
      <item>.pdf</item>
      <item>.zip</item>
      <item>.rar</item>
      <item>.avi</item>
      <item>.mpg</item>
      <item>.mpeg</item>
      <item>.mp3</item>
      <item>.wav</item>
      <item>.swf</item>
      <item>.jpg</item>
      <item>.jpeg</item>
      <item>.gif</item>
      <item>.png</item>
      <item>.htm</item>
      <item>.xls</item>
      <item>.html</item>
      <item>.rtf</item>
      <item>.wmv</item>
     </security> 
     <security name="TemplateFilters">
      <item>.txt</item>
      <item>.rtf</item>
      <item>.html</item>
      <item>.htm</item>
      <item>.xml</item>
     </security>
     <security name="filenamePattern">^[a-zA-Z0-9\._\s-\#]+$</security>
    </configuration>
     
    If I uninstall v6.4 and reinstall v6, all this still works.
    Any help appreciated.
    Thanks!
     
     
  •  10-02-2009, 12:46 PM 56064 in reply to 56061

    Re: Upgrade to 6.4 and prob with security config

  •  10-02-2009, 12:50 PM 56065 in reply to 56064

    Re: Upgrade to 6.4 and prob with security config

    Hi. Yes I did and you can see I follow this. But for some reason it is still defaulting to "/uploads". I have that directory nowhere in a config file. In v6.4 is there another config file it checks?
  •  10-03-2009, 10:23 PM 56069 in reply to 56061

    Re: Upgrade to 6.4 and prob with security config

    Hi,
     
    You need set this :
     
    ce.SecurityPolicyFile="ImageOnly.config";   // to ~/CuteSoft_Client/CuteEditor/Configuration/Security/ImageOnly.config
     
    Regards,
    Terry
     
  •  10-04-2009, 9:56 AM 56083 in reply to 56069

    Re: Upgrade to 6.4 and prob with security config

    Hi all.
     
    Problem solved. Apparently I overlooked that SetSecurityImageBrowserPath needs to be set or that requirement is new since v6. My old config files did NOT have this set and it worked fine. I gues the lesson learned here is you can't just overwrite the new v6.4 config files with older versions of the config files as you will be missing stuff :-(
     
    Thanks Terry - my policy file was already set for this actually BUT without your suggestion I wouldn't have looked back to find out what I stated above.

    Cheers
     
View as RSS news feed in XML