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

Error getting related resources #194

Open
Janokisu opened this issue Mar 11, 2023 · 19 comments
Open

Error getting related resources #194

Janokisu opened this issue Mar 11, 2023 · 19 comments
Labels
0. Needs triage Pending approval or rejection bug Something isn't working

Comments

@Janokisu
Copy link

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
Copy link

agru commented Mar 15, 2023

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

@agru
Copy link

agru commented Mar 15, 2023

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()

@sedding
Copy link

sedding commented Mar 15, 2023

Same issue here - also on 25.0.4

@tacruc
Copy link

tacruc commented Mar 22, 2023

If it helps the failing request and response:
image
image

@JackBailey
Copy link

Same issue - 26.0.0.

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

@JordanDIG
Copy link

This problem is also in nextcloud 26.0

@johanehnberg
Copy link

We are also seeing this

@melroy89
Copy link

melroy89 commented Apr 7, 2023

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": {}
  }
}

@nickvergessen
Copy link
Member

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

@melroy89
Copy link

melroy89 commented Apr 7, 2023

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

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

@AlexanderZuehr
Copy link

AlexanderZuehr commented Apr 19, 2023

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 ?

@ChristophWurst
Copy link
Member

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

@AlexanderZuehr
Copy link

AlexanderZuehr commented Apr 19, 2023

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

Is it @ArtificialOwl ?

@melroyvandenberg
Copy link

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.

@Githopp192
Copy link

same error on Nextcloud 25.0.6
RHEL 8.7
PHP 8.1

@Anth0nyME
Copy link

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

изображение

@melroy89
Copy link

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.

@joshtrichards
Copy link
Member

#106 (comment)

@joshtrichards joshtrichards added 0. Needs triage Pending approval or rejection bug Something isn't working labels Feb 23, 2024
@rchaconmolero
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection bug Something isn't working
Projects
None yet
Development

No branches or pull requests