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

OCP\Files\NotFoundException thrown when a file is submitted via link share and user is not logged in #2435

Open
huckley opened this issue Nov 27, 2024 · 8 comments
Assignees
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working
Milestone

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...

@Chartman123
Copy link
Collaborator

@huckley I can't reproduce the error on my production environment... Can you please tell us more about your specific form and also about your server environment? (installation type, database, ...)

@Chartman123 Chartman123 added the needs info Not enough information provided label Dec 2, 2024
@huckley
Copy link
Author

huckley commented Dec 2, 2024

sure, in the meantime I have figure out that that error is only thrown if the nextcloud versions app (1.23.0) is enabled.
So I don't know, if is a forms or a versions issue.

The nextcloud is installed in a apache alias, with php-fpm, the data directory is outside htdocs.
The form is a simple anonymous file upload form, which is shared by link.

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "example.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/example.com\/cloud",
        "dbtype": "mysql",
        "version": "30.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "skeletondirectory": "\/home\/websites\/example.com\/.skeleton",
        "filesystem_check_changes": 1,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "sendmail",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "default_language": "de",
        "defaultapp": "calendar",
        "theme": "",
        "loglevel": 3,
        "maintenance": false,
        "mail_smtpauthtype": "LOGIN",
        "mysql.utf8mb4": true,
        "simpleSignUpLink.shown": false,
        "app_install_overwrite": [
            "calendar",
            "apporder",
            "files_trackdownloads",
            "files_readmemd",
            "contacts",
            "gallery",
            "impersonate",
            "rainloop",
            "music",
            "bookmarks",
            "mailnotifier",
            "files_scripts"
        ],
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "maintenance_window_start": 1,
        "data-fingerprint": "40f9aa27d18f7d8b1eb6b07cea75a2d8"
    },
    "apps": {
        "activity": {
            "enable_email": "no",
            "enabled": "yes",
            "installed_version": "3.0.0",
            "notify_email_bookmarks": "0",
            "notify_email_calendar": "0",
            "notify_email_calendar_event": "0",
            "notify_email_calendar_todo": "0",
            "notify_email_comments": "0",
            "notify_email_contacts": "0",
            "notify_email_file_changed": "0",
            "notify_email_file_downloaded": "0",
            "notify_email_forms_newshare": "0",
            "notify_email_forms_newsharedsubmission": "0",
            "notify_email_forms_newsubmission": "0",
            "notify_email_group_settings": "1",
            "notify_email_public_links": "0",
            "notify_email_public_links_upload": "0",
            "notify_email_remote_share": "0",
            "notify_email_shared": "0",
            "notify_email_systemtags": "0",
            "notify_notification_bookmarks": "0",
            "notify_notification_calendar": "0",
            "notify_notification_calendar_event": "0",
            "notify_notification_calendar_todo": "1",
            "notify_notification_comments": "0",
            "notify_notification_contacts": "0",
            "notify_notification_favorite": "0",
            "notify_notification_file_changed": "0",
            "notify_notification_file_downloaded": "0",
            "notify_notification_file_favorite_changed": "0",
            "notify_notification_forms_newshare": "0",
            "notify_notification_forms_newsharedsubmission": "0",
            "notify_notification_forms_newsubmission": "0",
            "notify_notification_group_settings": "0",
            "notify_notification_personal_settings": "0",
            "notify_notification_public_links": "0",
            "notify_notification_public_links_upload": "0",
            "notify_notification_remote_share": "0",
            "notify_notification_security": "1",
            "notify_notification_shared": "0",
            "notify_notification_systemtags": "0",
            "notify_notification_twofactor_totp": "1",
            "notify_setting_batchtime": "3600",
            "notify_setting_self": "0",
            "notify_setting_selfemail": "0",
            "types": "filesystem"
        },
        "activitylog": {
            "enabled": "no",
            "installed_version": "0.0.1",
            "types": ""
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "logging"
        },
        "announcementcenter": {
            "enabled": "no",
            "installed_version": "3.0.0",
            "types": "logging"
        },
        "app_api": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "appointments": {
            "enabled": "no",
            "hk": "882e25a24c3e48b8b0f8381fb21d047d4edce6c0faba17a9746560672d8780d4",
            "installed_version": "2.1.12",
            "tiv": "b353eddc315a7b29723dd687cced5a8b",
            "types": "dav"
        },
        "audioplayer": {
            "enabled": "no",
            "installed_version": "3.1.0",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "7161"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "5.0.6",
            "types": ""
        },
        "calendar_resource_management": {
            "enabled": "yes",
            "installed_version": "0.8.0",
            "types": "prevent_group_restriction"
        },
        "circles": {
            "enabled": "no",
            "installed_version": "0.20.6",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.20.1",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "6.1.1",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.11.0",
            "types": "dav"
        },
        "cookbook": {
            "enabled": "no",
            "installed_version": "0.7.6",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "enterpriseLogoChecked": "yes",
            "files_metadata_installed": "1",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1488016977.7439",
            "lastcron": 1733153702,
            "lastupdateResult": "[]",
            "lastupdatedat": 1733133007,
            "metadataGenerationDone": true,
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "repairlegacystoragesdone": "yes",
            "scss.variables": "5a81a8e31700709da84bb4c1b2ff41d6",
            "shareapi_allow_resharing": "yes",
            "shareapi_default_expire_date": "yes",
            "shareapi_expire_after_n_days": "30",
            "shareapi_only_share_with_group_members": "no",
            "theming.variables": "b5e7d0465eb6e3aa5655a34b6fb9a13c",
            "umgmt_show_email": "true",
            "umgmt_show_last_login": "true",
            "updater.secret.created": 1721402377,
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-gps": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-place": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "07cdfa4cfb42ee6654cbc6d1ac8fdc82",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "cospend": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "dashboard": {
            "enabled": "no",
            "installed_version": "7.7.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "builtSocialSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.31.1",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "sendEventRemindersPush": "yes",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "no",
            "installed_version": "1.4.2",
            "types": "dav"
        },
        "direct_menu": {
            "enabled": "no",
            "installed_version": "0.10.0",
            "types": ""
        },
        "discoursesso": {
            "clientsecret": "rik+gryreQuan3",
            "clienturl": "https:\/\/discourse.example.com",
            "enabled": "no",
            "installed_version": "1.21.1",
            "replace_whitespaces": "_",
            "types": ""
        },
        "event_update_notification": {
            "enabled": "no",
            "installed_version": "1.3.0",
            "types": "logging,dav"
        },
        "external": {
            "enabled": "yes",
            "installed_version": "5.5.2",
            "jwt_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "jwt_token_pubkey_es256": "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnF0PsrNZQ36Fl6Kk4vR7E6qOg2JV\nmvGqQadw0QLsmuPHiSVsoOs2iI4kxkdBWkI7bodRKfAypXNtPbFc0pLzYQ==\n-----END PUBLIC KEY-----\n",
            "max_site": "1",
            "sites": "***REMOVED SENSITIVE VALUE***",
            "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "default_quota": "5 GB",
            "enabled": "yes",
            "installed_version": "2.2.0",
            "mimetype_version": "30.0.2.2",
            "types": "filesystem"
        },
        "files_accesscontrol": {
            "enabled": "no",
            "installed_version": "1.1.2",
            "types": "filesystem"
        },
        "files_automatedtagging": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "filesystem"
        },
        "files_downloadactivity": {
            "enabled": "no",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "files_external": {
            "enabled": "no",
            "installed_version": "1.22.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "files_readmemd": {
            "auto_refresh": "false",
            "disable_workspace": "true",
            "enabled": "no",
            "fileslist_footer": "[\"README\"]",
            "fileslist_header": "[\"HEADER\"]",
            "installed_version": "1.1.4",
            "show_asciidoc": "false",
            "show_html": "false",
            "show_title": "true",
            "types": "filesystem",
            "yellow_back": "true"
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "no",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_scripts": {
            "enabled": "no",
            "first_run": "false",
            "installed_version": "4.1.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "incoming_server2server_group_share_enabled": "yes",
            "installed_version": "1.22.0",
            "lookupServerEnabled": "no",
            "lookupServerUploadEnabled": "no",
            "outgoing_server2server_group_share_enabled": "yes",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.8.0",
            "types": ""
        },
        "files_trackdownloads": {
            "enabled": "no",
            "installed_version": "1.11.0",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.20.1",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.23.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "no",
            "installed_version": "2.4.0",
            "types": "logging"
        },
        "flow_notifications": {
            "enabled": "no",
            "installed_version": "1.10.0",
            "types": ""
        },
        "flowupload": {
            "enabled": "no",
            "installed_version": "0.0.8",
            "types": ""
        },
        "forms": {
            "enabled": "yes",
            "installed_version": "4.3.4",
            "types": ""
        },
        "gallery": {
            "enabled": "no",
            "installed_version": "18.4.0",
            "types": ""
        },
        "hibp": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "impersonate": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "prevent_group_restriction"
        },
        "integration_openai": {
            "api_key": "XXXXX",
            "enabled": "no",
            "installed_version": "1.0.13",
            "types": "",
            "url": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.18.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "no",
            "installed_version": "4.0.2",
            "types": ""
        },
        "mailnotifier": {
            "enabled": "no",
            "installed_version": "0.0.3",
            "types": ""
        },
        "maps": {
            "enabled": "no",
            "installed_version": "0.1.8",
            "lastAddressLookup": "1594974756",
            "types": "filesystem"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notes": {
            "enabled": "no",
            "installed_version": "2.6.0",
            "ocsid": "174554",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.18.1",
            "types": "authentication"
        },
        "onlyoffice": {
            "DocumentServerInternalUrl": "",
            "DocumentServerUrl": "https:\/\/doc.example.com\/",
            "StorageUrl": "",
            "customizationChat": "true",
            "customizationCompactHeader": "true",
            "customizationFeedback": "true",
            "customizationHelp": "true",
            "customizationToolbarNoTabs": "true",
            "defFormats": "{\"csv\":\"false\",\"doc\":\"true\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"true\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"false\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"true\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}",
            "demo": "{\"available\":true,\"enabled\":false,\"start\":{\"date\":\"2020-03-19 12:28:39.138636\",\"timezone_type\":3,\"timezone\":\"UTC\"}}",
            "editFormats": "{\"csv\":\"true\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"rtf\":\"false\",\"txt\":\"true\"}",
            "enabled": "no",
            "groups": "[]",
            "installed_version": "4.1.4",
            "jwt_secret": "***REMOVED SENSITIVE VALUE***",
            "sameTab": "false",
            "settings_error": "",
            "types": "filesystem"
        },
        "ownpad": {
            "enabled": "no",
            "installed_version": "0.5.7",
            "types": ""
        },
        "passman": {
            "enabled": "no",
            "installed_version": "2.4.0",
            "types": ""
        },
        "password_policy": {
            "enabled": "yes",
            "enforceHaveIBeenPwned": "1",
            "enforceNonCommonPassword": "1",
            "installed_version": "2.0.0",
            "minLength": "4",
            "types": "authentication"
        },
        "passwords": {
            "SSEv1ServerKey": "***REMOVED SENSITIVE VALUE***",
            "cron\/sharing\/time": "1673723000",
            "enabled": "no",
            "installed_version": "2023.1.11",
            "types": "",
            "web\/php\/version\/id": "70433",
            "web\/php\/version\/string": "7.4.33"
        },
        "phonetrack": {
            "enabled": "no",
            "installed_version": "0.5.1",
            "types": ""
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "3.0.2",
            "lastPlaceMappedUser": "Yvonne",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "polls": {
            "allAccessGroups": "[]",
            "allowAllAccess": "yes",
            "allowCombo": "yes",
            "allowPollCreation": "yes",
            "allowPollDownload": "yes",
            "allowPublicShares": "yes",
            "autoArchive": "yes",
            "autoArchiveOffset": "30",
            "comboGroups": "[]",
            "disclaimer": "",
            "enabled": "no",
            "imprintUrl": "",
            "installed_version": "7.2.4",
            "legalTermsInEmail": "yes",
            "pollCreationGroups": "[]",
            "pollDownloadGroups": "[]",
            "privacyUrl": "",
            "publicSharesGroups": "[]",
            "showLogin": "no",
            "showMailAddresses": "yes",
            "showMailAddressesGroups": "[]",
            "types": "",
            "updateType": "noPolling",
            "useActivity": "yes"
        },
        "previewgenerator": {
            "enabled": "no",
            "installed_version": "2.3.0",
            "types": "filesystem"
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "readableLocation": "de",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "prevent_group_restriction"
        },
        "rainloop": {
            "enabled": "no",
            "installed_version": "7.2.6",
            "types": ""
        },
        "recommendations": {
            "enabled": "no",
            "installed_version": "0.8.0",
            "types": ""
        },
        "registration": {
            "admin_approval_required": "no",
            "disable_email_verification": "no",
            "domains_is_blocklist": "no",
            "email_is_login": "no",
            "email_is_optional": "no",
            "enabled": "no",
            "enforce_fullname": "no",
            "enforce_phone": "no",
            "installed_version": "2.5.0",
            "show_domains": "no",
            "show_fullname": "yes",
            "show_phone": "yes",
            "types": "prevent_group_restriction"
        },
        "related_resources": {
            "enabled": "no",
            "installed_version": "1.5.0",
            "types": ""
        },
        "richdocuments": {
            "disable_certificate_verification": "yes",
            "enabled": "no",
            "installed_version": "8.4.3",
            "public_wopi_url": "https:\/\/example.com\/cloud\/apps\/richdocumentscode\/proxy.php?req=",
            "types": "prevent_group_restriction",
            "wopi_allowlist": "195.90.200.170, 2a00:6800:3:c2::1",
            "wopi_url": "https:\/\/example.com\/cloud\/apps\/richdocumentscode\/proxy.php?req="
        },
        "richdocumentscode": {
            "enabled": "no",
            "installed_version": "24.4.502",
            "types": ""
        },
        "secrets": {
            "enabled": "no",
            "installed_version": "1.0.1",
            "types": ""
        },
        "serverinfo": {
            "cached_count_filecache": "77935",
            "cached_count_storages": "50",
            "enabled": "no",
            "installed_version": "1.15.0",
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "profile_enabled_by_default": "0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "no",
            "installed_version": "1.20.0",
            "sendpasswordmail": "no",
            "types": "filesystem"
        },
        "sharerenamer": {
            "enabled": "no",
            "installed_version": "2.5.0",
            "types": ""
        },
        "snappymail": {
            "enabled": "[\"webmail\"]",
            "installed_version": "2.38.2",
            "snappymail-autologin": "",
            "snappymail-autologin-with-email": "",
            "types": ""
        },
        "socialsharing_email": {
            "enabled": "no",
            "installed_version": "2.0.0",
            "types": ""
        },
        "spreed": {
            "enabled": "no",
            "has_reference_id": "yes",
            "installed_version": "11.0.0",
            "project_access_invalidated": "1",
            "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "turn_servers": "***REMOVED SENSITIVE VALUE***",
            "types": "dav,prevent_group_restriction"
        },
        "stt_whisper": {
            "enabled": "no",
            "installed_version": "1.0.6",
            "types": ""
        },
        "support": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": ""
        },
        "survey_client": {
            "enabled": "no",
            "installed_version": "1.4.0",
            "types": ""
        },
        "suspicious_login": {
            "enabled": "no",
            "installed_version": "4.3.0",
            "types": "authentication"
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "logging"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0.16.1",
            "types": ""
        },
        "telephoneprovider": {
            "enabled": "no",
            "installed_version": "1.0.3",
            "types": ""
        },
        "text": {
            "enabled": "yes",
            "installed_version": "4.1.0",
            "types": "dav"
        },
        "theming": {
            "backgroundMime": "image\/png",
            "background_color": "#7BC907",
            "cachebuster": "62",
            "disable-user-theming": "yes",
            "enabled": "yes",
            "installed_version": "2.5.0",
            "logoDimensions": "2000x1158",
            "logoMime": "image\/jpeg",
            "name": "Example Site",
            "primary_color": "#7BC907",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": ""
        },
        "twofactor_totp": {
            "enabled": "yes",
            "installed_version": "12.0.0-dev",
            "types": ""
        },
        "twofactor_webauthn": {
            "enabled": "no",
            "installed_version": "2.0.0",
            "types": ""
        },
        "updatenotification": {
            "apporder": "0.14.0",
            "bookmarks": "14.2.5",
            "bruteforcesettings": "1.4.0",
            "calendar": "5.0.5",
            "calendar_resource_management": "0.7.0",
            "contacts": "5.5.3",
            "core": "30.0.2.2",
            "deck": "0.6.5",
            "enabled": "yes",
            "event_update_notification": "1.0.2",
            "external": "5.2.1",
            "files_pdfviewer": "1.2.1",
            "files_readmemd": "1.1.4",
            "files_rightclick": "0.15.1",
            "files_trackdownloads": "1.7.0",
            "flowupload": "0.0.8",
            "forms": "4.1.0",
            "impersonate": "1.12.0",
            "installed_version": "1.20.0",
            "keeweb": "0.4.0",
            "mail": "2.2.2",
            "maps": "0.1.6",
            "music": "0.16.0",
            "notes": "2.3.1",
            "passman": "2.1.4",
            "polls": "5.1.0",
            "previewgenerator": "2.3.0",
            "rainloop": "7.2.6",
            "registration": "2.1.0",
            "richdocuments": "8.3.6",
            "richdocumentscode": "24.4.103",
            "sharerenamer": "2.5.1",
            "snappymail": "2.36.0",
            "spreed": "10.0.6",
            "tasks": "0.16.1",
            "theming": "1.4.5",
            "twofactor_totp": "6.4.1",
            "twofactor_webauthn": "1.4.0",
            "types": "",
            "update_check_errors": "0",
            "workflow_kitinerary": "1.4.0",
            "workflow_script": "1.13.1"
        },
        "user_status": {
            "enabled": "no",
            "installed_version": "1.5.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": ""
        },
        "webhook_listeners": {
            "enabled": "yes",
            "installed_version": "1.1.0-dev",
            "types": "filesystem"
        },
        "workflow_kitinerary": {
            "enabled": "no",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "workflow_script": {
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "filesystem"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.12.0",
            "types": "filesystem"
        }
    }
}

@Chartman123
Copy link
Collaborator

@huckley Versions alone doesn't seem to be the (only) cause of this. On my instance it's also enabled...

Can you please create a simple test form with a file question and see if it happens there, too?

@Chartman123
Copy link
Collaborator

The form is a simple anonymous file upload form, which is shared by link.

Does the error only appear when the submitting user is not logged in or also when logged in?

@huckley
Copy link
Author

huckley commented Dec 2, 2024

I confirm that the error only appear when the submitting user is not logged in.

@Chartman123
Copy link
Collaborator

I confirm that the error only appear when the submitting user is not logged in.

Thanks, I can reproduce it now: File gets moved to correct folder after submission, but error is shown in log. So this is indeed a bug.

@Chartman123 Chartman123 added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. needs info Not enough information provided labels Dec 2, 2024
@Chartman123 Chartman123 changed the title NotFoundException Exception thrown: OCP\Files\NotFoundException Exception thrown: OCP\Files\NotFoundException OCP\Files\NotFoundException thrown when a file is submitted via link share and user is not logged in Dec 2, 2024
@Chartman123 Chartman123 added this to the 4.3.5 milestone Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants