nextcloud / nextcloud/deck

Download link menu for attached folder (from files app) download the CalDAV html file.

Open
#5,459 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: attachments
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
When a folder from files app is attached to a card, the "Download" menu link return the CalDAV url, so the downloaded file is a .html containing "This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client."

To Reproduce
Steps to reproduce the behavior:

  1. Create a card
  2. Go to Attachment
  3. Choose from file
  4. Select a folder (not a file)
  5. On the context menu of the newly attached folder, click "Download"

Expected behavior
The link should download the full folder or just don't exist.

Screenshots
image

Client details:

  • OS: Debian SID
  • Browser: Firefox
  • Version 121.0
  • Device: Desktop
Server details

Operating system: Debian

Web server: Nginx

Database: MySQL

PHP version: 8.2

Nextcloud version: (see Nextcloud admin page) 28.0.1

Where did you install Nextcloud from: zip from nextcloud.com

Signing status:

No errors have been found.

List of activated apps:

Enabled:
  - activity: 2.20.0
  - announcementcenter: 6.7.0
  - calendar: 4.6.3
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.1
  - contactsinteraction: 1.9.0
  - cospend: 1.5.14
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.0
  - drawio: 3.0.2
  - drop_account: 2.4.0
  - 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.0.0
  - groupfolders: 16.0.1
  - impersonate: 1.15.0
  - integration_gitlab: 1.0.18
  - integration_google: 2.1.0
  - issuetemplate: 0.7.0
  - keeweb: 0.6.15
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - nextcloud_announcements: 1.17.0
  - notifications: 2.16.0
  - notify_push: 0.6.6
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - photos: 2.4.0
  - polls: 6.0.1
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - quota_warning: 1.18.0
  - recommendations: 2.0.0
  - registration: 2.3.0
  - related_resources: 1.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - spreed: 18.0.1
  - survey_client: 1.16.0
  - suspicious_login: 6.0.0
  - systemtags: 1.18.0
  - tasks: 0.15.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - updatenotification: 1.18.0
  - uppush: 1.4.2
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflow_ocr: 1.28.0
  - workflowengine: 2.10.0

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "trusted_domains": [
            "********"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "default_language": "fr",
        "defaultapp": "activity",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "enable_previews": true,
        "enabledPreviewProviders": [
           "OC\\Preview\\SVG",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Font",
            "OC\\Preview\\PDF",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "preview_max_x": 2048,
        "preview_max_scale_factor": 1,
        "log_type": "file",
        "syslog_tag": "NextCloud",
        "loglevel": 1,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "log_query": false,
        "updater.release.channel": "stable",
        "allow_user_to_change_display_name": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mysql.utf8mb4": true,
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "cache_chunk_gc_ttl": 86400,
        "default_phone_region": "FR",
        "maintenance": false,
        "overwrite.cli.protocol": "https",
        "overwrite.cli.url": "**********",
        "webhooks_calendar_object_created_url": "************",
        "mail_smtpdebug": false,
        "debug": false,
        "mail_smtpsecure": "ssl",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "profiler": false,
        "app_install_overwrite": [
            "files_rightclick",
            "issuetemplate"
        ]
    }
}

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

Nextcloud log (data/nextcloud.log)
Nothing relevent
Browser log
Nothing relevent

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 Files app attachment flow described in the issue: attach a folder to a card and use its context-menu Download action. The work is done when downloading the folder produces the full folder, or when the Download action is absent for folders instead of downloading a CalDAV HTML response.

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.