nextcloud / nextcloud/files_mindmap

cannot open the activity app after editing/opening a mindmap

Open
#99 5 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

I am currently on v20, NC 18.0.2, Ubuntu 18.04, PHP 7.2

After opening/editing a mindmap I cannot open the activity app with this user.

To reproduce:
  1. install mindmap v20
  2. open/edit a mindmap
  3. close and save
  4. try to open the activity app
  5. See a never ending spinning wheel
expected:

I shouldn't see this spinning wheel but instead the activity stream.

These errors are in the logs:
1.

[PHP] Error: copy(/var/www/nextcloud/core/img/filetypes/mindmap.svg): failed to open stream: Permission denied at /var/www/nextcloud/apps/files_mindmap/lib/Migration/InstallStep.php#41

POST /settings/apps/enable
from 87.123.148.145 by admin at 2020-03-17T21:26:25+01:00

2.

[PHP] Error: file_put_contents(/var/www/nextcloud/core/js/mimetypelist.js): failed to open stream: Permission denied at /var/www/nextcloud/core/Command/Maintenance/Mimetype/UpdateJS.php#57

POST /settings/apps/enable
from 87.123.148.145 by admin at 2020-03-17T21:26:25+01:00

3.

[no app in context] Error: Exception: substr() expects parameter 3 to be integer, boolean given at <>

  1. /var/www/nextcloud/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Activity\Controller\APIv2 {}, "getFilter")
  2. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("APIv2Controller", "getFilter", OC\AppFramework\ ... {}, {filter: "all",_ ... "})
  3. <>
    OC\AppFramework\Routing\RouteActionHandler->_invoke({filter: "all", ... "})
  4. /var/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {filter: "all",_ ... "})
  5. /var/www/nextcloud/ocs/v1.php line 82
    OC\Route\Router->match("/ocsapp/apps/ac ... l")
  6. /var/www/nextcloud/ocs/v2.php line 24
    require_once("/var/www/nextcloud/ocs/v1.php")

GET /ocs/v2.php/apps/activity/api/v2/activity/all?format=json&previews=true&since=0
from 87.123.148.145 by admin at 2020-03-17T21:28:06+01:00

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

Reproduce the mindmap edit/save flow, then read apps/files_mindmap/lib/Migration/InstallStep.php around line 41 and trace the activity API request shown in the logs. Check the referenced permission errors and substr() failure; done means the activity stream opens after editing a mindmap without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.