-
Notifications
You must be signed in to change notification settings - Fork 48
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
OCA\Circles\Service\ShareWrapperService::getShareByToken()
: Argument nextcloud/server#1 ($token)
must be of type string, null given, called in /circles/lib/ShareByCircleProvider.php
#849
Comments
OCA\Circles\Service\ShareWrapperService::getShareByToken()
: Argument nextcloud/server#1 ($token)
must be of type string, null given, called in /circles/lib/ShareByCircleProvider.php
I can confirm this on Nextcloud 22.2.3 updated from 21.0.7 today on Ubuntu 20.04. On Nextcloud 21.0.7, the issue did not appear. I know this because I use this functionality regularly in my Ansible automation of Nextcloud external storage (which is of course bust now 😛 ). |
Hi, Same issue for me :/ did you advanced .. ? For the 22.2.3 version
|
We got no attention so far, sadly. You could help it along a bit by reacting to the issue, as it says in the howto at the top:
Fingers crossed 🙂 |
would you mind testing this? #890 |
How to use GitHub
The following information comes from the NextCloud app "Issue reporting":
Steps to reproduce
nextcloud.occ files_external:list # to show external storage. Shows:
| Mount ID | Mount Point | Storage | Authentication Type | Configuration | Options | Applicable Users | Applicable Groups |
+----------+-------------+---------+---------------------+------------------------------------+-----------------+------------------+-------------------+
| 2 | /Local | Local | None | datadir: "/home/ltadmin/LTSync" | previews: false | ltadmin | |
Do command:
nextcloud.occ files_external:verify 2
Expected behaviour
Expected a report of validity of my External storage (local)
Actual behaviour
stdout caught report of unhandled exception:
An unhandled exception has been thrown:
TypeError: OCA\Circles\Service\ShareWrapperService::getShareByToken(): Argument nextcloud/server#1 ($token) must be of type string, null given, called in /snap/nextcloud/28586/htdocs/apps/circles/lib/ShareByCircleProvider.php on line 584 and defined in /snap/nextcloud/28586/htdocs/apps/circles/lib/Service/ShareWrapperService.php:162
Stack trace:
#0 /snap/nextcloud/28586/htdocs/apps/circles/lib/ShareByCircleProvider.php(584): OCA\Circles\Service\ShareWrapperService->getShareByToken()
nextcloud/server#1 /snap/nextcloud/28586/htdocs/lib/private/Share20/Manager.php(1476): OCA\Circles\ShareByCircleProvider->getShareByToken()
nextcloud/server#2 /snap/nextcloud/28586/htdocs/apps/files_external/lib/Config/UserContext.php(75): OC\Share20\Manager->getShareByToken()
nextcloud/server#3 /snap/nextcloud/28586/htdocs/apps/files_external/lib/Config/UserPlaceholderHandler.php(37): OCA\Files_External\Config\UserContext->getUserId()
nextcloud/server#4 /snap/nextcloud/28586/htdocs/apps/files_external/lib/MountConfig.php(99): OCA\Files_External\Config\UserPlaceholderHandler->handle()
nextcloud/server#5 /snap/nextcloud/28586/htdocs/apps/files_external/lib/MountConfig.php(122): OCA\Files_External\MountConfig::substitutePlaceholdersInConfig()
nextcloud/server#6 /snap/nextcloud/28586/htdocs/apps/files_external/lib/Command/Verify.php(124): OCA\Files_External\MountConfig::getBackendStatus()
nextcloud/server#7 /snap/nextcloud/28586/htdocs/apps/files_external/lib/Command/Verify.php(79): OCA\Files_External\Command\Verify->updateStorageStatus()
nextcloud/server#8 /snap/nextcloud/28586/htdocs/3rdparty/symfony/console/Command/Command.php(255): OCA\Files_External\Command\Verify->execute()
nextcloud/server#9 /snap/nextcloud/28586/htdocs/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run()
nextcloud/server#10 /snap/nextcloud/28586/htdocs/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()
nextcloud/server#11 /snap/nextcloud/28586/htdocs/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
nextcloud/server#12 /snap/nextcloud/28586/htdocs/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
nextcloud/server#13 /snap/nextcloud/28586/htdocs/lib/private/Console/Application.php(209): Symfony\Component\Console\Application->run()
nextcloud/server#14 /snap/nextcloud/28586/htdocs/console.php(99): OC\Console\Application->run()
nextcloud/server#15 /snap/nextcloud/28586/htdocs/occ(11): require_once('...')
nextcloud/server#16 {main}
Server configuration detail
Operating system: Linux 5.11.0-40-generic nextcloud/server#44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64
Webserver: Apache (fpm-fcgi)
Database: mysql 8.0.26
PHP version:
8.0.11
Modules loaded: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gmp, SPL, iconv, intl, json, ldap, mbstring, pcntl, PDO, session, posix, Reflection, standard, SimpleXML, mysqlnd, exif, tokenizer, xml, xmlreader, xmlwriter, zip, pdo_mysql, cgi-fcgi, redis, Zend OPcache
Nextcloud version: 22.2.0 - 22.2.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: downloaded snap version from main nextcloud website
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local
Are you using encryption:
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Chrome/95.0.4638.69
Operating system:
Logs
Web server error log
Nextcloud log
Browser log
Insert your browser log here, this could for example include:
I hope you can work out the issue.
I deleted some of the standard template that seemed to have been covered by the nextcloud Issue template.
Jim
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: