Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
desven opened this issue Mar 19, 2024 · 5 comments

Comments

@desven
Copy link

desven commented Mar 19, 2024

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 desven changed the title Card attachments are not displayed in description Card attachments are not displayed in description, "null is not an object (evaluating 'this.$attachmentResolver.resolve')" Mar 19, 2024
@johanneskopf
Copy link

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

@mobamoba
Copy link

mobamoba commented Mar 31, 2024

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:

nextcloud/collectives#1096
nextcloud/text#5484

@gaje12
Copy link

gaje12 commented Apr 29, 2024

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.

@reox
Copy link
Contributor

reox commented May 27, 2024

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.

@mortee
Copy link

mortee commented May 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants