nextcloud / forms

📝 Simple form & survey app for Nextcloud
https://apps.nextcloud.com/apps/forms
GNU Affero General Public License v3.0
316 stars 96 forks source link

Can't create file when saving to CSV when title has `/` in it #1630

Closed audunmb closed 1 year ago

audunmb commented 1 year ago

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug When saving a response with "Save CSV to file" there's no option to create a new file in Nextcloud.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Results'
  2. Click on 'Save SCV to file'
  3. Choose a folder.
  4. You have to select a file that's already there. (Clicking the + button creates a new folder. )

Expected behavior Expected behavior would be a button that says "Create new file", and then the option to give the new file a name.

Screenshots Screenshot shows the Save to CSV-file window. Screenshot 2023-05-23 at 13-32-59 Rapport fra foredrag_innledning_debatt - Skjemaer - Nextcloud - Attac

Nextcloud (please complete the following information):

Desktop (please complete the following information):

Chartman123 commented 1 year ago

Hi @audunmb

you don't have to choose a file. If you just choose the folder where you want to store your answers, just click the "choose" button without selecting a file. It will then be saved in a file with your Form name 🙂

audunmb commented 1 year ago

No, I can't. I get an error if I do that. But then that error is the bug, not the lacking feature.

Chartman123 commented 1 year ago

Then please post the error logs from your browser console and Nextcloud log here so that we can track the problem down.

audunmb commented 1 year ago

The error warnings says I get: "Det oppstod en feil ved eksportering til filer" (the setup is in Norwegian) which translates to "There was an error when exporting to files".

Nextcloud logs (it says Feil which is Norwegian for Error):

[index] Feil: TypeError: OCA\Files\Service\TagService::__construct(): Argument #4 ($homeFolder) must be of type OCP\Files\Folder, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 111 at <<closure>>

 0. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 111
    OCA\Files\Service\TagService->__construct()
 1. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
    OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
 3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
    Pimple\Container->offsetGet()
 4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
    OC\AppFramework\Utility\SimpleContainer->query()
 5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
 6. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
    OC\AppFramework\DependencyInjection\DIContainer->query()
 7. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 90
    OC\AppFramework\Utility\SimpleContainer->get()
 8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 171
    OCA\Files\AppInfo\Application->OCA\Files\AppInfo\{closure}("*** sensitive parameters replaced ***")
 9. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 122
    OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 138
    Pimple\Container->offsetGet()
11. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 487
    OC\AppFramework\Utility\SimpleContainer->query()
12. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 465
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
13. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 65
    OC\AppFramework\DependencyInjection\DIContainer->query()
14. /var/www/nextcloud/lib/private/AppFramework/App.php line 148
    OC\AppFramework\Utility\SimpleContainer->get()
15. /var/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
16. /var/www/nextcloud/lib/base.php line 1056
    OC\Route\Router->match()
17. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /apps/files/api/v1/stats
from 77.40.167.80 at 2023-05-24T07:25:52+00:00
[richdocuments] Feil: OCA\Richdocuments\Exceptions\UnknownTokenException: Could not find token. at <<closure>>

0. /var/www/nextcloud/apps/richdocuments/lib/Middleware/WOPIMiddleware.php line 76
   OCA\Richdocuments\Db\WopiMapper->getWopiForToken()
1. /var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 96
   OCA\Richdocuments\Middleware\WOPIMiddleware->beforeController()
2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 129
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController()
3. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
4. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
5. /var/www/nextcloud/lib/base.php line 1056
   OC\Route\Router->match()
6. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

GET /index.php/apps/richdocuments/wopi/files/3564_ochcrvrelgqi?access_token=2jgbzApMy2pkSsmzUFjwGRHkyCEVhWcf&access_token_ttl=1684890164000&permission=edit
from 185.220.119.250 at 2023-05-24T07:29:38+00:00
[richdocuments] Feil: OCA\Richdocuments\Exceptions\UnknownTokenException: Could not find token. at <<closure>>

0. /var/www/nextcloud/apps/richdocuments/lib/Middleware/WOPIMiddleware.php line 76
   OCA\Richdocuments\Db\WopiMapper->getWopiForToken()
1. /var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 96
   OCA\Richdocuments\Middleware\WOPIMiddleware->beforeController()
2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 129
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController()
3. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
4. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
5. /var/www/nextcloud/lib/base.php line 1056
   OC\Route\Router->match()
6. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

GET /index.php/apps/richdocuments/wopi/files/3733_ochcrvrelgqi?access_token=SYlcoQWR8y22FVoSUNvFxFWkrlrFwCgQ&access_token_ttl=1684891323000&permission=edit
from 185.220.119.250 at 2023-05-24T07:31:57+00:00
[richdocuments] Feil: OCA\Richdocuments\Exceptions\UnknownTokenException: Could not find token. at <<closure>>

0. /var/www/nextcloud/apps/richdocuments/lib/Middleware/WOPIMiddleware.php line 76
   OCA\Richdocuments\Db\WopiMapper->getWopiForToken()
1. /var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 96
   OCA\Richdocuments\Middleware\WOPIMiddleware->beforeController()
2. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 129
   OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController()
3. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
   OC\AppFramework\Http\Dispatcher->dispatch()
4. /var/www/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
5. /var/www/nextcloud/lib/base.php line 1056
   OC\Route\Router->match()
6. /var/www/nextcloud/index.php line 36
   OC::handleRequest()

GET /index.php/apps/richdocuments/wopi/files/3564_ochcrvrelgqi?access_token=2jgbzApMy2pkSsmzUFjwGRHkyCEVhWcf&access_token_ttl=1684890164000&permission=edit
from 185.220.119.250 at 2023-05-24T07:32:01+00:00

Browser logs:

Browser Console Mode
Parent process only(Fast)
Multiprocess(Slower)
DOMException: Could not parse path (null): NS_ERROR_FILE_UNRECOGNIZED_PATH
    _getChromeUserDataPathIfExists resource:///modules/ChromeProfileMigrator.sys.mjs:109
[MigratorBase.sys.mjs:562:15](resource:///modules/MigratorBase.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152206   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (pt-BR)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["pt-BR"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152220   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (ja)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["ja","ja-JP-mac"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152233   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (zh-CN)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["zh-CN"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152247   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (zh-TW)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["zh-TW"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152266   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (en)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["en-AU","en-GB","en-CA","en-NZ","en-ZA","en-US"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152338   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (Germany / de / gen pop)". Filter: [(normandy.channel in ["release"]) && (normandy.country in ["DE"]) && (normandy.locale in ["de"]) && (["global-v5",normandy.userId]|bucketSample(6800,300,10000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152354   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (Germany / de / first use < 1 month ago)". Filter: [(normandy.channel in ["release"]) && (normandy.country in ["DE"]) && (["global-v5",normandy.userId]|bucketSample(7800,500,10000)) && (normandy.locale in ["de"]) && (!normandy.isFirstRun && (normandy.request_time / (1000 * 60 * 60 * 24) - normandy.telemetry.main.environment.profile.firstUseDate < 30))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152378   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (Germany / de / first use < 3 months ago)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["de","de-AT","de-DE","de-CH"]) && (normandy.country in ["DE"]) && (["global-v5",normandy.userId]|bucketSample(8800,200,10000)) && (!normandy.isFirstRun && (normandy.request_time / (1000 * 60 * 60 * 24) - normandy.telemetry.main.environment.profile.firstUseDate < 90))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152395   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (France / fr / gen pop)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["fr"]) && (normandy.country in ["FR"]) && (["global-v5",normandy.userId]|bucketSample(6800,300,10000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152418   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (France / fr / first use < 1 month ago)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["fr"]) && (normandy.country in ["FR"]) && (["global-v5",normandy.userId]|bucketSample(7800,500,10000)) && (!normandy.isFirstRun && (normandy.request_time / (1000 * 60 * 60 * 24) - normandy.telemetry.main.environment.profile.firstUseDate < 30))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152445   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (France / fr / first use < 3 months ago)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["fr"]) && (normandy.country in ["FR"]) && (["global-v5",normandy.userId]|bucketSample(8800,200,10000)) && (!normandy.isFirstRun && (normandy.request_time / (1000 * 60 * 60 * 24) - normandy.telemetry.main.environment.profile.firstUseDate < 90))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152461   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (US / en / gen pop)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["en-US"]) && (normandy.country in ["US"]) && (["global-v5",normandy.userId]|bucketSample(6800,200,10000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152483   app.normandy.recipe-runner  ERROR   Error checking filter for "HB: New Profiles Phase 2 (US / en / first use < 1 month ago)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["en-US"]) && (normandy.country in ["US"]) && (["global-v5",normandy.userId]|bucketSample(7800,500,10000)) && (!normandy.isFirstRun && (normandy.request_time / (1000 * 60 * 60 * 24) - normandy.telemetry.main.environment.profile.firstUseDate < 30))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152520   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (fa)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["fa"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.request_time [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152545   app.normandy.recipe-runner  ERROR   Error checking filter for "Heartbeat: Daily Viewpoint Survey (it)". Filter: [(normandy.channel in ["release"]) && (normandy.locale in ["it"]) && (['rolling-viewpoint', normandy.userId]|bucketSample(19468 + normandy.request_time / (24*60*60*1000) + 7, 7, 7000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152709   app.normandy.recipe-runner  ERROR   Error checking filter for "pref-rollout-activity-stream-pkt-new-tab-release69-layout-1577008". Filter: [(normandy.locale in ["en-US"]) && (normandy.country in ["US"]) && (normandy.channel in ["release"]) && ((env.version|versionCompare("69.!")>=0)&&(env.version|versionCompare("69.*")<0)) && ([729,normandy.userId]|bucketSample(639,940,1000))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
attribute_error: normandy.country [Targeting.sys.mjs:130:15](resource://messaging-system/targeting/Targeting.sys.mjs)
TypeError: NetworkError when attempting to fetch resource. [Targeting.sys.mjs:153:21](resource://messaging-system/targeting/Targeting.sys.mjs)
1684913152749   app.normandy.recipe-runner  ERROR   Error checking filter for "DoH US Staged Rollout to All US Desktop Users". Filter: [(normandy.country in ["US"]) && (normandy.channel in ["release"]) && (["doh-rollout",normandy.userId]|bucketSample(0,9900,10000)) && ((env.version|versionCompare("76.!")>=0)&&(env.version|versionCompare("91.*")<0))]. Error: "TypeError: NetworkError when attempting to fetch resource." [Log.sys.mjs:722](resource://gre/modules/Log.sys.mjs)
BroadcastService: receivedBroadcastMessage: handler for remote-settings/monitor_changes threw error: Error: Polling for changes failed: NetworkError: Network request failed.
    pollChanges resource://services-settings/remote-settings.sys.mjs:324
[PushBroadcastService.sys.mjs:260](resource://gre/modules/PushBroadcastService.sys.mjs)
services.settings: NetworkError: Network error: TypeError: NetworkError: Network request failed
    APIError resource://services-settings/RemoteSettingsClient.sys.mjs:111
    NetworkError resource://services-settings/RemoteSettingsClient.sys.mjs:115
    _adjustedError resource://services-settings/RemoteSettingsClient.sys.mjs:911
    maybeSync resource://services-settings/RemoteSettingsClient.sys.mjs:816
Caused by: TypeError: NetworkError: Network request failed
    onerror resource://services-settings/Utils.jsm:237
[remote-settings.sys.mjs:391](resource://services-settings/remote-settings.sys.mjs)
BroadcastService: receivedBroadcastMessage: handler for remote-settings/monitor_changes threw error: NetworkError: Network error: TypeError: NetworkError: Network request failed
    APIError resource://services-settings/RemoteSettingsClient.sys.mjs:111
    NetworkError resource://services-settings/RemoteSettingsClient.sys.mjs:115
    _adjustedError resource://services-settings/RemoteSettingsClient.sys.mjs:911
    maybeSync resource://services-settings/RemoteSettingsClient.sys.mjs:816
Caused by: TypeError: NetworkError: Network request failed
    onerror resource://services-settings/Utils.jsm:237
[PushBroadcastService.sys.mjs:260](resource://gre/modules/PushBroadcastService.sys.mjs)
Sync encountered an error - see about:sync-log for the log file. [policies.sys.mjs:977:15](resource://services-sync/policies.sys.mjs)
Element.releaseCapture() er foreldet. Bruk Element.releasePointerCapture() i stedet. For mer hjelp, se https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture [menupopup.js:160:13](chrome://global/content/elements/menupopup.js)

Note, I'm on a hosted plan for Nextcloud.

Chartman123 commented 1 year ago

Ok, the richdocuments errors are not related, they are about some problems with your Collabora integration. The other one about file tags probably neither.

In your browser console logs I also can't find anything related to forms.

I can't reproduce the problem and we didn't change anything regarding saving CSV files for a long time.

Perhaps you could create a little screencast and show us how you're trying to store the responses to your cloud.

audunmb commented 1 year ago

I don't have any software to create a screencast, so screenshots. bilde bilde I click the choose button and gets this message: bilde

Could this be an issue with permissions of some sort, that has to be fixed by the server admins?

Chartman123 commented 1 year ago

Ok. Yes that might be. But you wanted to store the file to your "home folder" where you should have write permissions. So it might perhaps be a problem with your quota, if any is applied.

Chartman123 commented 1 year ago

@audunmb Have you been able to resolve your issue by now?

audunmb commented 1 year ago

No, it is still an issue. I contacted the server admins, but they didn't find anything either.

susnux commented 1 year ago

@audunmb can you verify that this does not work for you?

  1. Create a new folder in the files view
  2. Verify that you can write into that folder (create any file there)
  3. Go to forms app and save CSV inside that new folder
audunmb commented 1 year ago

@susnux That does work, and I realized that after some testing that is only connected to one particular form. This was the first form I created and when that didn't work, I didn't try to do anything more.

I now created a simple yes/no form, and then I could save the results.

I created a new form with the exact same text and formatting as the one with the error, and I couldn't save this form either. So I guess there's some formatting issues when saving to csv that cause this.

Here's the new form: https://sky.attac.no/apps/forms/s/E5epZGmjJsqgPKdFWCK4ZLQB

Try to duplicate the exact form and maybe you can recreate the error?

Chartman123 commented 1 year ago

Ok, that makes sense... You have a / in your form title which is used for creating the file name.

So then we do indeed have a bug here (I can reproduce it). We probably need to escape special chars for the filename.

Chartman123 commented 1 year ago

@susnux could you have a look at it? We probably need to escape some other special chars, too.

audunmb commented 1 year ago

@Chartman123 thanks for you help. I can confirm that removing the slashes from the title fixes the issue for now. That's a rather easy workaround now that I know what causes the bug.

susnux commented 1 year ago

@susnux could you have a look at it? We probably need to escape some other special chars, too.

Sure

susnux commented 1 year ago

We probably need to escape some other special chars, too.

Nextcloud does not support Windows Server, so all filenames that are valid on Linux should be good (every character except / and the 0 byte). But Nextcloud is a bit stricter and have some other invalid characters (e.g. \).

Thankfully there is a public constant for this: \OCP\Constants::FILENAME_INVALID_CHARS