[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes edited comment on ISPN-9439 at 8/20/18 1:53 PM:
------------------------------------------------------------------
For 9.3.x, unfortunately, only "text/plain" and jboss marshalled params are supported for scripts https://github.com/infinispan/infinispan/blob/9.3.x/tasks/scripting/src/m...
was (Author: gustavonalle):
For 9.3.x, unfortunately, only "text/plain" is supported for scripts https://github.com/infinispan/infinispan/blob/9.3.x/tasks/scripting/src/m...
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes commented on ISPN-9439:
-----------------------------------------
This should work on master.
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes edited comment on ISPN-9439 at 8/20/18 12:57 PM:
-------------------------------------------------------------------
This should work on master, could you test it?
was (Author: gustavonalle):
This should work on master.
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-9439:
------------------------------------
Status: Open (was: New)
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9439?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño reassigned ISPN-9439:
--------------------------------------
Assignee: Gustavo Fernandes
> Missing type id with remote execution and plain JSON
> ----------------------------------------------------
>
> Key: ISPN-9439
> URL: https://issues.jboss.org/browse/ISPN-9439
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Protocols
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
>
> Executing this script:
> {code}
> // mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
> cache.put(k, v);
> cache.get(k);
> {code}
> With these JSON parameters:
> {code}
> Param1: k
> Value1: {ek: 'local-json-typed-key'}
> Param 2: v
> Value2: {ev: 'local-json-typed-value'}
> {code}
> Results in:
> {code}
> org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
> at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9439) Missing type id with remote execution and plain JSON
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-9439:
--------------------------------------
Summary: Missing type id with remote execution and plain JSON
Key: ISPN-9439
URL: https://issues.jboss.org/browse/ISPN-9439
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 9.3.1.Final, 9.4.0.Beta1
Reporter: Galder Zamarreño
Executing this script:
{code}
// mode=local,language=javascript,parameters=[k, v],datatype='application/json; charset=utf-8'
cache.put(k, v);
cache.get(k);
{code}
With these JSON parameters:
{code}
Param1: k
Value1: {ek: 'local-json-typed-key'}
Param 2: v
Value2: {ev: 'local-json-typed-value'}
{code}
Results in:
{code}
org.infinispan.commons.CacheException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Missing type id when trying to resolve subtype of [simple type, class java.lang.Object]: missing type id property '_type'
at [Source: (byte[])"{"ev":"local-json-typed-value"}"; line: 1, column: 31]
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9429) Ship basic analyzers by default
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-9429?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-9429:
--------------------------------
Fix Version/s: 9.3.2.Final
> Ship basic analyzers by default
> -------------------------------
>
> Key: ISPN-9429
> URL: https://issues.jboss.org/browse/ISPN-9429
> Project: Infinispan
> Issue Type: Enhancement
> Components: Embedded Querying, Remote Querying
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1, 9.3.2.Final
>
>
> Currently it is necessary to implement {{org.infinispan.query.spi.ProgrammaticSearchMappingProvider}} in order to define analyzers so that they can be used on Remote Query, create and deploy a jar in the server and change the cache manager configuration to add a <module> section. For basic analyzers, we should avoid those steps by pre-configuring basic ones.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9429) Ship basic analyzers by default
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-9429?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-9429:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.4.0.CR1
Resolution: Done
> Ship basic analyzers by default
> -------------------------------
>
> Key: ISPN-9429
> URL: https://issues.jboss.org/browse/ISPN-9429
> Project: Infinispan
> Issue Type: Enhancement
> Components: Embedded Querying, Remote Querying
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1
>
>
> Currently it is necessary to implement {{org.infinispan.query.spi.ProgrammaticSearchMappingProvider}} in order to define analyzers so that they can be used on Remote Query, create and deploy a jar in the server and change the cache manager configuration to add a <module> section. For basic analyzers, we should avoid those steps by pre-configuring basic ones.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9434) Reading JSON content from untyped caches return escaped quotes
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9434?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-9434:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.4.0.CR1
9.4.0.Final
Resolution: Done
> Reading JSON content from untyped caches return escaped quotes
> --------------------------------------------------------------
>
> Key: ISPN-9434
> URL: https://issues.jboss.org/browse/ISPN-9434
> Project: Infinispan
> Issue Type: Bug
> Components: Hot Rod
> Affects Versions: 9.4.0.Beta1, 9.3.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1, 9.4.0.Final
>
>
> Reading content as "application/json" from caches without media type configured causes Infinispan to interpret the content as String first and then convert it to JSON, resulting in JSON string literal rather than a proper JSON.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months