nextcloud / nextcloud/deck

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

Open
#5,680 14 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: attachments feature: description
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the card description attachment flow described in the issue and inspect the frontend path that resolves attachment previews. The issue names no files or tests, so locate the attachment resolver from the reported error. Done means uploaded card attachments render inline in the description without the null resolver error, while remaining available in the attachments section.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.