You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/12/04 17:50:00 UTC

[jira] [Commented] (GEODE-7485) can not get index with "." in name by REST API for Management

    [ https://issues.apache.org/jira/browse/GEODE-7485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988045#comment-16988045 ] 

ASF subversion and git services commented on GEODE-7485:
--------------------------------------------------------

Commit 47266a260d48f4b0f91758c2100cc13fb643520a in geode's branch refs/heads/develop from Dale Emery
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=47266a2 ]

GEODE-7485: REST URLs accepts dots in trailing parameters (#4379)

By default, when Spring parses a request mapping parameter at the end of
a URL, it treats the last dot in the parmater value to be the start of a
file extension, and discards the 'extension" before passing the
parameter to the handler method.

Several of our configurable items allow dots in their IDs. And several
of our REST request mappings place those IDs at the end of the URL. In
those cases, Spring's default behavior truncates the ID at the last dot,
and passes the truncated ID to the request handler. As a result, the
request fails.

This commit configure all current management REST API request mappings
to allow dots in their final parameters.

Co-authored-by: Dale Emery <de...@pivotal.io>
Co-authored-by: Jinmei Liao <ji...@pivotal.io>
Co-authored-by: Dale Emery <de...@pivotal.io>

> can not get index with "." in name by REST API for Management 
> --------------------------------------------------------------
>
>                 Key: GEODE-7485
>                 URL: https://issues.apache.org/jira/browse/GEODE-7485
>             Project: Geode
>          Issue Type: Bug
>          Components: management, rest (admin)
>            Reporter: Gang Yan
>            Assignee: Dale Emery
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> precondition:  
>    1. there is a region named "Foo6" in cluster
>    2. RESTAPI for Management is on.
> steps to reproduce
> 1.  create index by GFSH, with a "." in index name,  such as "Foo6.name2"
> 2. get all the indexes by REST API for Management,  [GET]'/management/v1/indexes'
> 3.  in the response of [GET]'/management/v1/indexes',  a index named "Foo6.name2" will be found in the index list
> 4. and there is a "self" link in the links part of "Foo6.name2", it will be "http://localhost:7070/management/v1/regions/Foo6/indexes/Foo6.name2"
> 5. and then , when you click on this link,  you will get an error response:  "Index 'Foo6' does not exist."
> expected result:
> 1.  can get a index by click that link.
> possible cause:
>  1. maybe RESTAPI for Management can not deal with "." as index name



--
This message was sent by Atlassian Jira
(v8.3.4#803005)