Guests cannot create notes

Guests cannot create notes
Error: HTTP 500 (OCP\Files\NotPermittedException
I have looked through everything, but where is the error? I can’t find an option that should affect this.
Nextcloud 29

If anyone has any ideas. I would be very grateful.

Is “Limit guest access to an apps’s allowlist” (recomended) enabled?
And if yes, did you add notes to the apps allow list for guests in the admin settings tab for the guests app?

image


ernolf

Yes is active and the notes app is also added
grafik

Can you post the complete log entry of that message please?
Sometimes the backtrace can help to localize the point where it derails.


ernolf

[notes] Fehler: Controller failed with OCP\Files\NotPermittedException
POST /apps/notes/notes
von xx.201.74.6 von xxx@gmail.com um 17.06.2024, 09:04:31

complete log:

{"reqId":"LMWQSLkdw4AmJVDgHS1v","level":3,"time":"2024-06-17T07:04:31+00:00","remoteAddr":"xx.201.74.6","user":"xxx@gmail.com","app":"notes","method":"POST","url":"/apps/notes/notes","message":"Controller failed with OCP\\Files\\NotPermittedException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0","version":"29.0.0.19","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"No create permission for path \"Neue Notiz.md\"","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/notes/lib/Service/NotesService.php","line":128,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->","args":["Neue Notiz.md"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":161,"function":"create","class":"OCA\\Notes\\Service\\NotesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Service/Util.php","line":26,"function":"OCA\\Notes\\Controller\\{closure}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/Helper.php","line":140,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::","args":[["Closure"]]},{"file":"/var/www/html/custom_apps/notes/lib/Controller/NotesController.php","line":160,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":[["Closure"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"create","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"create"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notes\\Controller\\NotesController"],"create"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notes\\Controller\\NotesController","create",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["notes.notes.create"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/notes/notes"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Files/Node/Folder.php","Line":199,"message":"Controller failed with OCP\\Files\\NotPermittedException","exception":[],"CustomMessage":"Controller failed with OCP\\Files\\NotPermittedException"},"id":"666fe02005c70"}

OK, so your Guest needs the permission to create files in the directory where the note is created.

This is from the manual:

Guests users can only access files shared to them and cannot create any files outside of shares. Additionally, the apps accessible to guest accounts are whitelisted.

I’'ve been using guest accounts for a long time but never enabled the Notes app for guests. So I reproduced it here with a guest user, enabled Notes but it’s somehow impossible for the Notes app to move the folder in which the notes are saved to a shared folder. It allways jumps back to the default “Notizen” or “Notes” which cannot be created by a guest.

That is related to this Commit:

… and there is already an Issue about it:

So you could go there and upvote for it to get it solved.

If your guests absolutely need the Notes app, then at the moment regular accounts must be created with a home directory and quota greater 0.

Much and good luck,
ernolf

1 Like

Thank you very much for your effort

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.