Page 1 of 1

Bug: extsd: Editor's changes not saved after switch to TC4A

Posted: 2017-07-27, 13:33 UTC
by DrShark
To reproduce:
1. Open some text file on external SD Card in TC Editor.
2. Change it.
3. Switch to Android Home Screen. The message will appear informing that changes saved to a temp file.
4. Launch TC4A.
5. The request will appear to save the original edited file, confirm it:
error opening original file will appear then. Open original file in TC Editor and see that changes are not present in original file.

Expected behavior: after confirmation in step 5 changes should be applied to original file, which happens when TC Editor changes the file in Internal Memory.

Reproduced on Android 4.3.1 with TC4A 2.80 final.

Posted: 2017-07-28, 07:33 UTC
by ghisler(Author)
This currently happens when you are rooted. I'm working on a solution.

Posted: 2017-07-28, 08:52 UTC
by DrShark
ghisler(Author) wrote:This currently happens when you are rooted.
My device isn't rooted (mentioned in post signature).

Posted: 2017-07-31, 13:36 UTC
by ghisler(Author)
Sorry, cannot reproduce. There should be no problems to write to SD card on Android 4.3. The restrictions only came with Android 4.4.

Posted: 2017-08-07, 19:45 UTC
by DrShark
No changes on my device in 2.81 beta 7. Maybe the next fact will help to find out the reason of the bug: temp (<partofname><randomcharacters>.<ext>) files, and maybe even successfully files (with original name) arn't auto-removed from /storage/sdcard/.TotalCommander/temp folder. Or this is normal behavior? Currently I have 15 text files there...

Posted: 2017-08-10, 12:39 UTC
by ghisler(Author)
I didn't change anything for Android 4.3 because I couldn't reproduce the issue. It's possible that your device maker has stronger restrictions than Google. Did you try with an older TC like 2.72?

You can get it here:
http://www.totalcommander.ch/android/tcandroid272.apk

Posted: 2017-08-11, 09:16 UTC
by DrShark
ghisler(Author) wrote:Did you try with an older TC like 2.72?
Should I uninstall 2.81 beta 7 at first?

Posted: 2017-08-13, 16:19 UTC
by DrShark
DrShark wrote:Should I uninstall 2.81 beta 7 at first?
The installer couldn't install 2.72 on top of 2.81b7 so I uninstalled the beta. On clean 2.72 I can reproduce the issue too.

Posted: 2017-08-14, 14:01 UTC
by ghisler(Author)
Then your specific Android ROM probably doesn't support the necessary functions to write to the card, sorry.

Posted: 2017-08-14, 14:44 UTC
by DrShark
ghisler(Author) wrote:Then your specific Android ROM probably doesn't support the necessary functions to write to the card, sorry.
But most of other write-related functions on extsd work: Save button and Save As menu in TC4A editor are saving the file (which means I can edit files in editor), I also can create, copy and move folders, as well as copy and move files using TC4A file manager itself on and to/from extsd. Rename of files and folders on extsd also works.
The first post describes only particular case whan saving the file fails, and in other topic I mentioned the issue with creating of new text files on extsd using file manager (not editor!) menu item. So far those are only write-related issues I discovered on extsd using TC4A and its editor.

Posted: 2017-08-17, 08:24 UTC
by ghisler(Author)
You mean that saving only fails when the file was previously saved in TEMP because youz switched away from the editor? Or does saving files always fail in the editor?

Posted: 2017-08-20, 19:29 UTC
by DrShark
ghisler(Author) wrote:You mean that saving only fails when the file was previously saved in TEMP because youz switched away from the editor?
Yes, exactly.

Posted: 2017-08-28, 22:48 UTC
by DrShark
history2.txt wrote:2017-08-24 Fixed: Editor: Leave editor via home button without saving (auto-saves to temp), return to TC -> file couldn't be moved from temp to external SD card in the form ///_SD-Card/s on Android >=5
2017-08-24 Fixed: Editor: Leave editor via home button without saving (auto-saves to temp), return to TC -> file couldn't be moved from temp to external SD card on Android 4.3
I can confirm the fix on device with Android 4.3.1, thanks. Unfortunately the device with Android 5.1, which I sometimes have access to, doesn't have a microsd slot, so I can't check it there.