occ sharing:list throws "Call to undefined function" error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện occ sharing:list với các phiên bản PHP và Nextcloud được báo cáo. Kiểm tra lib/Service/SharesList.php ở dòng 116 và 193, sau đó lần theo lệnh gọi từ lib/Command/ListShares.php dòng 114 để xác định tại sao iter\\filter() không khả dụng. Được xem là hoàn tất khi lệnh chạy xong mà không có lỗi hàm chưa được định nghĩa hoặc cảnh báo tham số đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Nextcloud 27.0.0
php-fpm: 8.2.7
Running the sharing:list command leads to an error
sudo -iu userX /opt/nextcloud/occ sharing:list
PHP Deprecated: Optional parameter $userId declared before required parameter $filter is implicitly treated as a required parameter in /opt/nextcloud-27.0.0/nextcloud/apps/sharelisting-1.1.1/lib/Service/SharesList.php on line 193
An unhandled exception has been thrown:
Error: Call to undefined function iter\filter() in /opt/nextcloud-27.0.0/nextcloud/apps/sharelisting-1.1.1/lib/Service/SharesList.php:116
Stack trace:
#0 /opt/nextcloud-27.0.0/nextcloud/apps/sharelisting-1.1.1/lib/Service/SharesList.php(194): OCA\ShareListing\Service\SharesList->get()
#1 /opt/nextcloud-27.0.0/nextcloud/apps/sharelisting-1.1.1/lib/Command/ListShares.php(114): OCA\ShareListing\Service\SharesList->getFormattedShares()
#2 /opt/nextcloud-27.0.0/nextcloud/lib/private/User/Manager.php(632): OCA\ShareListing\Command\ListShares->OCA\ShareListing\Command\{closure}()
#3 /opt/nextcloud-27.0.0/nextcloud/apps/sharelisting-1.1.1/lib/Command/ListShares.php(113): OC\User\Manager->callForSeenUsers()
#4 /opt/nextcloud-27.0.0/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\ShareListing\Command\ListShares->execute()
#5 /opt/nextcloud-27.0.0/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#6 /opt/nextcloud-27.0.0/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#7 /opt/nextcloud-27.0.0/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#8 /opt/nextcloud-27.0.0/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#9 /opt/nextcloud-27.0.0/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#10 /opt/nextcloud-27.0.0/nextcloud/console.php(100): OC\Console\Application->run()
#11 /opt/nextcloud-27.0.0/nextcloud/occ(11): require_once('...')
The first portion of the error can be fixed with editing line 193 according to https://github.com/nextcloud/sharelisting/issues/368
The second part of the error ("An unhandled exception has been thrown") remains after that.
Any advice for a fix?
- Ngôn ngữ chính
- PHP
- Star
- 20
- Fork
- 8
- Merge trung bình
- 7 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/sharelisting
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/sharelisting#624 ·
-
occ share:list fails if orphaned shares are presentCó thể đã có người làm @CarlSchwan đã nhận 164 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
nextcloud/sharelisting#600 ·
-
Upgrade to NC 33Có thể đã có người làm @CarlSchwan đã nhận 164 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
nextcloud/sharelisting#590 · 4 bình luận · 5 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
nextcloud/sharelisting#492 · 2 reaction ·
-
--filter=recipient not workingĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
nextcloud/sharelisting#491 · 2 reaction ·
Tất cả issue của nextcloud/sharelisting
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Automattic/blocks-engine#4874 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Visual COBOL: missing 11.0 and 12.0, and 9.0 date differs from Rocket Software's lifecycle pageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
endoflife-date/endoflife.date#11561 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue priority:low type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
crazy-goat/fdb-php#184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nextcloud/groupfolders#5218 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
nextcloud/fulltextsearch_elasticsearch#621 ·
Maintainer thường phản hồi trong vòng 1 ngày