[JBoss JIRA] (ISPN-10589) REST Resources allow for ambiguous paths
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10589?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10589:
-------------------------------------
Description:
The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
{{/context/\{variable\}}} and {{/context/subpath}}
was:
The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
{{/context/{variable}}} and {{/context/subpath}}
> REST Resources allow for ambiguous paths
> ----------------------------------------
>
> Key: ISPN-10589
> URL: https://issues.jboss.org/browse/ISPN-10589
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.0.CR1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
> {{/context/\{variable\}}} and {{/context/subpath}}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-10589) REST Resources allow for ambiguous paths
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-10589?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes updated ISPN-10589:
-------------------------------------
Description:
The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
{{/context/{variable}}} and {{/context/subpath}}
was:
The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
/context/{variable} and /context/subpath
> REST Resources allow for ambiguous paths
> ----------------------------------------
>
> Key: ISPN-10589
> URL: https://issues.jboss.org/browse/ISPN-10589
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 10.0.0.CR1
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
> The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
> {{/context/{variable}}} and {{/context/subpath}}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-10589) REST Resources allow for ambiguous paths
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-10589:
----------------------------------------
Summary: REST Resources allow for ambiguous paths
Key: ISPN-10589
URL: https://issues.jboss.org/browse/ISPN-10589
Project: Infinispan
Issue Type: Bug
Affects Versions: 10.0.0.CR1
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
The validation is not detecting ambiguous resources paths and is allowing registration of two resources like
/context/{variable} and /context/subpath
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-10460) Remove NestedAttributeSerializer
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-10460?page=com.atlassian.jira.plugin... ]
Dan Berindei updated ISPN-10460:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 10.0.0.CR2
Resolution: Done
> Remove NestedAttributeSerializer
> --------------------------------
>
> Key: ISPN-10460
> URL: https://issues.jboss.org/browse/ISPN-10460
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core
> Affects Versions: 10.0.0.Beta5
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
> Fix For: 10.0.0.CR2
>
>
> {{Attribute}} definitions from {{Configuration}} classes shouldn't be rendered as JSON objects but as fields of a JSON Object that is mapped to a (sub)Configuration. Follow up on ISPN-10452
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-9657) Multimap jar is not OSGi compliant
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9657?page=com.atlassian.jira.plugin.... ]
Dan Berindei commented on ISPN-9657:
------------------------------------
Missed a failure in HotRodCounterIT caused by the counter module jar including counter API classes (which should have been only in the commons jar).
{noformat}
[OK: 0, KO: 1, SKIP: 0] Test failed: HotRodCounterIT.testCounters
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=5 returned server error (status=0x85): java.lang.LinkageError: loader constraint violation: when resolving method "org.infinispan.counter.impl.manager.EmbeddedCounterManager.defineCounterAsync(Ljava/lang/String;Lorg/infinispan/counter/api/CounterConfiguration;)Ljava/util/concurrent/CompletableFuture;" the class loader 'org.infinispan.server.hotrod:ispn-10.0@10.0.0-SNAPSHOT' @3869578e (instance of org.jboss.modules.ModuleClassLoader, child of 'app' jdk.internal.loader.ClassLoaders$AppClassLoader) of the current class, org/infinispan/server/hotrod/CounterRequestProcessor, and the class loader 'org.infinispan.counter:ispn-10.0@10.0.0-SNAPSHOT' @21b834d3 (instance of org.jboss.modules.ModuleClassLoader, child of 'app' jdk.internal.loader.ClassLoaders$AppClassLoader) for the method's defining class, org/infinispan/counter/impl/manager/EmbeddedCounterManager, have different Class objects for the type org/infinispan/counter/api/CounterConfiguration used in the signature
at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:340)
at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:177)
at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:94)
{noformat}
> Multimap jar is not OSGi compliant
> ----------------------------------
>
> Key: ISPN-9657
> URL: https://issues.jboss.org/browse/ISPN-9657
> Project: Infinispan
> Issue Type: Bug
> Components: Multimap
> Affects Versions: 9.4.0.Final
> Reporter: Alain Picard
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 10.0.0.CR2, 10.0.0.Final
>
>
> Due to issues related to using the embedded jar (see [here|https://developer.jboss.org/message/986042#986042], when switching to individual jars, the multimap jar (infinispan-multimap-9.4.0.Final.jar) doesn't provide a valid OSGi manifest.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-9657) Multimap jar is not OSGi compliant
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9657?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-9657:
-------------------------------
Git Pull Request: https://github.com/infinispan/infinispan/pull/6637, https://github.com/infinispan/infinispan/pull/6638, https://github.com/infinispan/infinispan/pull/6640, https://github.com/infinispan/infinispan/pull/6641, https://github.com/infinispan/infinispan/pull/7132, https://github.com/infinispan/infinispan/pull/7298 (was: https://github.com/infinispan/infinispan/pull/6637, https://github.com/infinispan/infinispan/pull/6638, https://github.com/infinispan/infinispan/pull/6640, https://github.com/infinispan/infinispan/pull/6641, https://github.com/infinispan/infinispan/pull/7132)
> Multimap jar is not OSGi compliant
> ----------------------------------
>
> Key: ISPN-9657
> URL: https://issues.jboss.org/browse/ISPN-9657
> Project: Infinispan
> Issue Type: Bug
> Components: Multimap
> Affects Versions: 9.4.0.Final
> Reporter: Alain Picard
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 10.0.0.CR2, 10.0.0.Final
>
>
> Due to issues related to using the embedded jar (see [here|https://developer.jboss.org/message/986042#986042], when switching to individual jars, the multimap jar (infinispan-multimap-9.4.0.Final.jar) doesn't provide a valid OSGi manifest.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months
[JBoss JIRA] (ISPN-10588) Intermittent exception when deleting counters
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-10588:
----------------------------------------
Summary: Intermittent exception when deleting counters
Key: ISPN-10588
URL: https://issues.jboss.org/browse/ISPN-10588
Project: Infinispan
Issue Type: Bug
Components: Clustered Counter
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
It manifests when running the rest tests on CI machines. The CounterResource fails with the exception:
{noformat}
java.util.concurrent.CompletionException: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from CounterResourceTest-NodeB-36672, see cause for remote stack trace
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1113)
at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)
at org.infinispan.rest.resources.CounterResource.deleteCounter(CounterResource.java:109)
at org.infinispan.rest.framework.impl.RestDispatcherImpl.dispatch(RestDispatcherImpl.java:57)
at org.infinispan.rest.RestRequestHandler.handleRestRequest(RestRequestHandler.java:106)
at org.infinispan.rest.RestRequestHandler.channelRead0(RestRequestHandler.java:63)
at org.infinispan.rest.Http11RequestHandler.channelRead0(Http11RequestHandler.java:35)
at org.infinispan.rest.Http11RequestHandler.channelRead0(Http11RequestHandler.java:18)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from CounterResourceTest-NodeB-36672, see cause for remote stack trace
at org.infinispan.remoting.transport.ResponseCollectors.wrapRemoteException(ResponseCollectors.java:28)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.withException(ValidSingleResponseCollector.java:37)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.addResponse(ValidSingleResponseCollector.java:21)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.addResponse(SingleTargetRequest.java:70)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:40)
at org.infinispan.remoting.transport.impl.RequestRepository.addResponse(RequestRepository.java:52)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1393)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1296)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$300(JGroupsTransport.java:128)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.up(JGroupsTransport.java:1441)
at org.jgroups.JChannel.up(JChannel.java:775)
... 1 more
Suppressed: org.infinispan.util.logging.TraceException
at org.infinispan.interceptors.impl.SimpleAsyncInvocationStage.get(SimpleAsyncInvocationStage.java:41)
at org.infinispan.interceptors.impl.AsyncInterceptorChainImpl.invoke(AsyncInterceptorChainImpl.java:246)
at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1835)
at org.infinispan.cache.impl.CacheImpl.remove(CacheImpl.java:676)
at org.infinispan.cache.impl.CacheImpl.remove(CacheImpl.java:670)
at org.infinispan.cache.impl.AbstractDelegatingCache.remove(AbstractDelegatingCache.java:454)
at org.infinispan.cache.impl.EncoderCache.remove(EncoderCache.java:685)
at org.infinispan.counter.impl.weak.WeakCounterImpl.removeWeakCounter(WeakCounterImpl.java:117)
at org.infinispan.counter.impl.manager.EmbeddedCounterManager.removeCounter(EmbeddedCounterManager.java:282)
at org.infinispan.counter.impl.manager.EmbeddedCounterManager.lambda$removeCounter$0(EmbeddedCounterManager.java:129)
at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
at org.infinispan.counter.impl.manager.EmbeddedCounterManager.removeCounter(EmbeddedCounterManager.java:128)
at org.infinispan.counter.impl.manager.EmbeddedCounterManager.undefineCounter(EmbeddedCounterManager.java:137)
Caused by: java.lang.ClassCastException: class org.infinispan.counter.impl.weak.WeakCounterKey cannot be cast to class [B (org.infinispan.counter.impl.weak.WeakCounterKey is in unnamed module of loader 'app'; [B is in module java.base of loader 'bootstrap')
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.infinispan.marshall.exts.ThrowableExternalizer.readGenericThrowable(ThrowableExternalizer.java:282)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:259)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:748)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:729)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:378)
at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:748)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:729)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:378)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:212)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:241)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1385)
... 21 more
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.5#713005)
6 years, 3 months