nextcloud / nextcloud/notes-ios

current notes not shown, multiple notes folders are created, deleting note shows 404

Open
#66 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
73
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Notes 4.10.0
Nextcloud 28.0.5
iOS 17.5.1

The app is creating multiple Notes folders

.
├── Notes
├── Notes (10)
├── Notes (11)
├── Notes (12)
├── Notes (13)
├── Notes (14)
├── Notes (15)
├── Notes (16)
├── Notes (17)
├── Notes (18)
├── Notes (19)
├── Notes (2)
├── Notes (20)
├── Notes (21)
├── Notes (3)
├── Notes (4)
├── Notes (5)
├── Notes (6)
├── Notes (7)
├── Notes (8)
├── Notes (9)

The current notes from the "Notes" folder are not shown.

New notes are stored randomly in one of these folders and multiple times.

Also after Granting access for the App, the preferences still show "Login"

When creating a note, the nextcloud log shows:

{
  "reqId": "I9acz0neKJK9ZLb3PLiO",
  "level": 3,
  "time": "2024-05-24T06:47:26+00:00",
  "remoteAddr": "REDACTED",
  "user": "REDACTED",
  "app": "notes",
  "method": "GET",
  "url": "/index.php/apps/notes/api/v1/notes/786664?exclude=",
  "message": "Controller failed with OCA\\Notes\\Service\\NoteDoesNotExistException",
  "userAgent": "Nextcloud Notes/4.2.0 (com.peterandlinda.iOCNotes; build:0; iOS 17.5.1) Alamofire/5.6.4",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCA\\Notes\\Service\\NoteDoesNotExistException",
    "Message": "",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/nextcloud/apps/notes/lib/Service/NotesService.php",
        "line": 73,
        "function": "getFileById",
        "class": "OCA\\Notes\\Service\\NotesService",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php",
        "line": 91,
        "function": "get",
        "class": "OCA\\Notes\\Service\\NotesService",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/apps/notes/lib/Service/Util.php",
        "line": 26,
        "function": "OCA\\Notes\\Controller\\{closure}",
        "class": "OCA\\Notes\\Controller\\NotesApiController",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/nextcloud/apps/notes/lib/Controller/Helper.php",
        "line": 140,
        "function": "retryIfLocked",
        "class": "OCA\\Notes\\Service\\Util",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php",
        "line": 96,
        "function": "handleErrorResponse",
        "class": "OCA\\Notes\\Controller\\Helper",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "get",
        "class": "OCA\\Notes\\Controller\\NotesApiController",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/www/nextcloud/apps/notes/lib/Service/NotesService.php",
    "Line": 219,
    "message": "Controller failed with OCA\\Notes\\Service\\NoteDoesNotExistException",
    "exception": {},
    "CustomMessage": "Controller failed with OCA\\Notes\\Service\\NoteDoesNotExistException"
  }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using Notes 4.10.0, Nextcloud 28.0.5, and iOS 17.5.1, then inspect the reported requests and the server trace in NotesService.php, NotesApiController.php, and Util.php. Done means existing notes appear, new notes are not duplicated across multiple folders, deletion no longer returns a 404, and the access preference no longer incorrectly shows Login.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.