UploadPaths validation bug

3 posts, 0 answers
  1. Philipp Becker
    Philipp Becker avatar
    59 posts
    Member since:
    Nov 2005

    Posted 12 May 2009 Link to this post

    Hi,

    it seems as if there is a bug in the current upload routine. The method CheckWritePermissions in RadFileExplorer.cs does a validation that will always fail for subfolders of a given uploadpath.

    In line 905 where it says
    && uploadFolder[uploadPath.Length] == pathSeparator 

    it should rather be
    && uploadFolder[uploadPath.Length -1] == pathSeparator 

    otherwise this method will always return false when you're uploading into a subfolder of a given uploadpath string.
  2. Philipp Becker
    Philipp Becker avatar
    59 posts
    Member since:
    Nov 2005

    Posted 12 May 2009 Link to this post

    Nevermind, I figured that if I make sure that the uploadpath string does not end with a "/" then it seems to work as expected.
  3. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 13 May 2009 Link to this post

    Hi Philipp,

    This issue is already fixed, and the changes will be available in the next service pack which is scheduled for the end of May.

    Regards,
    Fiko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top