Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotFoundException Exception thrown: OCP\Files\NotFoundException Exception thrown: OCP\Files\NotFoundException #2435

Open
huckley opened this issue Nov 27, 2024 · 2 comments
Assignees
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@huckley
Copy link

huckley commented Nov 27, 2024

Nextclod forms are working but i got a NotFoundException Exception throw in the logfile if I submit a form.

  • Nextcloud-Version: 30.0.2 (Hub 9)
  • Forms-Version: 4.3.4

Desktop (please complete the following information):

  • OS: Linux
  • Browser: chrome
  • Version 131.0.6778.85

Browser log

ERROR] Files_PDFViewer: But this does not appear to be a public page Object
log @ index.mjs:54

Error in the logfile

[no app in context] Fehler: Exception thrown: OCP\Files\NotFoundException
	POST /cloud/ocs/v2.php/apps/forms/api/v3/forms/7/submissions

"reqId":"I505YQkFz1uV9lRhMF6D",
"level":3,
"time":"2024-11-27T10:35:51+00:00",
"remoteAddr":"x.x.x.x",
"user":"--",
"app":"no app in context",
"method":"POST",
"url":"/cloud/ocs/v2.php/apps/forms/api/v3/forms/7/submissions",
"message":"Exception thrown: OCP\\Files\\NotFoundException",
"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
"version":"30.0.2.2",
"exception": {
	"Exception":"OCP\\Files\\NotFoundException",
	"Message":"",
	"Code":0,
	"Trace":[
		{
			"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php",
			"line":363,
			"function":"getFileInfo",
			"class":"OC\\Files\\Node\\Node",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
			"line":362,
			"function":"getOwner",
			"class":"OC\\Files\\Node\\Node",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
			"line":329,
			"function":"getPathForNode",
			"class":"OCA\\Files_Versions\\Listener\\FileEventsListener",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/apps/files_versions/lib/Listener/FileEventsListener.php",
			"line":104,
			"function":"pre_renameOrCopy_hook",
			"class":"OCA\\Files_Versions\\Listener\\FileEventsListener",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php",
			"line":68,
			"function":"handle",
			"class":"OCA\\Files_Versions\\Listener\\FileEventsListener",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
			"line":220,
			"function":"__invoke",
			"class":"OC\\EventDispatcher\\ServiceEventListener",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
			"line":56,
			"function":"callListeners",
			"class":"Symfony\\Component\\EventDispatcher\\EventDispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
			"line":67,
			"function":"dispatch",
			"class":"Symfony\\Component\\EventDispatcher\\EventDispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",
			"line":79,
			"function":"dispatch",
			"class":"OC\\EventDispatcher\\EventDispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/Files/Node/HookConnector.php",
			"line":155,
			"function":"dispatchTyped",
			"class":"OC\\EventDispatcher\\EventDispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php",
			"line":82,
			"function":"rename",
			"class":"OC\\Files\\Node\\HookConnector",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/Files/View.php",
			"line":737,
			"function":"emit",
			"class":"OC_Hook",
			"type":"::"
		},{
			"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php",
			"line":448,
			"function":"rename",
			"class":"OC\\Files\\View",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/apps/forms/lib/Controller/ApiController.php",
			"line":2727,
			"function":"move",
			"class":"OC\\Files\\Node\\Node",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/apps/forms/lib/Controller/ApiController.php",
			"line":1176,
			"function":"storeAnswersForQuestion",
			"class":"OCA\\Forms\\Controller\\ApiController",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
			"line":208,
			"function":"newSubmission",
			"class":"OCA\\Forms\\Controller\\ApiController",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
			"line":114,
			"function":"executeController",
			"class":"OC\\AppFramework\\Http\\Dispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/AppFramework/App.php",
			"line":161,
			"function":"dispatch",
			"class":"OC\\AppFramework\\Http\\Dispatcher",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/lib/private/Route/Router.php",
			"line":302,
			"function":"main",
			"class":"OC\\AppFramework\\App",
			"type":"::"
		},{
			"file":"/var/www/nextcloud/ocs/v1.php",
			"line":43,
			"function":"match",
			"class":"OC\\Route\\Router",
			"type":"->"
		},{
			"file":"/var/www/nextcloud/ocs/v2.php",
			"line":7,
			"args":["/var/www/nextcloud/ocs/v1.php"],
			"function":"require_once"
		}
	],
	"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php",
	"Line":90,
	"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"},
	"id":"6746f60985f0d"
}
@huckley huckley added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Nov 27, 2024
@Chartman123
Copy link
Collaborator

@huckley could you please confirm that you're trying to submit a form with a File question? At least the error message points in that direction.

The error says that a file/folder doesn't exist. So either there might be a problem with an upload of a file in the first place or the file can't be moved because the target folder can't be found. Do you have a folder called 'Forms' in your root folder?

@huckley
Copy link
Author

huckley commented Nov 27, 2024

Yea i Upload a File and the File ist saved in the expected folder...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants