[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes with value encoded as java primitives
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Steps to Reproduce:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
Change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
was:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
When trying to change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
> REST server can't handle entry changes with value encoded as java primitives
> ----------------------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12314) lsof check is too expensive
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12314?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-12314:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8679
> lsof check is too expensive
> ---------------------------
>
> Key: ISPN-12314
> URL: https://issues.redhat.com/browse/ISPN-12314
> Project: Infinispan
> Issue Type: Bug
> Components: Build
> Affects Versions: 12.0.0.Dev03
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 12.0.0.Dev04
>
>
> ISPN-12280 added a test run of {{lsof}} {{infinispan-server.xml}}, to ensure that it exists before trying to start the server and finding out that we can't kill it. Unfortunately, the test run is without any arguments, so the command execution takes a long time and lists all the open files in the system and put them in a system property.
> On my system, the output of {{lsof}} is 86MB, and now I can't run {{mvn -X}} with {{-Xmx512m}} any more.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes with value encoded as java primitives
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Summary: REST server can't handle entry changes with value encoded as java primitives (was: REST server can't handle entry changes with value encoded as java primitive)
> REST server can't handle entry changes with value encoded as java primitives
> ----------------------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Description:
It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
was:It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
> REST server can't handle entry changes encoded as java primitive
> ----------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes with value encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Summary: REST server can't handle entry changes with value encoded as java primitive (was: REST server can't handle entry changes encoded as java primitive)
> REST server can't handle entry changes with value encoded as java primitive
> ---------------------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Steps to Reproduce:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
When trying to change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
was:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
When trying to change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
it throws an error: "No marshaller registered for Java type java.lang.Integer"
> REST server can't handle entry changes encoded as java primitive
> ----------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Description: It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer" (was: It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error)
> REST server can't handle entry changes encoded as java primitive
> ----------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error "No marshaller registered for Java type java.lang.Integer"
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Description: It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error (was: It is possible to insert K/V via REST using )
> REST server can't handle entry changes encoded as java primitive
> ----------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> It is possible to insert K/V via REST using media types representing java primitives (such as {{application/x-java-object; type=java.lang.Integer}}) but changing the existing entries throws an error
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12315) REST server can't handle entry changes encoded as java primitive
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12315?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes updated ISPN-12315:
-------------------------------------
Description:
was:
Steps to Reproduce:
Create a protostream cache:
{noformat}
curl -u user:user -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","encoding":{"key":{"media-type":"application/x-protostream"},"value":{"media-type":"application/x-protostream"}}}}' http://127.0.0.1:11222/rest/v2/caches/myCache
{noformat}
Insert K and V as {{java.lang.Integer}}:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '1' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
When trying to change the existing value under the same key to another integer value:
{noformat}
curl -XPUT -v -u user:user -H "Key-Content-Type: application/x-java-object; type=java.lang.Integer" -H "Content-Type: application/x-java-object; type=java.lang.Integer" -d '2' "http://localhost:11222/rest/v2/caches/myCache/1"
{noformat}
it throws an error: "No marshaller registered for Java type java.lang.Integer"
> REST server can't handle entry changes encoded as java primitive
> ----------------------------------------------------------------
>
> Key: ISPN-12315
> URL: https://issues.redhat.com/browse/ISPN-12315
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 11.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months