[JBoss JIRA] (ISPN-10476) SinglePort routing is broken for REST
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10476?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes edited comment on ISPN-10476 at 9/6/19 4:04 AM:
------------------------------------------------------------------
* it does not enforce the {{configuration.contextPath()}} from the REST connector, and thus accepts any context, e.g. both {{http://localhost:11222/rest/v2/server}} and {{http://localhost:11222/random-text/v2/server}} return the response
* When omitting the context, e.g. {{http://localhost:11222/v2/server}} instead of returning 404 it tries to interpret the call as a REST v1 API and returns "ISPN012010: Cache with name 'server' not found amongst the configured caches"
* Without any context, it always interprets as index.html, e.g. {{http://localhost:11222/random-text}} will bring the same result as {{http://localhost:11222/}}
was (Author: gustavonalle):
* it does not enforce the {{configuration.contextPath()}} from the REST connector, and thus accepts any context, e.g. both {{http://localhost:11222/rest/v2/server}} and {{http://localhost:11222/random-text/v2/server}} return the response
* When omitting the context, e.g. {{http://localhost:11222/v2/server}} instead of returning 404 it tries to interpret the call as a REST v1 API and returns "ISPN012010: Cache with name 'server' not found amongst the configured caches"
* Without any context, it always interprets are index.html, e.g. {{http://localhost:11222/random-text}} will bring the same result as {{http://localhost:11222/}}
> SinglePort routing is broken for REST
> -------------------------------------
>
> Key: ISPN-10476
> URL: https://issues.jboss.org/browse/ISPN-10476
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
4 years, 8 months