Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-3317

URL query string order is undefined

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Accepted
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • libprocess

    Description

      A `process::http::URL` instance has its query strings stored in a hashmap. Stringifying the instance will use the order defined by the hash function to order the query strings. This order depends on the concrete implementation of the hash function.
      A well defined query string order (e.g. in alphabetical order) may be important for bot detection. If the query strings should be in an alphabetic order, multiple solutions are possible:
      1. Use map instead of hashmap for defining query string in URLs
      2. Order the query strings while creating the URL string
      3. Provide an own string hash function that guarantees a certain order

      Attachments

        Activity

          People

            a10gupta Abhishek Dasgupta
            nfnt Jan Schlicht
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: