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

Can't write files into Nextcloud #116

Open
dertuxmalwieder opened this issue Nov 2, 2024 · 5 comments
Open

Can't write files into Nextcloud #116

dertuxmalwieder opened this issue Nov 2, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@dertuxmalwieder
Copy link

  1. Create a new .org file in the NextCloud app.
  2. Open it with orgro.
  3. Write something and save.
  4. The file remains empty.

orgro 1.45.2, iOS 18.1, Nextcloud 6.1.1 on Server 29.0.4.

@amake
Copy link
Owner

amake commented Nov 2, 2024

  1. Write something and save.
  2. The file remains empty.

Can you be more specific about what you are doing and seeing?

I tried reproducing with your environment and found that I couldn't even create a file in Nextcloud—creating the blank file failed:

IMG_1CC5A8F3F177-1

Trying with a different provider (Dropbox) I found that what happened was:

  1. Tap Open to choose the save location
  2. Orgro opens two editor views on top of each other, so quickly that it's hard to see (this is a bug)
  3. Enter text and tap the ✔︎ in the upper right to save
  4. The topmost editor closes, leaving the bottom, blank editor still open. Meanwhile, the "Saved" snackbar will appear after a few seconds as Orgro correctly saves what you entered into the first editor.
  5. Tap the × to close the second editor without saving
  6. The file content from no. 3 above is shown correctly

If this correctly describes your issue, then I have identified the cause and will release a fix soon. If not, please give more detail.

@amake amake added the bug Something isn't working label Nov 2, 2024
@dertuxmalwieder
Copy link
Author

Can you be more specific about what you are doing and seeing?

I noticed that I can't create a new file in Nextcloud from your app (an error appears), so I thought I could use it to edit existing org files instead. Editing an existing org file in Nextcloud seems to work, said snackbar appears, but when I open the "saved" file in the Nextcloud app afterwards, it is still empty.

@amake
Copy link
Owner

amake commented Nov 2, 2024

OK, thanks, what I described is a different bug, then. It will be fixed in v1.45.3.

I can reproduce your issue as well.

  • I don't see any errors when I run in debug mode
  • Other apps like Dropbox and Working Copy do accept writes correctly
  • Yet other apps like Google Drive show the same issue with writes not "sticking"

Orgro is doing the same thing regardless of source app, so the fact that it works with some and not others indicates to me that it's a problem with the source app. I don't think there's anything I can do about it.

If there is another app that can access files in the same way as Orgro (via the File Provider API) that can successfully write to Nextcloud or Google Drive files, then that would indicate a problem with Orgro. I will have to see if I can find such an app.

@dertuxmalwieder
Copy link
Author

dertuxmalwieder commented Nov 2, 2024

Orgro is doing the same thing regardless of source app, so the fact that it works with some and not others indicates to me that it's a problem with the source app. I don't think there's anything I can do about it.

Looks like you might be correct here:

nextcloud/ios#3125

I'll leave this open for verification if you wish / close as you please. Sorry!

@amake
Copy link
Owner

amake commented Nov 2, 2024

Nice find! Thanks for that. Let's keep this open as a tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants