Skip to content

Bug: Key mismatch between SettingsService and NoteUtil causes note sync failure #1810

@fachberatung-it

Description

@fachberatung-it

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

  1. Use Nextcloud Notes Android App (tested with v33.0.1)
  2. Try to save/sync a note
  3. 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,
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed to reproduceIssue that has not been reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions