Commit Graph

8 Commits (master)

Author SHA1 Message Date
Josh d165405d5b
fix(collaboration): Reduce timeouts to 3s for link reference connects
Fixes rest of #34720 

https://github.com/nextcloud/server/issues/34720#issuecomment-1286609205

Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-09-13 10:41:28 +07:00
Julien Veyssier 22bb42be0c
fix(linkReferenceProvider): better size check
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-08-30 10:55:57 +07:00
Daniel Kesselberg af6de04e9e
style: update codestyle for coding-standard 1.2.3
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Julius Härtl 312314a753
fix: Do not log link reference exceptions as error
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-08-05 22:04:44 +07:00
Jonas 1671bf3ef2
feat(Reference): Add public API endpoints to get references
Calling the public API endpoints will check for matching registered
reference providers that implement `IPublicReferenceProvider` and call
their respective functions. If no matching provider is found, the
default `LinkReferenceProvider` will be used to provide open graph data.

The frontend reference widget components will call these endpoints from
unauthorized sessions, e.g. in public shares.

If present, the sharing token of the origin URL is passed to
`resolveReferencePublic()` as additional information for the reference
provider to determine the access scope. This allows the respective
reference providers to determine whether the origin share has access to
the linked resource.

`getCacheKeyPublic` also gets the sharing token so it can scope the cached
entry to it.

Contributes to #45978

Signed-off-by: Jonas <jonas@freesources.org>
2024-07-17 12:56:41 +07:00
Andy Scherzinger dae7c159f7
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-24 13:11:22 +07:00
Joas Schilling 3b0a9e6639
fix(OCP): Add since tag to all constants
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-15 08:06:43 +07:00
Anupam Kumar 7329b83f92
feat: Migrate LinkReferenceProvider to OCP
This would be useful to eleminate the need for using this OC class
when an app dev wants to implement a custom reference provider
for the web client but wants to fall back on opengraph for mobile
clients.

Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
2024-02-14 18:22:19 +07:00