[ https://issues.apache.org/jira/browse/OLINGO-272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17188269#comment-17188269 ]
Jan Ypma commented on OLINGO-272: --------------------------------- A workaround from the client side is to extend {{DefaultHttpUriRequestFactory}}, and for requests that have a method POST, return a subclass of {{HttpPost}}, that overrides {{setEntity()}} to always wrap its entity in a {{BufferedHttpEntity}}. > https authentication request results in NonRepeatableRequestException > --------------------------------------------------------------------- > > Key: OLINGO-272 > URL: https://issues.apache.org/jira/browse/OLINGO-272 > Project: Olingo > Issue Type: Bug > Components: odata4-client > Affects Versions: (Java) V4 4.0.0-beta-01 > Reporter: Challen He > Assignee: Challen He > Priority: Major > Fix For: (Java) V4 4.0.0-beta-01 > > > step1, > client.getConfiguration().setHttpClientFactory( new > BasicAuthHttpClientFactory("xxxusername ", "xxxxpassword")); > step2, > final ODataEntityCreateRequest<ODataEntity> createDraftReq = > client.getCUDRequestFactory().getEntityCreateRequest(createDraftUriBuilder.build(), > draft); > final ODataEntityCreateResponse<ODataEntity> createDraftRes = > createDraftReq.setFormat(format); > createDraftReq.execute(); > Actual: NonRepeatableRequestException (guess it is because of login retry). > Expected: no exception. -- This message was sent by Atlassian Jira (v8.3.4#803005)