Skip to content

/ocs/v2.php/apps/files_sharing/api/v1/sharees - expects parameter 2 to be array, null given #28412

Description

@TheReal1604

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. open iOS app
  2. try to share a file internally with another user through the sharees search field
  3. error http 404 is shown in the iOS app.

Expected behaviour

I can share a file internally via the app.

Actual behaviour

Error HTTP 404 - not able to share any files internally with other users (via app)

Server configuration

Operating system: ubuntu 20.04 - nextcloud docker setup

Web server: nginx reverse proxy - docker (tag stable)

Nextcloud version: (see Nextcloud admin page) 22.1.0

Updated from an older Nextcloud/ownCloud or fresh install: Upgraded from 22.0.0

Where did you install Nextcloud from: docker

Are you using encryption: no

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
<ip> - User [10/Aug/2021:20:20:19 +0200] "GET /ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&itemType=file&lookup=false&page=1&perPage=200&search=sve HTTP/1.1" 404 228 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/4.0.6"

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"FXCNvwwoC53k9WgjHtPz","level":3,"time":"2021-08-13T05:52:27+00:00","remoteAddr":"ip","user":"Brian","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/files_sharing/api/v1/sharees?format=json&itemType=file&lookup=false&page=1&perPage=200&search=sve","message":"in_array() expects parameter 2 to be array, null given","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.0.6","version":"22.1.0.1","exception":{"Exception":"Exception","Message":"in_array() expects parameter 2 to be array, null given","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareesAPIController"},"search"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareesAPIController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareesAPI.search"}]},{"file":"/var/www/html/ocs/v1.php","line":62,"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":158,"Previous":{"Exception":"TypeError","Message":"in_array() expects parameter 2 to be array, null given","Code":0,"Trace":[{"file":"/var/www/html/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php","line":101,"function":"in_array","args":[10,null]},{"file":"/var/www/html/lib/private/Collaboration/Collaborators/Search.php","line":72,"function":"search","class":"OCA\\Circles\\Collaboration\\v2\\CollaboratorSearchPlugin","type":"->","args":["sve",25,0,{"__class__":"OC\\Collaboration\\Collaborators\\SearchResult"}]},{"file":"/var/www/html/apps/files_sharing/lib/Controller/ShareesAPIController.php","line":228,"function":"search","class":"OC\\Collaboration\\Collaborators\\Search","type":"->","args":["sve",[0,1,4,6,7,9,10,12,12],false,25,0]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"search","class":"OCA\\Files_Sharing\\Controller\\ShareesAPIController","type":"->","args":["sve","file",1,25,null,false]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareesAPIController"},"search"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files_Sharing\\Controller\\ShareesAPIController"},"search"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareesAPIController","search",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files_sharing.ShareesAPI.search"}]},{"file":"/var/www/html/ocs/v1.php","line":62,"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/apps/circles/lib/Collaboration/v2/CollaboratorSearchPlugin.php","Line":101},"CustomMessage":"--"}}

I am sorry for opening a second issue, but after the error message I found in the nextcloud.log file - and the coherence with the latest update from 22.0.0 to 22.1.0 with the "stable" docker image tag - make me feel like its a server side issue. We also activated circles and collectives to try out the new features.

The other issue I opened is here: nextcloud/ios#1666

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions