Skip to content

Test percent encoded paths in static files #695

@Kaliumhexacyanoferrat

Description

@Kaliumhexacyanoferrat

According to the specc, frameworks must accept URIs as defined in RFC 3986, which means they have to accept percent encoded URLs. The typical use case for this are special characters in file names. Handling this adds an additional layer of complexity that is usually skipped when the server recognizes there is no % in the URI.

So to force the frameworks to decode the incoming URL, I would suggest to add a static file with a non-ASCII character in it's name which is requested by the client with percent encoding applied.

For example, we can add a file named ~@file name.txt which translates to %7E%40file%20name.txt and is a valid file name on both Linux and Windows.

Include this file request in the validation as well as the benchmark itself to see whether there is a slow down in some frameworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsAbout test design, issues with tests etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions