Problem with too long querystring in (godaddy?) subdomains / virtual directories

Last post 09-26-2006, 9:55 PM by Ricardo Drizin. 3 replies.
Sort Posts: Previous Next
  •  09-24-2006, 11:14 AM 23014

    Problem with too long querystring in (godaddy?) subdomains / virtual directories

     
    Hello.
     
    I have just discovered something weird at godaddy.com and maybe some other hosting providers:
     
    I have a main domain (www.mycompany.com) and a few samples subdomains (myproductsample.mycompany.com) which are redirected to a virtual folder. (/mywebroot/myproductsample).
     
    When I installed CuteEditor (last version) into my subdomain, none of the dialogs worked.
     
    Then I started ethereal (network sniffer) and discovered that many http connections were getting a 301 redirect.
     
    After a few investigation and lots of tests, I noticed the problem:
     
    When we have subdomain redirecting to virtual directories, a request like http://myproductsample.mycompany.com/folder/page.aspx?querystring
    However that redirection probably involves some handler-script which must parse the folders/pages/querystring and remount them to get the correct page.
     
    The bug: If your "/folder/page.aspx?querystring" is bigger than 1023 bytes, then you are redirected (http 301) to
    http://myproductsample.mycompany.com/myproductsample/ , which in case would load your subdomain homepage into your dialog.
     
    Almost all dialogs have huge querystrings because they use GetHashString().
     
    Adam, if I install CuteEditor into my main domain http://www.mycompany.com/Cutesoft_Client/CuteEditor/ , how can I reference that editor in my subdomains? There is that FilesPath property, but I guess it will use my current subdomain (which won't work, needs to be replaced with my main domain).
     
    Or maybe I can change GetHashString() to return a smaller string?
     
    Maybe (if there is not yet a solution) you could allow adding handlers to some function which writes url-links.
     
     
    Thanks!
  •  09-25-2006, 2:24 PM 23049 in reply to 23014

    Re: Problem with too long querystring in (godaddy?) subdomains / virtual directories

    Ricardo,
     
    >> if I install CuteEditor into my main domain http://www.mycompany.com/Cutesoft_Client/CuteEditor/ , how can I reference that editor in my subdomains?
     
    No, you can't reference that folder in you sub domains.
     
    I don't think it's a GetHashString()  isssue.
     
    Try adding this to the app settings:
     
    <add key="CuteEditorEnableGZip" value="False" />
     
    If the problem exists, please put a demo online and send the URL to me through PM.
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  09-25-2006, 7:51 PM 23061 in reply to 23049

    Re: Problem with too long querystring in (godaddy?) subdomains / virtual directories

     
    Adam,
     
    I guess it's not a CuteEditor problem, it's a host limitation - if length(folderpath) + length(querystring) > 1023, then I get a redirect.
     
    I tryied that big querystring with a regular aspx page (not CuteEditor) in both my domain and in my subdomain, and in my domain the querystring is accepted (page loads ok) and in the subdomain the page is redirected to /.
     
    I suppose all CuteEditor Dialogs MUST have that querystring with GetHashString, right? (Why is that used for?)
     
    Then my only possibility is to use it in the main domain... but dont know how to invoke that editor from subdomain.
    I guess even if I could point the urls to the main domain, the asp.net appdomains wouldn't talk to each other...
     
    Thanks.
  •  09-26-2006, 9:55 PM 23102 in reply to 23061

    Re: Problem with too long querystring in (godaddy?) subdomains / virtual directories

    Update:
     
    By setting MultipleServerMode=true (Editor.config) and CuteEditorTempPath=writeable path, the problem is gone.
    Now querystrings are small again.
     
    It was not a GetHashString problem, but Serializing something (through FormsAuthentication.Encrypt) to the querystring... now with MultipleServerMode it uses file based storage.
     
     
     
View as RSS news feed in XML