Bug Report
Description
There is a key name mismatch between SettingsService::getDefaultNotesNode()
and the destructuring in NoteUtil.php, which causes note synchronization
to fail (e.g. PUT requests from Android app returning errors).
Steps to Reproduce
- Use Nextcloud Notes Android App (tested with v33.0.1)
- Try to save/sync a note
- Observe errors in nextcloud.log
Expected Behavior
Notes sync without errors.
Actual Behavior
Sync fails with errors related to note ID (e.g. note 1930).
Root Cause
SettingsService.php returns the folder node with key "folder":
return [
'path' => $defaultFolder,
'folder' => $node,
];