Skip to content
Tcl Source Code History Of Ticket 2891171fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2891171fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2891171fffffffffffffffffffffffffffffffff

  1. Ticket change [8e48a46503] (rid 120088) by nijtmans on 2009-11-03 10:11:14:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Trying the following requiest through IE works fine:
       
      http://165.114.214.221/getParam.cgi?AIValue_00=?
      reply: AIValue_00=28192
       
      Doing the same through TCL:
      % package require http
      2.7
      % set url http://165.114.214.221
      http://165.114.214.221
      % set reply [::http::geturl ${url}/getParam.cgi?AIValue=?]
      Unsupported URL: http://165.114.214.221/getParam.cgi?AIValue=?
      %
      
      Analisis: The following line in the URLmatcher variable:
           ( / [^\#?]* (?: \? [^\#?]* )?)? # <path> (including query)
      Checks if the <path> part of the URL contains exactly
      one question mark. According through RFC 3986 this
      is how an URL should look like, but apparently there
      are URL's that violate this. There is no reason to
      restruct URL's this way, so I think the regular
      expression should be relaxed.
      
      Suggestion: replace the mentioned line with:
            ( / [^\#]*)?                    # <path> (including query)
      should do the trick.
      
      If no-one objects, I will check this change in, in
      a few days.
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nijtmans"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      URl checking too strict when using multiple question marks
      
    12. type initialized to: "Bug"
  2. Ticket change [8eda46a008] (rid 120186) by dkf on 2009-11-03 17:47:42:

    1. icomment:
      A '?' in the request parameter should be encoded as '%3f'.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [93d0f318bc] (rid 105870) by nijtmans on 2009-11-03 18:02:42:

    1. icomment:
      >A '?' in the request parameter should be encoded as '%3f'.
      
      Yes, that was my first though too. But in this case, the question
      mark is not used as a value, it is a separator, so encoding
      it as %3f does not work with this service.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Ticket change [e27d65ad50] (rid 87639) by dkf on 2009-11-03 18:47:39:

    1. icomment:
      Does it work in any browser other than IE? If not, it's just a broken site and we shouldn't introduce breakage into the http package just to allow for this one stupidity.
      
      As evidence, I cite RFC 1738 which states that "?" is one of the reserved characters in the <searchpart> (the part of the query after the first "?" character).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [78b2cc3b0a] (rid 90005) by coldstore on 2009-11-03 18:58:26:

    1. icomment:
      Can't you get the server fixed?
      
      
    2. login: "coldstore"
    3. mimetype: "text/plain"
    4. username: "coldstore"
  6. Ticket change [5e7f3f8e9a] (rid 115645) by matzek on 2009-11-03 19:01:34:

    1. icomment:
      I am also against such a move. If this is really needed and going to be implemented, please ensure it either has to be explicitly switched on, or can at least be switched off...
      
      -- Matthias Kraft
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  7. Ticket change [174ef65a9b] (rid 122466) by nijtmans on 2009-11-03 19:14:33:

    1. icomment:
      So, I am glad I brought this up. So many reactions. Thanks all!
      
      Answerings: Yes Firefox and other browsers behave the same
      way. No browser does automatic URL-encoding. They all
      pas through the exact URL given.
      
      No, I cannot get the server fixed. RFC 1738 is
      indeed rather misleading in the interpretation
      of what is allowed in the <query> part of an URL.
      
      Lucky enough, RFC 3986 has a much clearer
      description, which convinced me that multiple
      question marks are allowed in a quiery. Citing:
      this RFC:
      
      ===================================
      3.4.  Query
      
         The query component contains non-hierarchical data that, along with
         data in the path component (Section 3.3), serves to identify a
         resource within the scope of the URI's scheme and naming authority
         (if any).  The query component is indicated by the first question
         mark ("?") character and terminated by a number sign ("#") character
         or by the end of the URI.
      
            query       = *( pchar / "/" / "?" )
      
         The characters slash ("/") and question mark ("?") may represent data
         within the query component.  Beware that some older, erroneous
         implementations may not handle such data correctly when it is used as
         the base URI for relative references (Section 5.1), apparently
         because they fail to distinguish query data from path data when
         looking for hierarchical separators.  However, as query components
         are often used to carry identifying information in the form of
         "key=value" pairs and one frequently used value is a reference to
         another URI, it is sometimes better for usability to avoid percent-
         encoding those characters.
      
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  8. Ticket change [4237fa9f98] (rid 116330) by dgp on 2009-11-10 22:58:50:

    1. icomment:
      
      nijtmans, please commit your patch
      to go in http 2.7.4 distributed with
      Tcl 8.5.8 and 8.6b2.  Thanks.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [433103c4e1] (rid 116507) by dgp on 2009-11-10 22:58:51:

    1. priority changed to: "9 Immediate"
  10. Ticket change [c0c4a6b47e] (rid 102471) by patthoyts on 2009-11-10 23:03:26:

    1. icomment:
      When the strict uri checking code went in (during 8.5 development iirc) it got a -strict option added to disable it. So http::geturl $uri -strict 0 will probably have let you work with this as it stands.
      However, I would support changing this to match the URI rfc as you've quoted below. We are evidently being too strict.
      No objection.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  11. Ticket change [2fbc5947a3] (rid 93116) by patthoyts on 2009-11-10 23:03:27:

    1. priority changed to: "5 Medium"
  12. Ticket change [3ba1920ceb] (rid 112777) by matzek on 2009-11-11 03:53:21:

    1. icomment:
      I hereby withdraw my objection :-) ... I read through the RFCs and it seems I indeed had the wrong impression that there is a strict definition of the last part of the URL notation.
      
      -- Matthias Kraft
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  13. Ticket change [d1a4700a9b] (rid 113390) by dkf on 2009-11-11 19:47:01:

    1. icomment:
      I see that you committed a fix for this. Are you going to backport?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. username: "dkf"
  14. Ticket change [c065dfb6d5] (rid 102397) by nijtmans on 2009-11-11 19:55:44:

    1. icomment:
      Yes, I am planning to backport this, but I cannot do it until tonight. Don, feel free to do it, if you are waiting for it in order to complete the 8.5.8 release.....
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  15. Ticket change [8b39f146f7] (rid 127525) by dgp on 2009-11-11 23:00:31:

    1. icomment:
      
      sorry about the bad advice.  I had forgotten
      that the http packages on the 8-5 and 8-6
      branches had already diverged.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [2b637e1192] (rid 118733) by dgp on 2009-11-11 23:15:16:

    1. closedate changed to: "2009-11-11T16:15:16"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      
      backport to http 2.7.5 (distributed with Tcl 8.5.8)
      completed.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "dgp"