nextcloud / nextcloud/files_mindmap

Stream of RuntimeExceptions reported in log - Application is not setup via query() but directly

Open
#172 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
197
Forks
52
Avg merge
22h 14m
Merged PRs (30d)
13

Description

RuntimeException: App class OCA\Files_MindMap\AppInfo\Application is not setup via query() but directly

    /var/www/html/custom_apps/files_mindmap/lib/AppInfo/Application.php - line 12:

    OCP\AppFramework\App->__construct("files_mindmap", [])

    /var/www/html/custom_apps/files_mindmap/appinfo/app.php - line 31:

    OCA\Files_MindMap\AppInfo\Application->__construct()

    /var/www/html/lib/private/legacy/OC_App.php - line 304:

    require_once("/var/www/ht ... p")

    /var/www/html/lib/private/legacy/OC_App.php - line 186:

    OC_App::requireAppFile("files_mindmap")

    /var/www/html/lib/private/legacy/OC_App.php - line 140:

    OC_App::loadApp("files_mindmap")

    /var/www/html/lib/base.php - line 986:

    OC_App::loadApps()

    /var/www/html/index.php - line 36:

    OC::handleRequest()

image

Same as https://github.com/pawelrojek/nextcloud-drawio/issues/132

See also
https://github.com/nextcloud/ocsms/issues/330
https://github.com/nextcloud/maps/issues/384
https://github.com/nextcloud/calendar/pull/1958

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/AppInfo/Application.php and appinfo/app.php, then trace the loading path shown through OC_App::requireAppFile and OC_App::loadApp. Compare the reported setup with the related nextcloud-drawio, ocsms, maps, and calendar references. Done means the reported RuntimeException no longer appears when files_mindmap is loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.