[
https://issues.apache.org/jira/browse/GEODE-7938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073991#comment-17073991
]
Darrel Schneider commented on GEODE-7938:
-----------------------------------------
It turns out that any slashes at the beginning of the first key, for example
"/region////key" are removed from the key (in this example the actual key would
be "key" instead of the expected "///key").
Also consecutive slashes anywhere else in the key become a single slash (for
example "/region/key//one//" the key would be "key/one/" instead of the
expected "key/one/".
> dev rest api should allow '.' and '/' characters in region keys
> ---------------------------------------------------------------
>
> Key: GEODE-7938
> URL: https://issues.apache.org/jira/browse/GEODE-7938
> Project: Geode
> Issue Type: Bug
> Components: rest (dev)
> Reporter: Darrel Schneider
> Assignee: Darrel Schneider
> Priority: Major
> Fix For: 1.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The dev rest api has multiple endpoints that can take region entry keys
> either as path variables or as query parameters. If the key contains a "/"
> then it can cause problems with parsing the URL. The '.' character also
> causes problems.
> The operations and endpoints that do not allow '.' and '/' in region keys are:
> {noformat}
> GET, PUT, and DELETE on /v1/{region}/{keys}
> POST on /v1/{region}?key={key}
> {noformat}
> A solution should be found that does not break backwards compatibility but
> that also allows these characters to be in the specified region key(s).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)