Skip to content

uri fragments handled incorrectly by CookieHttpSessionStrategy.encodeUrl #539

@mattluce

Description

@mattluce

URI Fragments are not handled properly by encodeUrl. See test below.

Using UriComponentsBuilder in encodeUrl fixes this issue.

@Test
public void encodeUrlWithFragment() {
    assertThat(new CookieHttpSessionStrategy().encodeURL("/url?a=b#xyz", "2"))
            .isEqualTo("/url?a=b&_s=2#xyz");
}}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions