Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android WebDAV sync broken #17462

Open
henrydarklordofdeath opened this issue Jan 23, 2025 · 9 comments
Open

Android WebDAV sync broken #17462

henrydarklordofdeath opened this issue Jan 23, 2025 · 9 comments

Comments

@henrydarklordofdeath
Copy link

Many users (including me) have had problems with the WebDAV cloud saves on android. For me, it always gives me a cloud save failed pop-up, even when the configuration is the exact same as on my PC, that uses the WebDAV sync perfectly fine. Please fix soon if you can.

@stagelevel
Copy link

stagelevel commented Jan 26, 2025

Yes, this is broken for me too. Would love for a fix please, thank you

@KiralyCraft
Copy link
Contributor

Did you use HTTPs by any chance? Currently, only plain HTTP works on Android. We're aware of this in #16847

@henrydarklordofdeath
Copy link
Author

Attempted to use HTTP but still did not work. I tried just putting HTTP in the url instead of HTTPS and it caused retroarch to crash when opened. On another app using the same server, changing it to http worked fine.

@henrydarklordofdeath
Copy link
Author

This is the complete log file for when I use it via HTTP (not HTTPS)

Using old --libretro behavior. Setting libretro_directory to "/data/user/0/com.retroarch/cores/" instead.
RetroArch 1.20.0 (Git 6412f4f)
=== Build =======================================
Capabilities: ASIMD
[INFO] Version: 1.20.0
[INFO] Git: 6412f4f
[INFO] Built: Jan 4 2025
[INFO] =================================================
[Input]: Found input driver: "android".
[Environ]: SET_PIXEL_FORMAT: RGB565.
[Core]: Version of libretro API: 1, Compiled against API: 1
[Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[Video]: Set video size to: 960x720.
Android EGL: GLES version = 2.
[EGL] Falling back to eglGetDisplay
[EGL]: EGL version: 1.5
[GL]: Found GL context: "egl_android".
[GL]: Detecting screen resolution: 0x0.
[EGL]: Current context: 0x79a564b650.
[GL]: Vendor: Qualcomm, Renderer: Adreno (TM) 650.
[GL]: Version: OpenGL ES 3.2 [email protected] (GIT@193b2ee, I593c16c433, 1633593732) (Date:10/07/21).
[GL]: Using resolution 1080x2327.
[GL]: Default shader backend found: glsl.
[Shader driver]: Using GLSL shader backend.
[GL]: Stock GLSL shaders will be used.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GLSL]: Found GLSL vertex shader.
[GLSL]: Found GLSL fragment shader.
[GLSL]: Linking GLSL program.
[GL]: Using 4 textures.
[GL]: Loaded 1 program(s).
[Joypad]: Found joypad driver: "android".
[Video]: Found display server: "android".
[Audio]: Set audio input rate to: 48000.00 Hz.
[OpenSL]: Requested audio latency: 128 ms.
[OpenSL]: Setting audio latency: Block size = 768, Blocks = 32, Total = 24576 ...
[Audio]: Started synchronous audio driver.
[Display]: Found display driver: "gl".
[Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_history.lpl".
[Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_music_history.lpl".
[Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_image_history.lpl".
[Playlist]: Loading favorites file: "/storage/emulated/0/Android/data/com.retroarch/files/content_favorites.lpl".
[Input]: Grab mouse state => ON
[webdav] failed: http://APP.koofr.net/DAV/KOOFR/RETROARCH/: HTTP 302
content-length: 0
location: https://APP.koofr.net:80/DAV/KOOFR/RETROARCH/
cache-control: no-cache
connection: close
[CloudSync] begin failed
[webdav] failed: http://APP.koofr.net/DAV/KOOFR/RETROARCH/: HTTP 302
content-length: 0
location: https://APP.koofr.net:80/DAV/KOOFR/RETROARCH/
cache-control: no-cache
connection: close
[CloudSync] begin failed

After that it crashes

@warmenhoven
Copy link
Contributor

It's trying to redirect you to using ssl. That's not going to work for multiple reasons.

@henrydarklordofdeath
Copy link
Author

How do I fix it?

@warmenhoven
Copy link
Contributor

That is a good question that I don't know the answer to exactly. The "easiest" way would be to change your server's configuration so it doesn't try to force ssl. If you can't do that, it will require both changing the android build to support ssl, and the http library to support redirects.

@henrydarklordofdeath
Copy link
Author

henrydarklordofdeath commented Jan 27, 2025

Oh god. I'm using a service called koofr that is basically like Google drive or something except it supports WebDAV. I have no way of changing how the servers are connected. As for the other stuff you said, I have no idea what that would even mean or how I could do it.

Is there any plans to enable SSL in the near future or should I start looking for another server?

@warmenhoven
Copy link
Contributor

I've created a PR, #17482 , to handle HTTP redirects properly, but that's only half the problem. I haven't looked at the android build basically ever, so I'm not sure what the outlook for ssl there will be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants