-
Notifications
You must be signed in to change notification settings - Fork 94
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
Files get saved even if they have not been altered #3543
Comments
I was able to repro with a fresh 25.0.2.3 server created with Here are the entire contents of
135 bytes. No EOL at the end of the file. SHA-1 checksum is Docker image SHA256 id is |
@meonkeys Thanks, I was able to reproduce that too. I tried with another file i created that did not contain a heading and it did not get saved. I was able to reproduce it on another server and again it would only be saved automatically when it contained a heading. |
Will you remove See also: Also, not sure if this is related, but I'm seeing an issue when I use Temporary files lock. I try to edit a file locally, so it is locked. I make a change locally while I am definitely the only one making changes, but I still get a local conflict. Makes me think the root cause is something in the server inappropriately changing file last modified dates (as opposed to in the Text app). Just another data point, I guess. I hope this is helpful. ...ah, I might be seeing #2200 |
Sure. Good point. Also added the heading scenario to the description. |
Including tests that open and close do not save unedited files. Test is currently still failing for open. See #3543. Signed-off-by: Max <[email protected]>
Including tests that open and close do not save unedited files. Test is currently still failing for open. See #3543. Signed-off-by: Max <[email protected]>
Works as expected for me in 25.0.3! 🎁 Ah, wait: I just opened a .md file and it saved it (even though I didn't make changes). It seems like, in 25.0.3, bare links do not trigger a save but headings do. Let me know if you want any help testing/verifying and I'll do my best. |
I found a solid fix for this in 26: Files will only be saved if changes were made to them that can be reverted through the UI. So any changes made automatically by the different extensions will not count. I'll look into backporting this at least to 25 but it might not be trivial. |
@max-nextcloud do you still think it's feasable to backport this to 25? Otherwise I'd suggest to close the issue. |
Tested: so seems to be good. Will close for now. |
If this is still an issue please open a fresh ticket with the file before and after open to reproduce. |
@meonkeys reported in #2337 (comment) that saving files without changes is back
Files will be saved even if they have not been touched if they contain a bare link link such as:
https://nitter.net/meonkeys
Links such as this are fine:
Note that this URLs target HTML data includes OpenGraph metadata.
update: Headings also lead to the same effect.
Files with zero bare links and no headings are correctly left unmodified if I open them and make zero changes. Files with bare links or headings are marked as modified.
The text was updated successfully, but these errors were encountered: