[JBoss JIRA] (ISPN-10748) Rest endpoint is not able to reach a preconfigured cache
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10748?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10748:
-------------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/7432
> 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)
6 years, 6 months
[JBoss JIRA] (ISPN-10512) Server Docs: CLI User Guide
by Donald Naro (Jira)
[ https://issues.jboss.org/browse/ISPN-10512?page=com.atlassian.jira.plugin... ]
Donald Naro updated ISPN-10512:
-------------------------------
Description:
Use asciidoc man pages for commands as reference content.
Add examples for CLI usage:
getting started
graceful cluster shutdown
using the schemas resource to hide protobuf metadata cache
batch from stdin
query paging
counters
xsite commands
TLS support
was:
Use asciidoc man pages for commands as reference content.
Add examples for CLI usage:
getting started
using the schemas resource to hide protobuf metadata cache
batch from stdin
query paging
counters
xsite commands
TLS support
> Server Docs: CLI User Guide
> ---------------------------
>
> Key: ISPN-10512
> URL: https://issues.jboss.org/browse/ISPN-10512
> Project: Infinispan
> Issue Type: Enhancement
> Components: Documentation-Servers
> Reporter: Donald Naro
> Assignee: Donald Naro
> Priority: Major
>
> Use asciidoc man pages for commands as reference content.
> Add examples for CLI usage:
> getting started
> graceful cluster shutdown
> using the schemas resource to hide protobuf metadata cache
> batch from stdin
> query paging
> counters
> xsite commands
> TLS support
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 6 months
[JBoss JIRA] (ISPN-10748) Rest endpoint is not able to reach a preconfigured cache
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10748?page=com.atlassian.jira.plugin... ]
Work on ISPN-10748 started by Gustavo Fernandes.
------------------------------------------------
> 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)
6 years, 6 months
[JBoss JIRA] (ISPN-10748) Rest endpoint is not able to reach a preconfigured cache
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10748?page=com.atlassian.jira.plugin... ]
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)
6 years, 6 months