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

UriBuilder.queryParam doesn't support templates

XMLWordPrintable

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

      The workaround is to use UriBuilder.replaceQuery:

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

      {b}

      ").build("c"));

      Show
      The workaround is to use UriBuilder.replaceQuery: System.out.println(UriBuilder.fromUri("http://localhost/test").replaceQuery("a= {b} ").build("c"));

      The following line is expected to produce "http://localhost/test?a=c" but it fails with java.lang.IllegalArgumentException: You provided too many values:

      System.out.println(UriBuilder.fromUri("http://localhost/test").queryParam("a", "

      {b}

      ").build("c"));

            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: