[
https://issues.apache.org/jira/browse/OLINGO-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thorsten Hersam updated OLINGO-1379:
------------------------------------
Attachment: 0001-OLINGO-1379-fix-wrong-splitting-of-Uri-if-context-an.patch
> Wrong ODataRequest Uri Information if context and servlet path match
> --------------------------------------------------------------------
>
> Key: OLINGO-1379
> URL: https://issues.apache.org/jira/browse/OLINGO-1379
> Project: Olingo
> Issue Type: Bug
> Components: odata4-server
> Affects Versions: (Java) V4 4.6.0
> Reporter: Thorsten Hersam
> Priority: Major
> Labels: patch-available
> Attachments:
> 0001-OLINGO-1379-fix-wrong-splitting-of-Uri-if-context-an.patch
>
>
> If a deployable named "odata-adapter" provides a web servlet for url pattern
> "/odata/*", then the uri information of the ODataRequest are filled
> incorrectly.
>
> E.g.
> Request to
> "http://my-server:8080/odata-adapter/odata/OResource?$skip=0&$top=30" results
> in:
> * rawQueryPath = "$skip=0&$top=30"
> * rawRequestUri =
> "[http://my-server:8080/odata-adapter/odata/OResource?$skip=0&$top=30]"
> * rawODataPath = "-adapter/odata/OResource"
> * rawBaseUri = "http://my-server:8080/odata"
> But should be
> * rawQueryPath = "$skip=0&$top=30"
> * rawRequestUri =
> "[http://my-server:8080/odata-adapter/odata/OResource?$skip=0&$top=30]"
> * rawODataPath = "/OResource"
> * rawBaseUri = "http://my-server:8080/odata-adapter/odata"
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)