Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-06-29Allow to limit wopi requests to specific source hostsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-29Fix opening files when groupfolder ACL has revoked share permissionsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-19Only use owner id if not a remote TokenJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-17Pass template id a the proper parameterJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-05Don't cache empty capabilitiesSzymon Kłos
When caching is configured and request to fetch the capabilities fails - don't cache the empty result for a long time. This way we will avoid persisting error: "Collabora Online is not setup yet". To test bug: 1. use Nextcloud with caching & richdocuments 2. restart apache and stop Collabora Online server 3. open Nextcloud and try to open any document you will get "Collabora Online is not setup yet" error 4. start Collabora Online server 5. refresh page and try to open file again before: error persisted until admin changed richdocuments configuration after: file is opened with Collabora Online in 60s from start Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-04-30Use proper initiator urlJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-29Keep migration step backward compatibleJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Add documentation and improve parameter namingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Allow fetching the initiator user data if neededJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Implement token typesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Skeleton for creating direct tokens for public sharesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Also set CSP on public share linksJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Add token type for WOPI tokensJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-28Let direct view return a proper error status codeJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-08Only add FeaturePolicy if availableJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-07Setup FeaturePolicy to allow fullscreenSzymon Kłos
Signed-off-by: Szymon Kłos <eszkadev@gmail.com>
2021-03-08Trim duplicate trailing slashes in wopi urlJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-04Make sure that the same host remote is always considered as trustedJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-04Add type hint Mario Klump
Signed-off-by: Mario Klump <mail@marioklump.net> Co-authored-by: Julius Härtl <jus@bitgrid.net>
2021-03-04Remove unused local variableMario Klump
Signed-off-by: Mario Klump <mail@marioklump.net>
2021-03-04Use incognito mode when writing documents if per-user-encryption-keys are ↵Mario Klump
active. The incognito mode is also used for fetching documents (see method `getFile`). Signed-off-by: Mario Klump <mail@marioklump.net>
2021-03-03Assets: Use octet-stream and attachment instead of allowing to inline the fileJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-02-25Merge pull request #1383 from nextcloud/backport/1378/stable3.7Julius Härtl
[stable3.7] use https for fetching the demo servers
2021-02-25Add proper return values to occ commandsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-02-25use https for fetching the demo serversJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-29Properly handle cached failed requests in the Federation serviceRoeland Jago Douma
Else we would never use the result if fetching it failed and just keep trying every time. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-29Merge pull request #1332 from nextcloud/enh/fed_https_by_defaultJulius Härtl
Use https by default for the federation service
2021-01-28Use https by default for the federation serviceRoeland Jago Douma
If no protocol is set we assume https. (everybody should use that anyway) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-28Log the exception so we know what is actually failingRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-27Merge pull request #1329 from nextcloud/bugfix/noid/distributed-federation-cacheJulius Härtl
Move federation cache to a distributed one
2021-01-27Merge pull request #1327 from nextcloud/bugfix/catch-remote-file-errorsJulius Härtl
2021-01-27Move federation cache to a distributed oneJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-27Remove JSON_THROW_ON_ERROR since it is only available on PHP >= 7.3Julius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-27Handle errors when fetching remote file info more gracefullyJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-26Do not update CSP on calls to files_sharingRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-22Merge pull request #1305 from nextcloud/bugfix/federated-urlJulius Härtl
Properly trim trailing slashes from the remote url
2021-01-07Properly trim trailing slashes from the remote urlJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-04Cut of guest names so they fit into the databaseJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-12-03Actually mark wopi entity fields as updatedJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Show hint about missing capabilities endpoint connectionJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Merge pull request #1278 from nextcloud/bugfix/noid/empty-remoteJulius Härtl
2020-12-03Merge pull request #1269 from eszkadev/increase-proxy-timeoutJulius Härtl
2020-12-03Merge pull request #1256 from mrkara/kara/adapt-to-host-url-changeJulius Härtl
Adapt built-in CODE url on host address change
2020-12-03Expose app version through capabilitiesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Avoid issues with missing trailing slash in remote urlJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Fix relative path exposed to the redirect eventJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Make sure we always have an empty string in the remote server columnsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-24Move proxy status check to the separate functionSzymon Kłos
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2020-11-24Merge pull request #1268 from eszkadev/fix-typoJulius Härtl
Fix typo
2020-11-24Increase timeout if proxy is startingSzymon Kłos
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>