nextcloud / nextcloud/calendar

[Bug]: Calendar tries to import directory if it ends with .ical

Open
#6,589 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Feature: Importing
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

⚠️ This issue respects the following points: ⚠️
Bug description

When trying to import an ics file located in a directory whose name ends in .ical, the file picker does not allow me to select a file inside the directory, but gives me an "open" option for the directory itself. Pressing "open" does results in the file picker to close but no import is initiated.

Steps to reproduce
  1. Place an ics file (e.g. file.ics) in a directory whose name ends in .ical (e.g. dir.ical).
  2. In Nextcloud, go to Calendar => Calendar settings => Import calendar
  3. Try selecting file.ics in dir.ical and note that the contents of dir.ical are not displayed, but an "open" option is displayed for the directory itself.
  4. Press Open and note that the file picker disappears, but no import is initiated.
Expected behavior

file.ics should be selectable within dir.ical.

Nextcloud Server version

29

Operating system

Other

PHP engine version

None

Web server

Nginx

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

Firefox 133 on MacOS 12.7.6
nextcloud:29-fpm-alpine from dockerhub

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 at Calendar settings > Import calendar and reproduce the issue with an .ics file inside a directory ending in .ical. Trace the file picker behavior for that directory and verify that file.ics becomes selectable and the import starts when Open is used.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.