Commit graph

29 commits

Author SHA1 Message Date
Andy Scherzinger
868859f393
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-09 10:37:22 +02:00
Julius Härtl
6623a4c1c7
fix: Preview url generation and cleanup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-02-21 13:47:05 +01:00
Julius Härtl
5bd5e09473
style: Fix code style from nextcloud/coding-standard update
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-02-09 13:58:52 +01:00
Julius Härtl
4aecf93296
fix: Convert CSP idn domains to ascii (fix #3086)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-24 09:08:33 +01:00
Julius Härtl
ae8e248e96
fix: Properly handle internal urls
Improve handling of different URLs. From now on we will allow to
configure:

- wopi_url Used by Nextcloud to connect to Collabora in the backend
- wop_callback_url Passed to collabora to connect back to Nextcloud
  (optional, determined from the browser URL if not set)

The public_wopi_url which was only partly working is no longer ment to
be manually set and will be overwritten depending on the
/hosting/discovery response.

Further this PR improves:
- Add setup check on occ and admin page
- Give proper error on individual failures of the setup check
- Display configured and detected URLs to make setup issue debugging
  easier
- Refactor services to have a cleaner structure for setup checks,
  discovery and capabilities fetching

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-24 09:08:12 +01:00
Julius Härtl
398d165a5d
fix: Add proper feature policy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-10-20 15:50:55 +02:00
Julius Härtl
330578badb
fix: Allow to opt-in loading image mimes on hide download shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-09-01 11:30:58 +02:00
Julius Härtl
6e0f6a42f3
Merge pull request #2975 from nextcloud/enh/references 2023-06-06 16:46:48 +02:00
Julius Härtl
a903a1db75
feat: Implement reference picker for document sections
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-06 15:42:04 +02:00
Andrii Ilkiv
2056dfdb69 Fix plugin watermark for php 8.1
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
2023-05-25 09:15:04 +03:00
dependabot[bot]
74015e4678
Chore(deps-dev): Bump nextcloud/coding-standard from 1.0.0 to 1.1.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 12:54:35 +02:00
Christian Wolf
79dd043a3e
Add implementation to allow for default app configurations
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-12-03 10:26:15 +01:00
Julius Härtl
ec23c3c3c9
Add app config to override wopi checkFileInfo
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-21 15:10:07 +02:00
Julius Härtl
da0a2dc031
Merge pull request #2502 from nextcloud/enh/feature-lock 2022-10-14 11:07:59 +02:00
Julius Härtl
be5ef8f35d
Add config option to turn on Collabora feature lock for read only users
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-10-14 09:30:05 +02:00
Jeremy Barthe
2066bd3900
Fix public_wopi_url variable configuration name
Hi,

We faced an issue in our private Nextcloud instance, the collabora editor was blocked due to a CSP error. The allowed URL was the internal one instead of the public.
And so we realized that the variable name was incorrect,  the variable is named `public_wopi_url` in the Nextcloud app configuration.
We already tried this fix and if works on our instance.

Thanks a lot for this amazing open source project :)

Signed-off-by: Jeremy Barthe <jeremy.barthe@gmail.com>
2022-09-28 17:03:06 +02:00
Julius Härtl
8fa728e61d
Move remaining policy adjustments to a trait
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-01 11:34:51 +02:00
Julius Härtl
da21f195cf
Move CSP handling to event listener
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-01 11:34:51 +02:00
Julius Härtl
9bb9661795
Apply cs fixes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-05-20 14:43:43 +02:00
Raul
673503f39d Add token_ttl app config
Signed-off-by: Raul <raul@nextcloud.com>
2022-04-26 19:32:16 +02:00
Julius Härtl
88435dea0a
Add app config to enable trusted domain list usage
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 09:31:07 +02:00
Julius Härtl
1b9cc2138a
Make frame loading timeout configurable
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-09 16:32:17 +01:00
Julius Härtl
b4e88677b6
Set an empty default url
This way the auto configuration can actually figure out if an url is already set

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-28 13:50:01 +02:00
Julius Härtl
7bba769d9b
Use array_key_exists to keep PHP 7.0 compatibility
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-10-07 22:24:41 +02:00
Roeland Jago Douma
a518c1fc1b
Check key before accessing
Else you get flooded with warnings when opening the admin settings

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-07 16:18:51 +02:00
Julius Härtl
befa1ce66e
Store watermark settings in a generic way
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-08-30 16:52:19 +02:00
Julius Härtl
b848201e58
Start with vue admin panel
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-08-30 16:52:19 +02:00
Roeland Jago Douma
c81dc83493
Cleanup config
* Add appname constant to application
* Remove unused functions

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-07-10 12:28:29 +02:00
Roeland Jago Douma
fb29fe72a3
Properly name classes
* All should be PSR-4

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-03-24 13:35:29 +01:00
Renamed from lib/appconfig.php (Browse further)