haiwen / seadroid

Android client for Seafile
Other
540 stars 277 forks source link

Unable to download or upload files when seafile behind proxy. #956

Closed ghost closed 1 year ago

ghost commented 1 year ago

I have seafile behind a reverse proxy. This configuration works with the web interface and windows/mac clients but does not work with seafdroid. I believe this is because seafdroid is not respecting the HTTPS setting during account setup.

When trying to download a file to my android device i see this error in the logcat. 11-24 18:37:59.700 9319 9906 D SeafConnection: HTTP request failed : http://seafile.mywebsite.com/seafhttp/files/a9935561-1335-4b0b-ae49-25bcb1dedee7/seafile-compose.yml, 308, Permanent Redirect

For some reason the connection is first attempting http://seafile.mywebsite.com instead of https://seafile.mywebsite.com which is what the account page is configured to be. So it decided to error out on receiving the notice that it is being re-directed to the https version of the site instead of following the redirect or using the https link as it should be doing.