You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual behavior:
When annotating a webscript class with: @WebScript(baseUri = /v1/test)
And annotating the actual webscript method with: @Uri(value = "", method = HttpMethod.GET)
A request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test wil result in a 404,
And a request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/ wil actually call our method.
Actual behavior:
When annotating a webscript class with: @WebScript(baseUri = /v1/test)
And annotating the actual method with: @Uri(value = "/{aVariable}/test", method = HttpMethod.GET)
A request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test/ wil result in a 404,
And a request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test wil actually call our method.
Expected behavior:
What we expect is that in both cases, both for requests with and without ending backslash, our method will be called.
The text was updated successfully, but these errors were encountered:
Workaround
It is possible to provide a String array as value of the @Uri annotation: @Uri(value = {"/{aVariable}/test", "/{aVariable}/test/"}, method = HttpMethod.GET)
A request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test/ wil actually call our method.
And a request to {{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test wil actually call our method.
Actual behavior:
When annotating a webscript class with:
@WebScript(baseUri = /v1/test)
And annotating the actual webscript method with:
@Uri(value = "", method = HttpMethod.GET)
A request to
{{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test
wil result in a 404,And a request to
{{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/
wil actually call our method.Actual behavior:
When annotating a webscript class with:
@WebScript(baseUri = /v1/test)
And annotating the actual method with:
@Uri(value = "/{aVariable}/test", method = HttpMethod.GET)
A request to
{{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test/
wil result in a 404,And a request to
{{scheme}}://{{host}}:{{port}}/alfresco/service/v1/test/aVariable/test
wil actually call our method.Expected behavior:
What we expect is that in both cases, both for requests with and without ending backslash, our method will be called.
The text was updated successfully, but these errors were encountered: