nextcloud / nextcloud/richdocuments

Cannot use a Templates folder within a Groupfolder

Open
#2,941 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature: templates
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Describe the bug
A Template folder created within a groupfolder (and set as the Template location) does not work as expected and doesn't suggest templates when creating new files. Instead, no templates are suggested.

To Reproduce
Steps to reproduce the behavior:

  1. Set up stock nextcloud 24.0.8
  2. Login as admin
  3. Go to https://nextcloud.example.com/settings/users
  4. Create a group (e.g. computers)
  5. Create a regular user (e.g., dorothyvaughan)
  6. Add the new user to the new group.
  7. Install the Nextcloud Office app (v6.3.6)
  8. Install the Group Folders app (v12.0.3)
  9. Go to https://nextcloud.example.com/settings/admin/richdocuments
  10. Select a demo Collabora server.
    image
  11. Go to https://nextcloud.example.com/settings/admin/groupfolders
  12. Create a new groupfolder (e.g. Computers) and give the admin and computers` group full access.
  13. Login as test user
  14. Navigate to new groupfolder.
  15. Inside, set up a Templates folder by selecting the + and then Set up templates folder and naming Templates
  16. Inside the Templates folder, create a test Template .docx document.
  17. Under [Profile] > Settings > Office, Choose the location of the templates folder you just set up.
  18. Navigate back to the user's home folder and attempt to create a new .docx
  19. No Templates are offered to the user.

Expected behavior
I expect that users can use any location they have access to to set up a Templates folder, even if this is group folder. (Creating a templates folder outside of groupfolders and setting that location under settings does work as expected.)

Screenshots

image

Client details:

  • OS: Arch Linux
  • Browser: Mozilla Firefox , Chromium
  • Version: 112.0.2 , 113.0.5672.63
  • Device: Desktop/web

Server details

Operating system: Alpine

Web server: nginx/1.23.2

Database: mariadb Ver 15.1 Distrib 10.8.7-MariaDB, for Linux

PHP version: PHP 8.1.13 (cli) (built: Nov 23 2022 13:29:46) (NTS)

Nextcloud version: 24.0.8.2

Version of the richdocuments app v6.3.6

Version of Collabora Online Not sure what the demo server is running, but I was also able to replicate on Collabora Online 22.05.12-4

Logs
Nextcloud log (data/nextcloud.log)
The logs show that I haven't configured the smtp yet to send activity/account activation emails to dorothy.

I also haven't configured a clamAV instance yet, so there are warnings about that.

Please let me know what other information I can provide.

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

The report names the Office settings, groupfolder location, and template-creation flow, but no source file or test. Start by reproducing the steps with a template stored in a groupfolder, then trace the richdocuments handling of that configured location. Done means a user can create a new document and receive templates from an accessible groupfolder.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.