Reproduce
- Clone minimal sample app
- Go to your Nextcloud web interface and get the URL of any preview of the files app
- Replace the URL from the sample project in the request
- Start app, choose the Account where the preview image is
- Crash
Stacktrace
2020-10-16 10:01:16.338 2735-3878/com.nextcloud.client D/OwnCloudClient #0: REQUEST GET /index.php/core/preview
2020-10-16 10:01:16.338 2735-3878/com.nextcloud.client D/AdvancedSslSocketFactory: Creating SSL Socket with remote nextcloud.niedermann.it:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@50c4e27
2020-10-16 10:01:16.339 2735-3878/com.nextcloud.client D/AdvancedSslSocketFactory: ... with connection timeout 60000 and socket timeout 60000
2020-10-16 10:01:16.343 2735-7787/com.nextcloud.client D/OpenGLRenderer: endAllActiveAnimators on 0x7d4961319700 (RippleDrawable) with handle 0x7d49abde26c0
2020-10-16 10:01:16.347 2735-3878/com.nextcloud.client I/ServerNameIndicator: SSLSocket implementation: org.conscrypt.Java8FileDescriptorSocket
2020-10-16 10:01:16.347 2735-3878/com.nextcloud.client I/ServerNameIndicator: SNI done, hostname: nextcloud.niedermann.it
2020-10-16 10:01:16.961 2735-3878/com.nextcloud.client E/InputStreamBinder: []
2020-10-16 10:01:16.961 2735-3878/com.nextcloud.client E/InputStreamBinder: Error during Nextcloud request
java.lang.IllegalStateException: CE_5
at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:429)
at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:125)
at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:108)
at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:134)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)
Caused by: java.lang.IllegalStateException: 400
at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:429) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:125) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:108) at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:134) at android.os.Binder.execTransactInternal(Binder.java:1021) at android.os.Binder.execTransact(Binder.java:994) Caused by: java.lang.IllegalStateException: []
at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:429) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:125) at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:108) at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:134) at android.os.Binder.execTransactInternal(Binder.java:1021) at android.os.Binder.execTransact(Binder.java:994)
Note, that avatars and Deck attachments can be fetched without any problems.
Context
I maintain a small library project (nextcloud-commons) which provides for example a integration with Glide (to load images via the SSO API to avoid authentication- and certificate issues).
The issue has been reported there and is reproducable with a minimal sample and without Glide.
cc @David-Development@tobiasKaminsky
Reproduce
Stacktrace
Note, that avatars and Deck attachments can be fetched without any problems.
Context
I maintain a small library project (nextcloud-commons) which provides for example a integration with Glide (to load images via the SSO API to avoid authentication- and certificate issues).
The issue has been reported there and is reproducable with a minimal sample and without Glide.
cc @David-Development@tobiasKaminsky