nextcloud / notes-ios

Other
22 stars 8 forks source link

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

Open Foxeronie opened 2 months ago

Foxeronie commented 2 months ago

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"
  }
}