You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Peter Lawrence <pe...@inova8.com> on 2017/06/15 11:18:15 UTC

Olingo Java Library 2.0.8 Batch statusLine handling issue with entity request

My odata v2 client is making a batch call of the form

GET Category('NWD:Category-3') HTTP/1.1

However the BatchTransformatorCommon.class uses within parseUri the
following validation of the uri

final URI uriObject = new URI(uri);

This fails with

java.net.URISyntaxException: Illegal character in scheme name at index 8:
Category('NWD:Category-3')

It seems that Olingo2 cannot include a request for an entity within a batch?

Any workarounds gratefully received

Peter
-- 
*Peter J. Lawrence*

*inova8*
*Providing answers for users' information questions*
*Mobile:* +1 330 631 3772 | *Phone:* +1 330 342 0582 |*Skype:*
 PeterJLawrence
*Email:* peter.lawrence@inova8.com | *Web:* www.inova8.com
*LinkedIn: **http://www.linkedin.com/in/peterjohnlawrence
<http://www.linkedin.com/in/peterjohnlawrence>*

Re: Olingo Java Library 2.0.8 Batch statusLine handling issue with entity request

Posted by Peter Lawrence <pe...@inova8.com>.
<<Might be the special character it is not parsing properly like colon(:).
 >>

Great catch, it was. Replacing:

Category('NWD:Category-3')

with

Category('NWD%3ACategory-3')

solves the problem.

Many thanks


On Thu, Jun 15, 2017 at 9:26 AM Tiwari, Rajnish <ra...@sap.com>
wrote:

> Hi Peter,
>
> Can you post the batch payload?
>
>
>
> There might be two issue here
>
> 1.       Might be the special character it is not parsing properly like
> colon(:).
>
> 2.       In batch payload try to add the following syntax
>
> GET Category('NWD:Category-3')*/?$format=json* HTTP/1.1
>
>
>
>
>
>
>
> Regards,
>
> Rajnish
>
>
>
> *From:* Peter Lawrence [mailto:peter.lawrence@inova8.com]
> *Sent:* Thursday, June 15, 2017 4:48 PM
> *To:* user@olingo.apache.org
> *Subject:* Olingo Java Library 2.0.8 Batch statusLine handling issue with
> entity request
>
>
>
> My odata v2 client is making a batch call of the form
>
>
>
> GET Category('NWD:Category-3') HTTP/1.1
>
>
>
> However the BatchTransformatorCommon.class uses within parseUri the
> following validation of the uri
>
>
>
> final URI uriObject = new URI(uri);
>
>
>
> This fails with
>
>
>
> java.net.URISyntaxException: Illegal character in scheme name at index 8:
> Category('NWD:Category-3')
>
>
>
> It seems that Olingo2 cannot include a request for an entity within a
> batch?
>
>
>
> Any workarounds gratefully received
>
>
>
> Peter
>
> --
>
> *Peter J. Lawrence*
>
>
>
> *inova**8*
>
> *Providing answers for users' information questions*
>
> *Mobile:* +1 330 631 3772 <(330)%20631-3772> | *Phone:* +1 330 342 0582
> <(330)%20342-0582> |*Skype:* PeterJLawrence
>
> *Email:* peter.lawrence@inova8.com | *Web:* www.inova8.com
>
> *LinkedIn: **http://www.linkedin.com/in/peterjohnlawrence
> <http://www.linkedin.com/in/peterjohnlawrence>*
>
-- 
*Peter J. Lawrence*

*inova8*
*Providing answers for users' information questions*
*Mobile:* +1 330 631 3772 | *Phone:* +1 330 342 0582 |*Skype:*
 PeterJLawrence
*Email:* peter.lawrence@inova8.com | *Web:* www.inova8.com
*LinkedIn: **http://www.linkedin.com/in/peterjohnlawrence
<http://www.linkedin.com/in/peterjohnlawrence>*

RE: Olingo Java Library 2.0.8 Batch statusLine handling issue with entity request

Posted by "Tiwari, Rajnish" <ra...@sap.com>.
Hi Peter,
Can you post the batch payload?

There might be two issue here

1.       Might be the special character it is not parsing properly like colon(:).

2.       In batch payload try to add the following syntax
GET Category('NWD:Category-3')/?$format=json HTTP/1.1



Regards,
Rajnish

From: Peter Lawrence [mailto:peter.lawrence@inova8.com]
Sent: Thursday, June 15, 2017 4:48 PM
To: user@olingo.apache.org
Subject: Olingo Java Library 2.0.8 Batch statusLine handling issue with entity request

My odata v2 client is making a batch call of the form

GET Category('NWD:Category-3') HTTP/1.1

However the BatchTransformatorCommon.class uses within parseUri the following validation of the uri

final URI uriObject = new URI(uri);

This fails with

java.net.URISyntaxException: Illegal character in scheme name at index 8: Category('NWD:Category-3')

It seems that Olingo2 cannot include a request for an entity within a batch?

Any workarounds gratefully received

Peter
--
Peter J. Lawrence

inova8
Providing answers for users' information questions
Mobile: +1 330 631 3772 | Phone: +1 330 342 0582 |Skype: PeterJLawrence
Email: peter.lawrence@inova8.com<ma...@inova8.com> | Web: www.inova8.com<http://www.inova8.com/>
LinkedIn: http://www.linkedin.com/in/peterjohnlawrence