[infinispan-issues] [JBoss JIRA] (ISPN-10748) Rest endpoint is not able to reach a preconfigured cache
Gustavo Fernandes (Jira)
issues at jboss.org
Mon Oct 14 08:52:05 EDT 2019
[ https://issues.jboss.org/browse/ISPN-10748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gustavo Fernandes updated ISPN-10748:
-------------------------------------
Status: Open (was: New)
> Rest endpoint is not able to reach a preconfigured cache
> --------------------------------------------------------
>
> Key: ISPN-10748
> URL: https://issues.jboss.org/browse/ISPN-10748
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.0.CR3
> Reporter: Diego Lovison
> Assignee: Gustavo Fernandes
> Priority: Blocker
>
> infinispan.xml
> {code:xml}
> <cache-container name="default">
> <transport cluster="${infinispan.cluster.name}" stack="${infinispan.cluster.stack:tcp}"/>
> <distributed-cache name="rest"/>
> </cache-container>
> {code}
> {code:java}
> public static void main(String[] args) throws IOException {
> String key = "k1";
> String value = "v1";
> OkHttpClient client = new OkHttpClient();
> String url = "http://%s:%s/rest/v2/caches/%s/%s";
> //String url = "http://%s:%s/rest/%s/%s";
> Request request = new Request.Builder()
> .url(String.format(url, "localhost", 11222, "rest", key))
> .put(RequestBody.create(TEXT_PLAIN, value))
> .build();
> Response response = client.newCall(request).execute();
> assertEquals(200, response.code());
> }
> {code}
> A few notes:
> * When created via rest, it works.
> * When using the v2 rest endpoint, it works.
> * It is only failing with the legacy endpoint.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list