phpbg / easysync

Synchronize your android phone/tablet with your DAV server, the easy way.
MIT License
106 stars 6 forks source link

App crashes when selecting advanced synchronization settings #40

Closed Ke1i closed 1 month ago

Ke1i commented 1 month ago

Bug description Trying to select individual folders to sync on the webdav server via Synchronization settings > Advanced synchronization settings results in a crash.

Smartphone:

samuelchemla commented 1 month ago

Does it crash when toggling enabled/disabled folders ? or when clicking on Advanced synchronization ? Can you also tell what's your webdav server? nextcloud? apache? other?

Ke1i commented 1 month ago

It crashes when I click on the advanced synchronization settings so no I don't even get into the option of selecting folders. Webdav server is a generic one written in Go and I can connect to it just fine using plain http on a non standard port. I wanted to use ocis (owncloud) for the server but the self signed cert was a no go.

Ke1i commented 1 month ago

Said webdav server: https://github.com/hacdias/webdav

samuelchemla commented 1 month ago

There seems to be something wrong with your dav server.

I published a 1.12 release that prevent the crash and provides more details about the problem.

Please wait a few days so it is available on fdroid (or build it yourself) and report back with the error message.

Ke1i commented 1 month ago

Initially I didn't want to sync everything - that's why I wanted to select some specific folders. Anyway today I created a temporary folder on the server and pointed EasySync to it to sync everything. It worked - with some errors though. So the webdav server isn't the problem. The sync errors I got were some .m4a files failing to copy so maybe you'll want to look into that as well? Attached are some screengrabs.

Screenshot_20241011-140849_Easy_Sync

Screenshot_20241011-144958_Easy_Sync

Screenshot_20241011-140535_Easy_Sync

Screenshot_20241011-140626_MiXplorer

Screenshot_20241011-140645_Easy_Sync

Ke1i commented 1 month ago

Update I deleted the music files on the server and manually copied them again from the phone to the server. Synchronization completed successfully without any errors. It still crashes though when I go to the advanced synchronization settings.

Screenshot_20241011-150634_Easy_Sync

phpbg commented 1 month ago

Hi, I tried https://github.com/hacdias/webdav and it worked well.

Please wait when 1.12 is released on fdroid and report back.

Easysync does not use WebDav Locks. If you have "message=Locked" errors, check that you don't have other apps accessing your webdav server and locking files...

Ke1i commented 1 month ago

Will do.

phpbg commented 1 month ago

Hi, 1.12 is there, can you try again?

Ke1i commented 1 month ago

Thanks for the heads up. Version 1.12 doesn't crash when selecting the advanced synchronization settings and it works as expected. Thanks for the fix. You can close this.