[infinispan-issues] [JBoss JIRA] (ISPN-10476) SinglePort routing is broken for REST

Gustavo Fernandes (Jira) issues at jboss.org
Fri Sep 6 04:05:00 EDT 2019


    [ https://issues.jboss.org/browse/ISPN-10476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13780199#comment-13780199 ] 

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)


More information about the infinispan-issues mailing list