Skip to content

[stable-0.1] fix(backend): tell users when and why a mind map was not saved - #462

Merged
AndyScherzinger merged 2 commits into
stable-0.1from
backport/backend-save-errors/stable-0.1
Oct 27, 2026
Merged

AndyScherzinger merged 2 commits into
stable-0.1from
backport/backend-save-errors/stable-0.1

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Backport of #461, cherry-picked unchanged: the save controllers are identical on this line.

  • Saving fails unexpectedly: users see "The mind map could not be saved. Please try again later." instead of their own file path; the exception is logged.
  • The save request lacks the modification time of the loaded file: users see "The mind map could not be saved. Please reload it and try again." instead of the misleading "updated in the meantime" message; the request is logged.

Both messages are new strings. Transifex does not sync stable-0.1, so they stay English here until the translations are merged over from main before the 0.1.6 release.

Checked with php -l; manual checks as listed in #461, on Nextcloud 32–35.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

@AndyScherzinger AndyScherzinger added this to the v0.1.6 milestone Oct 27, 2026
@AndyScherzinger AndyScherzinger added bug Something isn't working AI assisted This PR contains AI-assisted commits 3. to review php labels Oct 27, 2026
When saving a mind map threw an unexpected exception, the response
showed the file's path as the error, a leftover from debugging. Users
now read that the mind map could not be saved and should try again
later, and the exception is logged, so admins can find out what went
wrong.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
(cherry picked from commit ced3a4d)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
A save request without the modification time of the loaded file was
compared against the file's mtime and failed with "The file you are
working on was updated in the meantime", which sent users looking for
a conflict that did not exist. Both the user and the public share
controller now tell users that the mind map could not be saved and to
reload it, which fetches a fresh modification time, and log the request
for admins. The branch that was meant to handle this could never be
reached and is gone, and log entries from the save endpoint are no
longer attributed to files_texteditor.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
(cherry picked from commit 5a793cf)
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger
AndyScherzinger force-pushed the backport/backend-save-errors/stable-0.1 branch from 88b2ee4 to 6bac301 Compare October 27, 2026 16:43
@AndyScherzinger AndyScherzinger changed the title [stable-0.1] fix(backend): proper error messages when saving fails [stable-0.1] fix(backend): tell users when and why a mind map was not saved Oct 27, 2026
@AndyScherzinger
AndyScherzinger merged commit a33c0d0 into stable-0.1 Oct 27, 2026
7 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/backend-save-errors/stable-0.1 branch October 27, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted This PR contains AI-assisted commits bug Something isn't working php

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant