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

Cannot use curly bracket in url for path param #270

Open
syamsu-smansa opened this issue Feb 24, 2023 · 1 comment
Open

Cannot use curly bracket in url for path param #270

syamsu-smansa opened this issue Feb 24, 2023 · 1 comment

Comments

@syamsu-smansa
Copy link

syamsu-smansa commented Feb 24, 2023

example:

/data/{filename}.doc
and
/data/{filename}.pdf

when access using

http://localhost:8080/data/finance-doc.doc
or
http://localhost:8080/data/finance-doc.pdf

it should valid with

request.getPathParameter('filename') = 'finance-doc'

both result will be finance-doc

but if you use a colon, the extension at the end url will carry over

/data/:filename.pdf

it only valid with:

request.getPathParameter('filename.pdf')

when access using

http://localhost:8080/data/finance-doc.pdf

the result will be : finance-doc.pdf

@eduard-vasinskyi
Copy link
Contributor

Hi, @syamsu-smansa

ActiveJ's RoutingServlet does not support curly braces patterns. Path parameters are defined via colon.

We will consider adding support for path parameters defined using curly braces in the next ActiveJ versions.

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

No branches or pull requests

2 participants