deck icon indicating copy to clipboard operation
deck copied to clipboard

Card attachments are not displayed in description, "null is not an object (evaluating 'this.$attachmentResolver.resolve')"

Open desven opened this issue 11 months ago • 6 comments

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.

Describe the bug Attachments to cards are not display inline the comments. Only a standard icon is displayed with an error "null is not an object (evaluating 'this.$attachmentResolver.resolve')". However they can be viewed in the attachments section.

To Reproduce Steps to reproduce the behavior:

  1. create new card
  2. click on Insert attachment in the description section
  3. choose file to upload
  4. file is attached but not displayed in description

Expected behavior Preview of the attachment should be visible in the description.

Screenshots Bildschirmfoto 2024-03-19 um 10 41 19 Bildschirmfoto 2024-03-19 um 10 41 24

Client details:

  • OS: macOS 14
  • Safari, Firefox
  • Desktop
Server details

Operating system: Ubuntu 22.04

Web server: Apache 2.4.52

Database: MySQL 8.0.36

PHP version: 8.1.2

Nextcloud version: 28.0.3

Where did you install Nextcloud from: Download from Nextcloud

Signing status:

No errors have been found.

List of activated apps:

Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - approval: 1.2.0
  - bruteforcesettings: 2.8.0
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.2
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_external: 1.20.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - forms: 4.1.1
  - fulltextsearch_elasticsearch: 28.0.1
  - groupfolders: 16.0.4
  - groupquota: 0.1.12
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - onlyoffice: 9.0.0
  - password_policy: 1.18.0
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - support: 1.11.0
  - survey_client: 1.16.0
  - systemtags: 1.18.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_admin: 4.4.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_nextcloud_notification: 3.9.0
  - twofactor_totp: 10.0.0-beta.2
  - updatenotification: 1.18.0
  - user_ldap: 1.19.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "next.hgcloud.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/next.hgcloud.de",
        "dbtype": "mysql",
        "version": "28.0.3.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "sendmail",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "theme": "",
        "loglevel": 1,
        "enable_previews": true,
        "preview_max_x": 640,
        "preview_max_y": 640,
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\Image"
        ],
        "enable_movie_transcode": true,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "updater.release.channel": "stable",
        "trashbin_retention_obligation": "auto, 90",
        "ldapUserCleanupInterval": "60",
        "skeletondirectory": "",
        "default_phone_region": "\"DE\"",
        "defaultapp": "",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "maintenance_window_start": 1
    }
}

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

I use LDAP to AD-server on this instance but the issue exists on another instance with build-in user management.
Logs

Nextcloud log (data/nextcloud.log)

NO new log entries come up, if I reproduce the issue.

Browser log

Insert your browser log here, this could for example include:

No errors are displayed in console or network browser log during upload.

desven avatar Mar 19 '24 10:03 desven

Same issue here, although the error message is different: "Cannot read properties of null (reading 'resolve')"

Screenshot 2024-03-20 134753

Client details:

  • OS: Windows 10
  • Chrome, Firefox
  • Desktop

johanneskopf avatar Mar 20 '24 12:03 johanneskopf

I've had this issue for months and reported it in a different thread. I noticed other Nextcloud apps had a similar issue so perhaps there's a similar solution? For example:

https://github.com/nextcloud/collectives/issues/1096 https://github.com/nextcloud/text/pull/5484

mobamoba avatar Mar 31 '24 13:03 mobamoba

I was able to make the attachment show in the description by disabling the Text App. It takes away the Text editor and you'll need to manually write in Markdown, But it is a viable workaround for now. It may help locate the issue.

gaje12 avatar Apr 29 '24 15:04 gaje12

possibly a duplicate of #5448 ?

I thought that this happened to only old cards, as I saw that first on cards that are ~4 years old - but that is an issue with new cards as well. If I add an attachement for a brand-new card, I see the same error.

reox avatar May 27 '24 08:05 reox

Pasting images doesn't work either, even though it works in Notes.

mortee avatar May 30 '24 13:05 mortee

Hi, just installed and testing, but it seems that picture preview attachment problem is affecting me too. It is a big problem for me as this functionality is essential for me. I confirm what @gaje12 has observed - disabling Text app is allowing to see picture, but is killing text editor, so rather not acceptable for longer. The only difference I see is description in my case: "cannot read properties of null (reading: 'resolve')": image Client details: self hosted on Ubuntu 22.04, snap package, NC 28.0.8

Phils80 avatar Aug 26 '24 08:08 Phils80