Skip to content

new URL_MAPPED_PARAMS_ALLOWED_CHARS break the code #338

@landrix

Description

@landrix

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

Metadata

Metadata

Assignees

Labels

acceptedIssue has been accepted and inserted in a future milestonebugregressionSomething has broken...

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions