nextcloud / nextcloud/calendar
[Bug]: Calendar tries to import directory if it ends with .ical
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 332
- Avg merge
- 16h 13m
- Merged PRs (30d)
- 137
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
- Place an ics file (e.g. file.ics) in a directory whose name ends in .ical (e.g. dir.ical).
- In Nextcloud, go to Calendar => Calendar settings => Import calendar
- 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.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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