nextcloud/related_resources

Error getting related resources

Janokisu opened this issue · 19 comments

NC 25.0.4
Related Resources 1.0.4

NC errorlog:

[no app in context] Fehler: Exception: OCA\Circles\CirclesManager::getCurrentFederatedUser(): Return value must be of type OCA\Circles\IFederatedUser, null returned in file '/var/www/html/apps/circles/lib/CirclesManager.php' line 253 at <<closure>>

0. /var/www/html/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(["OCA\\RelatedRe ... "], "getRelatedResources")
1. /var/www/html/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("OCA\\RelatedRes ... r", "getRelatedResources", ["OC\\AppFramewo ... "], ["files","584"," ... "])
2. /var/www/html/ocs/v1.php line 63
   OC\Route\Router->match("/ocsapp/apps/re ... 4")
3. /var/www/html/ocs/v2.php line 23
   require_once("/var/www/html/ocs/v1.php")

Steps to reproduce

  1. share a folder
  2. open the detail view by the creator or by the authorized person
  3. in the upper right corner the message "Error getting related resources" appears and this app info is missing

Like #106 (image by @Jerome-Herbinet ). #150 could also be related to this
grafik

agru commented

I can confirm this issue. After upgrade to NC 25.0.4 we have the same problem.

agru commented

After a second look to the log entry I'm unsure whether the problem is in related resources app or whether it is a problem of the circles app. An indicator for this might be this part of the whole log entry:

Exception: OCA\Circles\CirclesManager::getCurrentFederatedUser(): Return value must be of type OCA\Circles\IFederatedUser, null returned in file '/var/www/html/nextcloud/apps/circles/lib/CirclesManager.php' line 253
...
TypeError: OCA\Circles\CirclesManager::getCurrentFederatedUser()

Same issue here - also on 25.0.4

If it helps the failing request and response:
image
image

Same issue - 26.0.0.

Shows up even when just moving around files without opening the details

This problem is also in nextcloud 26.0

We are also seeing this

Yup.. @nickvergessen You are aware of this issue in this app?

{
  "message": "Request failed with status code 404",
  "name": "AxiosError",
  "code": "ERR_BAD_REQUEST",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {
      "FormData": null
    },
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "requesttoken": "secret"
    },
    "method": "get",
    "url": "https://myserver/ocs/v2.php/apps/related_resources/related/files/secret?format=json"
  },
  "request": {},
  "response": {
    "data": {
      "ocs": {
        "meta": {
          "status": "failure",
          "statuscode": 404,
          "message": "Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services.\n"
        },
        "data": []
      }
    },
    "status": 404,
    "statusText": "Not Found",
    "headers": {
      "cache-control": "no-store, no-cache, must-revalidate",
      "content-encoding": "gzip",
      "content-security-policy": "default-src 'self'; script-src 'self' 'secret'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';",
      "content-type": "application/json; charset=utf-8",
      "date": "Fri, 07 Apr 2023 20:36:34 GMT",
      "expires": "Thu, 19 Nov 1981 08:52:00 GMT",
      "pragma": "no-cache",
      "referrer-policy": "no-referrer",
      "server": "nginx",
      "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
      "vary": "Accept-Encoding",
      "x-content-type-options": "nosniff",
      "x-download-options": "noopen",
      "x-firefox-spdy": "h2",
      "x-frame-options": "SAMEORIGIN",
      "x-permitted-cross-domain-policies": "none",
      "x-robots-tag": "noindex, nofollow",
      "x-xss-protection": "1; mode=block"
    },
    "config": {
      "transitional": {
        "silentJSONParsing": true,
        "forcedJSONParsing": true,
        "clarifyTimeoutError": false
      },
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "timeout": 0,
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN",
      "maxContentLength": -1,
      "maxBodyLength": -1,
      "env": {
        "FormData": null
      },
      "headers": {
        "Accept": "application/json, text/plain, */*",
        "requesttoken": "secret"
      },
      "method": "get",
      "url": "https://myserver/ocs/v2.php/apps/related_resources/related/files/secret?format=json"
    },
    "request": {}
  }
}

@melroy89 why should I? It's not my app, so no clue

@melroy89 why should I? It's not my app, so no clue

Sorry. I though you were a developer for this app.

We do also have this problem, disabling the Related Resources App solves it temporarily.
But this will probably have a negative side effect?

Can you help us please @ChristophWurst ?

I'm not the maintainer nor do I know much about this app

Who is the maintainer and could you ping him/her for us?

Is it @ArtificialOwl ?

We do also have this problem, disabling the Related Resources App solves it temporarily. But this will probably have a negative side effect?

Not that I know of. You just don't see any related items to the current selected item in Nextcloud.

same error on Nextcloud 25.0.6
RHEL 8.7
PHP 8.1

Same error @ 27.1.0 but fully related to Group Folders. Comman user folders not affected.

изображение

Who is the maintainer and could you ping him/her for us?

Is it @ArtificialOwl ?

Maybe @Pytal ? As you can see a lot of people are effected by this issue.

I have a similar problem but after migrate to 28.0.x. The error ocurrs in contactos with circles. Messages in log are registered.