[
https://issues.apache.org/jira/browse/IGNITE-5121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002081#comment-16002081
]
ASF GitHub Bot commented on IGNITE-5121:
----------------------------------------
GitHub user shroman opened a pull request:
https://github.com/apache/ignite/pull/1920
IGNITE-5121: REST API call with empty cache name to call "default."
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shroman/ignite IGNITE-5121
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/ignite/pull/1920.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1920
----
commit 7b3d627449410ee0d452ed89dabae747534d632f
Author: shroman <[email protected]>
Date: 2017-05-09T05:45:57Z
IGNITE-5121: REST API call with empty cache name to call "default."
----
> REST API call with empty cache name causes NPE
> ----------------------------------------------
>
> Key: IGNITE-5121
> URL: https://issues.apache.org/jira/browse/IGNITE-5121
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Sergey Kozlov
> Assignee: Roman Shtykh
> Priority: Minor
> Fix For: 2.1
>
>
> Request cache entry without cacheName causes NPE on the node:
> {noformat}
> [19:58:33,960][SEVERE][qtp153051342-48][GridJettyRestProtocol] Failed to
> process HTTP request [action=/ignite, req=(POST
> /ignite?cmd=get&key=mykey-529&clientId=2128506-ad94-4a21-a711-529&cacheName=)@2130154253
> org.eclipse.jetty.server.Request@7ef7930d]
> class org.apache.ignite.IgniteCheckedException: null
> at
> org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7242)
> at
> org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:172)
> at
> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
> at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
> at
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.cache(GridCacheProcessor.java:3439)
> at
> org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.localCache(GridCacheCommandHandler.java:752)
> at
> org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.executeCommand(GridCacheCommandHandler.java:678)
> at
> org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.handleAsync(GridCacheCommandHandler.java:427)
> at
> org.apache.ignite.internal.processors.rest.GridRestProcessor.handleRequest(GridRestProcessor.java:266)
> at
> org.apache.ignite.internal.processors.rest.GridRestProcessor.access$100(GridRestProcessor.java:89)
> at
> org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:155)
> ... 4 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)