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

Florent Albert edited comment on OLINGO-1518 at 3/11/25 8:21 PM:
-----------------------------------------------------------------

Recently faced this issue as well. Reproducible in Olingo 4.10 and 5.0.

It can be reproduced with a simple function with a String parameter.

Passing a '/' in the parameter ({_}GET 
/MyFunctionExample(ParameterExample='test /'){_} ) fails with "Wrong parameter 
value." at: 
org.apache.olingo.server.core.uri.parser.ParserHelper.parseFunctionParameters(ParserHelper.java:203)


was (Author: JIRAUSER294293):
Recently faced this issue as well.

It can be reproduced with a simple function with a String parameter.

Passing a '/' in the parameter ({_}GET 
/MyFunctionExample(ParameterExample='test /'){_} ) fails with "Wrong parameter 
value." at: 
org.apache.olingo.server.core.uri.parser.ParserHelper.parseFunctionParameters(ParserHelper.java:203)

> UriDecoder.splitAndDecodePath fails if a function argument value contains a 
> slash '/'
> -------------------------------------------------------------------------------------
>
>                 Key: OLINGO-1518
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1518
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>            Reporter: Peter Lawrence
>            Priority: Major
>
> UriDecoder.splitAndDecodePath simply splits the rawODataPath on '/'. However 
> a function or functionImport parameter value can legitimately contain a '/'. 
> When this occurs the request is rejected. An example URL is:
> localhost:8070/odata2sparql/calc2graph/rdfs_Resource('calc2graphData~BatteryLimit2')/pathql.factQuery(pathql='/:density')?$select=*&$format=json
> The parameter value '/:density' would be incorrectly rejected.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to