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

new URL_MAPPED_PARAMS_ALLOWED_CHARS break the code #338

Closed
landrix opened this issue Mar 6, 2020 · 0 comments
Closed

new URL_MAPPED_PARAMS_ALLOWED_CHARS break the code #338

landrix opened this issue Mar 6, 2020 · 0 comments
Assignees
Labels
accepted Issue has been accepted and inserted in a future milestone bug regression Something has broken...
Milestone

Comments

@landrix
Copy link
Contributor

landrix commented Mar 6, 2020

this change

URL_MAPPED_PARAMS_ALLOWED_CHARS = ' àèéùòì''"@\[\]\{\}\(\)\=;&#\.:!\_\/,%\w\d\x2D\x3A';

break the code

i have 2 endpoints

[MVCProduces(TMVCMediaType.APPLICATION_JSON)]
[MVCHttpMethod([httpGET])]
[MVCPath('/($projectid)')]
procedure GetProject(CTX: TWebContext);

[MVCProduces(TMVCMediaType.APPLICATION_JSON)]
[MVCHttpMethod([httpGET])]
[MVCPath('/($projectid)/pictures/($imageuuid)')]
procedure GetImage(CTX: TWebContext);

if i call /($projectid)/pictures/($imageuuid), i will be routed to /($projectid) and get

/($projectid)/pictures/($imageuuid) as parameter

@landrix landrix changed the title new URL_MAPPED_PARAMS_ALLOWED_CHARS breaks the code new URL_MAPPED_PARAMS_ALLOWED_CHARS breakes the code Mar 6, 2020
@landrix landrix changed the title new URL_MAPPED_PARAMS_ALLOWED_CHARS breakes the code new URL_MAPPED_PARAMS_ALLOWED_CHARS break the code Mar 6, 2020
@danieleteti danieleteti added accepted Issue has been accepted and inserted in a future milestone bug regression Something has broken... labels Mar 6, 2020
@danieleteti danieleteti self-assigned this Mar 6, 2020
@danieleteti danieleteti added this to the 3.2.0-boron milestone Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue has been accepted and inserted in a future milestone bug regression Something has broken...
Projects
None yet
Development

No branches or pull requests

2 participants