Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded slash in param breaks route #528

Closed
flarno11 opened this issue Apr 26, 2016 · 0 comments
Closed

Encoded slash in param breaks route #528

flarno11 opened this issue Apr 26, 2016 · 0 comments
Labels

Comments

@flarno11
Copy link

flarno11 commented Apr 26, 2016

There's a serious bug introduced with commit b621367
An encoded slash completely breaks the route

E.g. add Test in GenericIntegrationTest.java:

    @Test
    public void testParamWithEncodedSlash() throws Exception {
        String polyglot = "te/st";
        String encoded = "te%2Fst";
        UrlResponse response = testUtil.doMethod("GET", "/param/" + encoded, null);
        Assert.assertEquals(200, response.status);
        Assert.assertEquals("echo: " + polyglot, response.body);
    }

fails with a 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants