[
https://issues.apache.org/jira/browse/OLINGO-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17933915#comment-17933915
]
Dmytro Sylaiev commented on OLINGO-1476:
----------------------------------------
Also there's an issue if server returns @odata.nextLink URI as relative,
ClientEntitySetImpl tries to create a URI instance and failing with relative
URL provided.
> AsyncRequestWrapperImpl failed to process relative URL in Location header.
> --------------------------------------------------------------------------
>
> Key: OLINGO-1476
> URL: https://issues.apache.org/jira/browse/OLINGO-1476
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: (Java) V4 4.7.1
> Reporter: Ricky Li
> Priority: Critical
>
> For async OData request, if a relative URL(such as: ../../_async('EQ1XW')) is
> returned from server side, an exception will be reported by
> _AsyncRequestWrapperImpl.checkLocation_ function.
> I think that should be a 'shortcoming' of OLingo, not only are relative URLs
> allowed/supported according to the OData standard, better yet they SHOULD be
> relative for the sole reason that often the server maybe work behind a proxy,
> which resides at a different URI, likely on a different HOST, most likely
> running on a different port and most definitely accepting request on a
> different service root path.
> Relative URLs, part of the HTTP standard on which OData, are exactly there to
> make these transitions easy.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)