Skip to content

Adding request parameter template variables to a URI already containing one produce invalid template #1696

Closed

Description

@odrotbohm

Fails on 1.4 works on 1.3:

UriTemplate template = UriTemplate.of("/foo.zip?type=foo")
  .with(new TemplateVariable("bar", VariableType.REQUEST_PARAM));

assertThat(template.toString()).isEqualTo("/foo.zip?type=foo{&bar}");

On 1.4 the template variable is added as is while it was converter into a request parameter continuation on 1.3.

Activity

  1. added
    in: core
    on Oct 28, 2021
  2. added this to the 1.4 GA milestone on Oct 28, 2021
  3. self-assigned this
    on Oct 28, 2021
  4. added a commit that references this issue on Oct 28, 2021
  5. snicoll commented on Oct 29, 2021

    @snicoll
    Member

    I ran our test suite again the snapshot and it's passing. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions