nextcloud/related_resources

[Bug]: Photos open Sidebar only white or close (25.0.0 RC2)

alex-1987 opened this issue · 5 comments

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

when i open a Photo (on the Web Interface) and click on "options" -> Open Sidebar" the Sidebar is only white or it close after the loading Icoon.

i think this log is the Problem:
Exception: Argument 2 passed to OCA\RelatedResources\Service\MiscService::convertShareRecipient() must be of the type string, null given, called in /home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Listener/FileShareUpdate.php on line 69 in file '/home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Service/MiscService.php' line 57

when i open a File i don't have some errors and everything work like expected
when i open a picture with the File App i don't have some errors and everything work like expected

Steps to reproduce

  1. open with Chrome your nextcloud
  2. photos
  3. click on one photo
  4. ...(options) open sidebar

Expected behavior

show the sidebar with all fileinfos

Installation method

Community Manual installation with Archive

Operating system

Other

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "ncloud.the-chosen.li",
            "ncloud25.the-chosen.li"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.0.14",
        "overwrite.cli.url": "https:\/\/ncloud25.the-chosen.li",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "theme": "",
        "loglevel": 2,
        "debug": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\Movie"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 2.17.0
  - bruteforcesettings: 2.5.0
  - calendar: 3.5.0
  - circles: 25.0.0-alpha.0
  - cloud_federation_api: 1.8.0
  - comments: 1.15.0
  - contacts: 4.2.1
  - contactsinteraction: 1.6.0
  - dashboard: 7.5.0
  - dav: 1.24.0
  - federatedfilesharing: 1.15.0
  - federation: 1.15.0
  - files: 1.20.0
  - files_external: 1.17.0
  - files_pdfviewer: 2.6.0
  - files_rightclick: 1.4.0
  - files_sharing: 1.17.0
  - files_trashbin: 1.15.0
  - files_versions: 1.18.0
  - firstrunwizard: 2.14.0
  - logreader: 2.10.0
  - lookup_server_connector: 1.13.0
  - mail: 1.13.8
  - nextcloud_announcements: 1.14.0
  - notes: 4.5.1
  - notifications: 2.13.1
  - oauth2: 1.13.0
  - password_policy: 1.15.0
  - photos: 1.7.1
  - privacy: 1.9.0
  - provisioning_api: 1.15.0
  - recommendations: 1.4.0
  - related_resources: 1.0.0
  - serverinfo: 1.15.0
  - settings: 1.7.0
  - sharebymail: 1.15.0
  - support: 1.8.0
  - survey_client: 1.13.0
  - systemtags: 1.15.0
  - text: 3.6.0
  - theming: 2.0.0
  - twofactor_backupcodes: 1.14.0
  - updatenotification: 1.15.0
  - user_status: 1.5.0
  - viewer: 1.9.0
  - weather_status: 1.5.0
  - workflowengine: 2.7.0
Disabled:
  - admin_audit
  - backup: 1.1.3
  - deck: 1.7.1
  - duplicatefinder: 0.0.15
  - encryption
  - gestion: 2.1.7
  - groupfolders: 12.0.1
  - richdocuments: 6.2.0
  - socialsharing_diaspora: 2.5.0
  - socialsharing_email: 2.5.0
  - socialsharing_facebook: 2.5.0
  - socialsharing_twitter: 2.5.0
  - spreed: 14.0.5
  - suspicious_login
  - tasks: 0.14.4
  - twofactor_totp
  - user_ldap

Nextcloud Signing status

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- EXTRA_FILE
		- nextcloud-25.0.0rc2.zip  
	- INVALID_HASH
		- .htaccess
		- .user.ini


// nextcloud-25.0.0rc2.zip  -> from Download
// .htaccess -> i copy this from the Nextcloud 24
// .user.ini -> i copy this from the Nextcloud 24

Nextcloud Logs

Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 4 Minuten
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 5 Minuten
Warning	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 4352 queries.		vor 19 Minuten
Warning	no app in context	Sabre\DAV\Exception\NotFound: 		vor 23 Minuten
Warning	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 4352 queries.		vor 25 Minuten
Warning	core	Trusted domain error. "133.242.174.119" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.140.127" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.174.119" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.140.127" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.140.127" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.174.119" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.174.119" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	core	Trusted domain error. "133.242.140.127" tried to access using "www.ncloud25.the-chosen.li" as host.		vor einer Stunde
Warning	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 4352 queries.		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Warning	core	Trusted domain error. "18.204.233.163" tried to access using "www.ncloud25.the-chosen.li" as host.		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Error	PHP	Error: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name at /home/thechose/www/ncloud25.the-chosen.li/apps/support/lib/Sections/ServerSection.php#350		vor 2 Stunden
Fatal	webdav	OCP\Files\NotFoundException: File does not exist		vor 2 Stunden
Error	PHP	Error: file_get_contents(/home/thechose/www/ncloud.data/appdata_ocve095qldfs/avatar/alex1987/avatar.128.png) [<a href='https://secure.php.net/manual/en/function.file-get-contents.php'>function.file-get-contents.php</a>]: failed to open stream: No such file or directory at /home/thechose/www/ncloud.the-chosen.li/lib/private/Files/Storage/Local.php#291		vor 2 Stunden
Warning	settings	Controller OCA\Settings\Controller\CheckSetupController::check executed 4348 queries.		vor 2 Stunden
Error	index	Exception: Argument 2 passed to OCA\RelatedResources\Service\MiscService::convertShareRecipient() must be of the type string, null given, called in /home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Listener/FileShareUpdate.php on line 69 in file '/home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Service/MiscService.php' line 57		vor 2 Stunden
Error	index	Exception: Argument 2 passed to OCA\RelatedResources\Service\MiscService::convertShareRecipient() must be of the type string, null given, called in /home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Listener/FileShareUpdate.php on line 69 in file '/home/thechose/www/ncloud25.the-chosen.li/apps/related_resources/lib/Service/MiscService.php' line 57		vor 3 Stunden
Info	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)		vor 3 Stunden
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode		vor 3 Stunden
Info	updater	\OC\Updater::updateEnd: Update successful		vor 3 Stunden
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check		vor 3 Stunden
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clean up abandoned apps		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add token cleanup job		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair DAV shares		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to check for user uploaded certificates		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove old dashboard app config data		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Check encryption key format		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Keep legacy encryption enabled		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Reset generated avatar flag		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear access cache of projects		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: No need to remove link shares.		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove potentially over exposing share links		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to cleanup login flow v2 tokens		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Cleanup invalid photocache files for carddav		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to cleanup old backups of the updater		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add preview background cleanup job		vor 3 Stunden
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Avatar cache clearing job added

Additional info

I upgrade from the 24.0.5 to (25.0.0 RC2)

in RC5 no issue anymore

Still issue in 25.0.0. stable (docker, linuxserver.io). Updated from 24.0.6.

I'm also facing the same issue after upgrading to 25.0.1 (using official docker-apache image)
Below is the relevant error output from browser console:

PROPFIND https://mycloud.com/remote.php/dav/files/Photos/IMG_20220505_205745.jpg 404
Error while loading the file data 
i {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
code
: 
"ERR_BAD_REQUEST"
config
: 
{transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}
message
: 
"Request failed with status code 404"
name
: 
"AxiosError"
request
: 
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
response
: 
{data: '<?xml version="1.0" encoding="utf-8"?>\n<d:error xm…otos could not be located</s:message>\n</d:error>\n', status: 404, statusText: '', headers: {…}, config: {…}, …}
[[Prototype]]
: 
Error

 Error: AxiosError: Request failed with status code 404
    at Sidebar.vue:441:1
    at u (runtime.js:63:40)
    at Generator._invoke (runtime.js:294:22)
    at Generator.throw (runtime.js:119:21)
    at E (LegacyView.vue?a2e2:19:33)
    at a (LegacyView.vue?a2e2:19:33)
wonx commented

I can confirm this is still an issue in 25.0.1 stable. Can we reopen this bug? The sidebar just stopped working after updating from 24 to 25.

Apparently, the sidebar only works if an image does not have any kind of metadata.

Apparently, the sidebar only works if an image does not have any kind of metadata.

Indeed, the problem only exists for photos with metadata (e.g. tags)

However, I've updated to 25.0.2 and the problem seems to be fixed!

@wonx : could you try this as well?