[ https://issues.apache.org/jira/browse/NIFI-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856355#comment-15856355 ]
Karthik Narayanan edited comment on NIFI-2162 at 2/7/17 5:18 PM: ----------------------------------------------------------------- I am encountering this issue. looks there has not been an update on okhttp-digest. The first message with digest auth succeeds and the subsequent ones fail. Looks the line that causes the issue is this https://github.com/rburgst/okhttp-digest/blob/master/src/main/java/com/burgstaller/okhttp/AuthenticationCacheInterceptor.java#L51 I think we can do a quick duck tape fix to this by implementing the AuthenticationCacheInterceptor right inside invokehttp , basically a copy of the code in the version above - the platform.get().log() line. Pass that as the authcache param. I have a feeling thats all it needs. thoughts? was (Author: rkarthi...@gmail.com): I am encountering this issue. looks there has not been an updated on okhttp-digest. The first message with digest auth succeeds and the subsequent ones fail. Looks the line that causes the issue is this https://github.com/rburgst/okhttp-digest/blob/master/src/main/java/com/burgstaller/okhttp/AuthenticationCacheInterceptor.java#L51 I think we can do a quick duck tape fix to this by implementing the AuthenticationCacheInterceptor right inside invokehttp , basically a copy of the code in the version above - the platform.get().log() line. I have a feeling thats all it needs. thoughts? > InvokeHttp's underlying library for Digest Auth uses the Android logger > ----------------------------------------------------------------------- > > Key: NIFI-2162 > URL: https://issues.apache.org/jira/browse/NIFI-2162 > Project: Apache NiFi > Issue Type: Bug > Reporter: Joseph Percivall > > A user emailed the User mailing list with an issue that InvokeHttp was > failing due to not being able to find "android/util/Log"[1]. InvokeHttp uses > OkHttp and the library they recommend for digest authentication is > okhttp-digest[2]. Currently okhttp-digest assumes it's running on an Android > device and has access to the Android logger (OkHttp does not assume it's on > an Android device). > I raised an issue about it on the project's github page[3] and the creator > said he "Will change this soonish." > Once that is addressed, InvokeHttp will need to update the versions of OkHttp > and okhttp-digest. > [1] http://mail-archives.apache.org/mod_mbox/nifi-users/201606.mbox/browser > [2] https://github.com/square/okhttp/issues/205 > [3] https://github.com/rburgst/okhttp-digest/issues/13 -- This message was sent by Atlassian JIRA (v6.3.15#6346)