Butterfly icon indicating copy to clipboard operation
Butterfly copied to clipboard

[Bug]: Error when using WebDav on Android

Open e3la opened this issue 7 months ago • 6 comments

What happened?

A bug happened!

I perhaps didn't set up dav correctly I can see the file I made on my desktop saved to dav but when I try to open it I get

#0 GeneralDirectoryFileSystem.getRootDirectory. (package:lw_file_system/src/api/base/directory.dart:13) #1 KeyDirectoryFileSystem.getKeys (package:lw_file_system/src/api/base/key.dart:155) #2 GeneralKeyFileSystem.listFiles (package:lw_file_system/src/api/base/key.dart:34) #3 Stream.first. (dart:async/stream.dart:1661) #4 GeneralKeyFileSystem.getDefaultFile (package:lw_file_system/src/api/base/key.dart:7) #5 _ProjectPageState._load (package:butterfly/views/main.dart:183)

Version

2.3.0

Platform

Android

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

e3la avatar May 21 '25 12:05 e3la

Hello, thanks for reporting. Can you edit the issue to fill in the relevant information in the correct spaces? The platform should be wrong. Also I think you forgot to paste the full logs since i can see the stack trace but not the error message

CodeDoctorDE avatar May 21 '25 12:05 CodeDoctorDE

type 'Null' is not a subtype of type 'FileSystemDirectory<Uint8List>' in type cast

#0 GeneralDirectoryFileSystem.getRootDirectory. (package:lw_file_system/src/api/base/directory.dart:13) #1 KeyDirectoryFileSystem.getKeys (package:lw_file_system/src/api/base/key.dart:155) #2 GeneralKeyFileSystem.listFiles (package:lw_file_system/src/api/base/key.dart:34) #3 Stream.first. (dart:async/stream.dart:1661) #4 GeneralKeyFileSystem.getDefaultFile (package:lw_file_system/src/api/base/key.dart:7) #5 _ProjectPageState._load (package:butterfly/views/main.dart:183)

I'm not sure how to find more of the log, this is what popped up on my android app when I tried to access my dav.

Alas this is my first attempt to report a bug. Do let me know what to do to better share the wanted information.

On Wed, May 21, 2025, 7:28 AM CodeDoctor @.***> wrote:

CodeDoctorDE left a comment (LinwoodDev/Butterfly#857) https://github.com/LinwoodDev/Butterfly/issues/857#issuecomment-2897790426

Hello, thanks for reporting. Can you edit the issue to fill in the relevant information in the correct spaces? The platform should be wrong. Also I think you forgot to paste the full logs since i can see the stack trace but not the error message

— Reply to this email directly, view it on GitHub https://github.com/LinwoodDev/Butterfly/issues/857#issuecomment-2897790426, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEDE4ITH7ZEXAPF65PKOXL27RWODAVCNFSM6AAAAAB5TEEAMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJXG44TANBSGY . You are receiving this because you authored the thread.Message ID: @.***>

e3la avatar May 23 '25 03:05 e3la

Thanks this helps me. Can you give me a step by step how i can reproduce it?

CodeDoctorDE avatar May 23 '25 04:05 CodeDoctorDE

I created a webdav space on my website hosting, but I can't figure out how to make it work for butterfly. I am betting it is my own error of how I set something up. I don't know what sync root directory check box does. I tried to use it both on the desktop and on my phone and the error I shared is the one I get when I click on file names on my phone. I've used open source software for years but I haven't ever sent in a bug and the option popped up, I just went for it, but I don't actually know how to help beyond what I've said. Is there any documentation on how to get the webdav set up? I could try again.

On Thu, May 22, 2025 at 11:35 PM CodeDoctor @.***> wrote:

CodeDoctorDE left a comment (LinwoodDev/Butterfly#857) https://github.com/LinwoodDev/Butterfly/issues/857#issuecomment-2903221359

Thanks this helps me. Can you give me a step by step how i can reproduce it?

— Reply to this email directly, view it on GitHub https://github.com/LinwoodDev/Butterfly/issues/857#issuecomment-2903221359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEDE4IXQHEWCQR4QIGCMTL272QPPAVCNFSM6AAAAAB5TEEAMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBTGIZDCMZVHE . You are receiving this because you authored the thread.Message ID: @.***>

e3la avatar May 23 '25 21:05 e3la

Sorry for the late response. I will add some error messages to help with this error, I sadly can't see why this happens. For me, it looks like the webdav interface doesn't correctly respond to the request of the app

CodeDoctorDE avatar Jun 02 '25 13:06 CodeDoctorDE

Added in 2.4.0-beta.0, can you try it out and give feedback? Don't forget to make a backup

CodeDoctorDE avatar Jun 21 '25 20:06 CodeDoctorDE

Also added in 2.3.2

CodeDoctorDE avatar Jul 03 '25 09:07 CodeDoctorDE

Still not working, but I am more sure it is my webdav at fault.

e3la avatar Jul 07 '25 02:07 e3la

Hi, did you get an error message? I added a few useful messages if an operation fails

CodeDoctorDE avatar Jul 07 '25 07:07 CodeDoctorDE