Commit graph

1118 commits

Author SHA1 Message Date
Julius Knorr
9cadb38cbf
fix: Properly handle authenticated links being an array
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-11-26 14:48:52 +01:00
Julius Knorr
d096ab4e19
Merge pull request #5116 from nextcloud/fix/document-target 2025-11-04 23:40:01 +01:00
copilot-swe-agent[bot]
fc8af0c2eb
Update LOOL to COOL naming conventions
- Update X-LOOL-WOPI-Timestamp header to X-COOL-WOPI-Timestamp with backward compatibility fallback
- Update LOOLStatusCode to COOLStatusCode in JSON response
- Update LOOL_STATUS_DOC_CHANGED constant to COOL_STATUS_DOC_CHANGED
- Update test files to use new X-COOL-WOPI-Timestamp header
- Maintain backward compatibility for legacy LOOL header

Co-authored-by: juliusknorr <3404133+juliusknorr@users.noreply.github.com>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-10-22 20:27:30 +02:00
Julius Knorr
be5c75cddf
fix: Pass document target through viewer component
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-10-22 14:36:24 +02:00
Julius Knorr
e6299d5bf1
fix: Drop nonexisting onenote support from mime type list
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-10-09 21:17:14 +02:00
Arthur Schiwon
db1f29d4f4
Merge pull request #5058 from nextcloud/fix/noid/deletion-in-groupfolder
fix(SecureView): node cannot be found when within groupfolder
2025-10-08 14:17:10 +02:00
kaiyou
c8b07e4279 Fix formatting (tab vs. 4-space)
Signed-off-by: kaiyou <dev@kaiyou.fr>
2025-10-07 15:42:20 -04:00
kaiyou
4d08952d76 Handle template source for guest users
This fixes #5024 where documents created by guest users (using a public
share link) are reset to the template contents every time they are open.

This is due to the template entry in `richdocuments_template` not being
properly deleted when retrieved for the initial WOPI token. A fix was
merged for the matching select but did not fix the delete statement.

See also: 1833a05611

Signed-off-by: kaiyou <dev@kaiyou.fr>
2025-10-07 15:42:20 -04:00
Arthur Schiwon
07cad902f8
fix(SecureView): node cannot be found when within groupfolder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-10-06 21:28:55 +02:00
Elizabeth Danzberger
53376d304e
feat(AI): generate presentations with AI
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
2025-09-22 12:51:39 -04:00
Arthur Schiwon
eef5ff5074
fix(Templates): like MS docs, also include OpenDocument docs in templates
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-09-10 22:36:26 +02:00
Arthur Schiwon
2691f834b3
fix(SecureView): do not rely on specualtive getMountPoint()
- it is not specified by IStorage and exists only by luck
- the Node instance already provides the IStorage

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-09-05 16:21:48 +02:00
Elizabeth Danzberger
3afad96082
Merge pull request #4984 from vitormattos/fix/prevent-error-when-send-null-to-json_decode
fix: prevent error when send null to json_decode
2025-09-03 16:17:39 -04:00
Vitor Mattos
523492f67b
fix: prevent error when send null to json_decode
This fixed the follow warning:

```
json_decode(): Passing null to parameter #1 ($json) of type string is deprecated at /var/www/html/apps-extra/richdocuments/lib/Service/CapabilitiesService.php#142
```

The method `get` return string|null

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-09-02 09:44:21 -03:00
Ferdinand Thiessen
46d33c9d32
fix: register handler within init script
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-02 03:03:38 +02:00
Mohit Marathe
cc10d8a8f4 wopi: allow to fetch settings from inside the document
using the accessToken created for loading office document.

Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
2025-08-29 10:51:24 +05:30
Andrew Backhouse
bc82e4a970
new blank document template to improve user acceptance
Signed-off-by: Andrew Backhouse <andrew.backhouse@nextcloud.com>
2025-08-28 16:27:39 -04:00
Andras Timar
77573099c6
url was incorrect when Nextcloud was installed under a subdirectory (fixes #4952)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
2025-08-28 15:27:09 -04:00
Elizabeth Danzberger
91ddbf28f9
chore(wopi): wopi proof cleanup
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-08-14 11:05:54 -04:00
Elizabeth Danzberger
7471c8f7f7
feat(wopi): support for wopi proof key
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-08-14 11:05:54 -04:00
Andras Timar
a79476128f
Fixes #4565 - assets directory conflicts with assets API when the webserver is nginx
Signed-off-by: Andras Timar <andras.timar@collabora.com>
2025-08-11 09:33:23 -04:00
Luka Trovic
b9c49ef441 fix: editor uid issue
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2025-08-04 12:21:24 +02:00
Elizabeth Danzberger
02ffed5a21
Merge pull request #4891 from nextcloud/fix/watermarking
fix: correctly watermark PDFs
2025-07-15 14:13:35 -04:00
Julien Veyssier
e168bdad8c
feat(DocGeneration): only throw RuntimeException if something goes wrong in the sub tasks
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-07-15 11:11:24 +02:00
Julien Veyssier
51d7acbb05
feat(SlideDeck): safer JSON generation and parsing
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-07-15 10:16:25 +02:00
Elizabeth Danzberger
46d2d06ee7
fix: correctly watermark PDFs
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-07-14 15:19:05 -04:00
Julien Veyssier
37f00d730c
feat(DocGeneration): use manager::runTask to run the sub llm tasks
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-07-13 14:15:26 +02:00
grnd-alt
8b464b69b5
enh: set ooxml as default doc_format
Signed-off-by: grnd-alt <github@belakkaf.net>
2025-07-11 15:01:52 -04:00
Marcel Klehr
4c1fdc3050
fix(SlideDeckService): Fix JSON syntax of example in slide deck prompt
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-07-11 14:38:38 +02:00
Elizabeth Danzberger
2609d5e963
fix: ensure response body is not null
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-07-08 15:42:47 -04:00
Elizabeth Danzberger
bcfe2c0d83
fix: undefined variable when fetching preview
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-06-23 16:58:29 -04:00
Elizabeth Danzberger
8101c1a683
Merge pull request #4807 from IONOS-Productivity/fix/shares-disable-doc-creation
fix: allow document creation only for users that can edit
2025-06-12 13:46:55 +00:00
Elizabeth Danzberger
ef88502023
feat: pass input filter options for csv conversion
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-06-11 16:24:21 -04:00
Franziska Bath
deab95d3e2 IONOS: fix: allow document creation only for users that can edit
Signed-off-by: Franziska Bath <franziska.bath@strato.de>
Co-authored-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2025-06-10 09:45:32 +02:00
Julius Knorr
07dc03baaa
fix: Avoid failing on fopen for NonExistingFiles
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-06-05 15:24:50 +02:00
Julius Knorr
6e43e3b87a
Merge pull request #4713 from nextcloud/fix/templates-loading 2025-05-27 06:47:01 +02:00
Julius Knorr
ac39a0f2ca
Merge pull request #4772 from nextcloud/feat/secure-view-talk
feat: Add option to set secure view for public talk shares
2025-05-26 10:47:42 +02:00
Elizabeth Danzberger
32c3327d5c
chore: supress psalm error
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-05-23 15:29:49 -04:00
Elizabeth Danzberger
770287fa60
feat: check if template fields should be extracted
The `BeforeGetTemplatesEvent` now has a property that allows us
to check if the templates should be enhanced with fields or not.
If so, then we extract the fields, if not, simply do not.

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-05-23 15:17:15 -04:00
Mikhailo Matiyenko-Kupriyanov
7878dd3f93 Update lib/TokenManager.php
Co-authored-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Mikhailo Matiyenko-Kupriyanov <145785698+printminion-co@users.noreply.github.com>
2025-05-23 14:09:01 +02:00
Misha M.-Kupriyanov
39610ba995 fix: Ensure edit permissions are checked before template file token generation
otherwise file created from template will be editable for user with readonly permissions

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2025-05-23 14:09:01 +02:00
Julius Knorr
0076f564eb
feat: Add storage wrappert to block download on secure view
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-05-21 15:57:47 +02:00
Julius Knorr
9bd2020650
feat: Add option to set secure view for public talk shares
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-05-21 15:57:46 +02:00
Julius Knorr
241d4e6750
chore: Move away from deprecated static OC methods
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-05-20 16:43:53 +02:00
Julius Knorr
829dde6a51
chore: Move away rom getHTTPClientService
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-05-20 16:21:51 +02:00
Julius Knorr
ab1af051b6
chore: remove dropped deprecated method call for share manager
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2025-05-20 16:06:04 +02:00
Julien Veyssier
bbc13d6322
move task processing provider and task type from https://github.com/nextcloud/slide_deck_generator
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-05-07 17:20:27 -04:00
Arthur Schiwon
c47507c595
fix(Wopi): fall back to super share if share token is not available
On internal shares the controller is called without the share token. But
necessary information, like share attributes, might be necessary to know
and are available from the super share of the SharedStorage in that case.

For this approach was used elsewhere, too, some repetitive code was
consolidated in the Helper class.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2025-05-06 17:25:13 -04:00
Elizabeth Danzberger
399f04f4e5
fix: don't fetch own remote collabora url
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
2025-05-05 17:46:56 -04:00
Julien Veyssier
fe52cf4460
chore: add docs/ai.md about document generation
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2025-04-22 12:39:55 +02:00