Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-299

UriBuilder.build does not encode an equal sign

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.GA
    • None
    • None
    • None
    • Hide

      System.out.println(UriBuilder.fromUri("http://localhost/test").replaceQuery("a=

      {b}

      ").buildFromEncoded(URLEncoder.encode("=", "UTF-8")));

      Show
      System.out.println(UriBuilder.fromUri("http://localhost/test").replaceQuery("a= {b} ").buildFromEncoded(URLEncoder.encode("=", "UTF-8")));

      The following line is expected to produce "http://localhost/test?a=%3D" but it prints "http://localhost/test?a==":

      System.out.println(UriBuilder.fromUri("http://localhost/test").replaceQuery("a=

      {b}

      ").build("="));

              patriot1burke@gmail.com Bill Burke (Inactive)
              tarasp Taras Puchko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: