Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-211

Tools.postFromURL creates bad request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.3, 1.1.3, 2.0.0 M3
    • 1.0.2, 1.1.2, 2.0.0 M3
    • None
    • None
    • Firefox

      The Tools.postFromURL method creates bad request with firefox when there is no parameter.

      Example : 411 HTTP response from the Anyware proxy :

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
      <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
      <STYLE type="text/css"><!--BODY

      {background-color:#ffffff;font-family:verdana,sans-serif}

      PRE

      {font-family :sans-serif}

      --></STYLE>
      </HEAD><BODY>
      <H1>ERROR</H1>
      <H2>The requested URL could not be retrieved</H2>
      <HR noshade size="1px">
      <P>
      While trying to process the request:
      <PRE>
      POST /cms/contributor/faq/FAQ/faq/getlist HTTP/1.1
      Host: cales.uomlr.fr
      User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080718 Ubuntu/8.04 (hardy) Firefox
      /2.0.0.16
      Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/
      *;q=0.5
      Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 300
      Connection: keep-alive
      Content-Type: application/x-www-form-urlencoded
      Referer: http://cales.uomlr.fr/cms/fr/_contributor/faq/FAQ/faq.html
      Cookie: JSESSIONID=3B95265672BC4FDB597A5E8D0368CF62; _saml_idp=dXJuOm1hY2U6Y3J1LmZyOmZlZGVyYXRpb246dW5pdi1tb250cDMuZnI
      %3D; _shibsession_763265578a74683ca042e79becef4955ee3b11fc=_933ebd0e8b0f2549a77102f28101063f; _shibstate_763265578a74683ca042e79becef4955ee3b11fc
      =http%3A%2F%2Fcales.uomlr.fr%2Fcms
      Pragma: no-cache
      Cache-Control: no-cache
      </PRE>
      <P>
      The following error was encountered:
      <UL>
      <LI>
      <STRONG>
      Invalid Request
      </STRONG>
      </UL>
      <P>
      Some aspect of the HTTP Request is invalid. Possible problems:
      <UL>
      <LI>Missing or unknown request method
      <LI>Missing URL
      <LI>Missing HTTP Identifier (HTTP/1.0)
      <LI>Request is too large
      <LI>Content-Length missing for POST or PUT requests
      <LI>Illegal character in hostname; underscores are not allowed
      </UL>
      <P>Your cache administrator is <A HREF="mailto:sysadmin@anyware-tech.com">sysadmin@anyware-tech.com<
      /A>.
      <BR clear="all">
      <HR noshade size="1px">
      <ADDRESS>
      Generated Tue, 21 Oct 2008 12:52:40 GMT by proxy.anyware (squid/2.6.STABLE18)
      </ADDRESS>
      </BODY></HTML>

            cedric Cédric Damioli
            alepplin Anne-Laure Epplin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: