Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-599

Template with {**} in queries are expanded with =null for query params without a value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Server
    • None

    Description

      A template like this

      {scheme}://{host}:{port}/{path=**}?{**}
      

      when matched with a URI like this

      http://example.com/path?flag
      

      and expanded with the same template will result a string like this

      http://hortonworks.com:8888/top/mid/bot/file?flag=null&name=value
      

      which is incorrect. The correct value should not contain =null and might look like this

      http://hortonworks.com:8888/top/mid/bot/file?flag&name=value
      

      Attachments

        1. KNOX-599_001.patch
          25 kB
          Kevin Minder

        Issue Links

          Activity

            People

              kminder Kevin Minder
              kminder Kevin Minder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: