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

Sciencemesh app breaks user search #63

Open
mickenordin opened this issue Oct 30, 2023 · 1 comment
Open

Sciencemesh app breaks user search #63

mickenordin opened this issue Oct 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working critical Show-stopper for production
Milestone

Comments

@mickenordin
Copy link

When searching for a user with the sciencemesh app enabled, search fails with the following log line:

{
  "reqId": "0AlNjzaxMxGPaFxRBw2b",
  "level": 3,
  "time": "2023-10-30T11:23:28+00:00",
  "remoteAddr": "89.46.21.246",
  "user": "_kano",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&itemType=folder&search=freitag%40sunet.se&lookup=true&perPage=25&shareType[]=0&shareType[]=1&shareType[]=6&shareType[]=9&shareType[]=7&shareType[]=10&shareType[]=8&shareType[]=12&shareType[]=undefined&shareType[]=4",
  "message": "array_filter(): Argument #1 ($array) must be of type array, null given in file /var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php line 37",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0",
  "version": "26.0.7.1",
  "exception": {
    "Exception": "Exception",
    "Message": "array_filter(): Argument #1 ($array) must be of type array, null given in file /var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php line 37",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/App.php",
        "line": 183,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->",
        "args": [
          [
            "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
          ],
          "search"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::",
        "args": [
          "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
          "search",
          [
            "OC\\AppFramework\\DependencyInjection\\DIContainer"
          ],
          [
            "ocs.files_sharing.ShareesAPI.search"
          ]
        ]
      },
      {
        "file": "/var/www/html/ocs/v1.php",
        "line": 64,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->",
        "args": [
          "/ocsapp/apps/files_sharing/api/v1/sharees"
        ]
      },
      {
        "file": "/var/www/html/ocs/v2.php",
        "line": 23,
        "args": [
          "/var/www/html/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 169,
    "Previous": {
      "Exception": "TypeError",
      "Message": "array_filter(): Argument #1 ($array) must be of type array, null given",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php",
          "line": 37,
          "function": "array_filter",
          "args": [
            null,
            [
              "Closure"
            ]
          ]
        },
        {
          "file": "/var/www/html/lib/private/Collaboration/Collaborators/Search.php",
          "line": 72,
          "function": "search",
          "class": "OCA\\ScienceMesh\\Plugins\\ScienceMeshSearchPlugin",
          "type": "->",
          "args": [
            "[email protected]",
            25,
            0,
            [
              "OC\\Collaboration\\Collaborators\\SearchResult"
            ]
          ]
        },
        {
          "file": "/var/www/html/apps/files_sharing/lib/Controller/ShareesAPIController.php",
          "line": 227,
          "function": "search",
          "class": "OC\\Collaboration\\Collaborators\\Search",
          "type": "->",
          "args": [
            "[email protected]",
            [
              0,
              1,
              4,
              6,
              7
            ],
            true,
            25,
            0
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 230,
          "function": "search",
          "class": "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
          "type": "->",
          "args": [
            "[email protected]",
            "folder",
            1,
            25,
            [
              "0",
              "1",
              "6",
              "9",
              "7",
              "10",
              "8",
              "12",
              "undefined",
              "4"
            ],
            true
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 137,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            [
              "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
            ],
            "search"
          ]
        },
        {
          "file": "/var/www/html/lib/private/AppFramework/App.php",
          "line": 183,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->",
          "args": [
            [
              "OCA\\Files_Sharing\\Controller\\ShareesAPIController"
            ],
            "search"
          ]
        },
        {
          "file": "/var/www/html/lib/private/Route/Router.php",
          "line": 315,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::",
          "args": [
            "OCA\\Files_Sharing\\Controller\\ShareesAPIController",
            "search",
            [
              "OC\\AppFramework\\DependencyInjection\\DIContainer"
            ],
            [
              "ocs.files_sharing.ShareesAPI.search"
            ]
          ]
        },
        {
          "file": "/var/www/html/ocs/v1.php",
          "line": 64,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->",
          "args": [
            "/ocsapp/apps/files_sharing/api/v1/sharees"
          ]
        },
        {
          "file": "/var/www/html/ocs/v2.php",
          "line": 23,
          "args": [
            "/var/www/html/ocs/v1.php"
          ],
          "function": "require_once"
        }
      ],
      "File": "/var/www/html/custom_apps/sciencemesh/lib/Plugins/ScienceMeshSearchPlugin.php",
      "Line": 37
    },
    "CustomMessage": "--"
  }
}
@glpatcern glpatcern added the bug Something isn't working label Nov 1, 2023
@glpatcern glpatcern added this to the Release 0.6 milestone Nov 2, 2023
@glpatcern glpatcern added the critical Show-stopper for production label Jan 26, 2024
@glpatcern
Copy link
Member

This is fixed, some documentation is to be added to explain how to configure. Keeping it open until that is done.

@MahdiBaghbani MahdiBaghbani self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Show-stopper for production
Projects
None yet
Development

No branches or pull requests

3 participants