Juan Pablo Villafáñez
5ddd51ea84
refactor: simplify openInApp code and remove hostViewUrl (and edit)
2024-08-21 13:43:04 +02:00
Juan Pablo Villafáñez
9e7d570c79
fix: verify file id in URL matches the one inside the access token
...
We're using the file id from the access token, so changing the file id
in the URL shouldn't matter. However, the file id must represent a
single file.
It will also help to detect unwanted changes in the URL.
2024-08-13 15:04:19 +02:00
Juan Pablo Villafañez
bb78b16079
Merge pull request #9771 from owncloud/collaboration_connector_refactor
...
Collaboration connector refactor
2024-08-13 11:37:56 +02:00
Juan Pablo Villafáñez
29700046d7
docs: add missing code comments in the middlewares
2024-08-12 12:00:42 +02:00
Juan Pablo Villafáñez
82a6a27d22
refactor: simplify ConnectorResponse creation
2024-08-09 13:33:23 +02:00
Juan Pablo Villafáñez
2d3de81117
refactor: change test names
2024-08-08 15:35:41 +02:00
Juan Pablo Villafáñez
132defd738
refactor: adjust unit tests to refactored code
2024-08-08 15:35:08 +02:00
Juan Pablo Villafáñez
6d9717f6d1
refactor: simplify and homogenize connector code
2024-08-07 18:34:58 +02:00
Juan Pablo Villafáñez
eb40aa0460
feat: include X-WOPI-SessionId header in the logs and tracing
2024-08-06 13:36:25 +02:00
Juan Pablo Villafáñez
083a2e1484
feat: include tracing for grpc openInApp function
2024-08-05 13:15:12 +02:00
Juan Pablo Villafáñez
a5d27b2f98
feat: include additional metadata for tracing the collaboration service
2024-08-05 13:15:12 +02:00
Juan Pablo Villafáñez
243f2febab
fix: code review fixes
2024-08-02 12:27:49 +02:00
Juan Pablo Villafáñez
8ef9bd4499
fix: retry delete request if we get a "too_early" code
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
fb72684c24
fix: explicitly set the HTTP status for the access log
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
d35e588532
fix: adjust updated code
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
94d191f624
refactor: simplify code
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
23077223b4
fix: adjust unit tests and remove duplicated call
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
90fab1d4f0
fix: code adjustments based on the wopi validator
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
3c227f6131
test: add unit tests for the rename operation
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
80cac903c9
test: adjust unit tests
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
78195bba2e
feat: add renameFile operation, improve logs and docs
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
1c3f7cd35a
test: add unit test for the new operations and include some fixes
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
9417e3c7a0
fix: use constants for the names of the ranges
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
135613f8f2
test: adjust logs and fix CI
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
6036b5a71f
fix: adjust unit tests
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
232b341eee
test: update mocks
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
b5b9f8d189
feat: implement putRelativeFile and deleteFile endpoints
2024-07-31 12:50:41 +02:00
Juan Pablo Villafáñez
21c3ae10a7
feat: add support for utf7 encoding for some WOPI operations
2024-07-31 12:50:41 +02:00
Jörn Friedrich Dreyer
7b64f42a8a
Merge pull request #9656 from owncloud/reuse-node-id
...
reuse node id when registering services
2024-07-30 11:42:05 +02:00
Juan Pablo Villafáñez
02aef4d308
fix: wrong return value in the verify
2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez
7134374a2e
fix: use int64 instead of bigInt
2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez
36d9a8c425
feat: proof keys verification for the collaboration service
2024-07-25 13:16:07 +02:00
Juan Pablo Villafáñez
d47364dedb
feat: [WIP] use proof keys to ensure requests come from trusted source
...
Basic code handling is in the proofkeys package. The idea is to
implement it as a middleware and hook it after the wopicontext
middleware.
Note that we need a way to switch this middleware off in case there are
problems with the verification, even though it should be active by
default.
2024-07-25 13:15:02 +02:00
Michael Barz
4c63ddc439
tests: add and adapt unit tests
2024-07-24 21:32:32 +02:00
Michael Barz
08cb228500
feat: add new locks parser for microsoft office online server
2024-07-24 21:16:32 +02:00
Jörn Friedrich Dreyer
9d1515e8fc
rely on context from app
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 14:02:11 +02:00
Jörn Friedrich Dreyer
008f379a01
pass config context when running apps
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 13:30:42 +02:00
Jörn Friedrich Dreyer
d1fd65466f
reuse default node id when registering services
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-07-24 13:07:54 +02:00
Michael Barz
006c67a5db
feat: add more logging to the collaboration service
2024-07-19 11:03:28 +02:00
Juan Pablo Villafáñez
d69bc2c1c6
fix: explicitly set the HTTP status header for the access log
2024-07-18 12:40:20 +02:00
Juan Pablo Villafáñez
0a33b934c1
feat: use info level for access log to the collaboration service
2024-07-18 10:48:08 +02:00
Michael Barz
5b3dd4dcba
Merge pull request #9586 from fschade/cleanup-removals
...
chore!: remove deprecated configuration values
2024-07-16 13:30:02 +02:00
Christian Richter
c99550984e
change providerv1beta1.Reference to pointer
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 12:00:18 +02:00
Florian Schade
31272dc168
chore!: remove deprecated configuration values
2024-07-12 10:15:38 +02:00
Christian Richter
58c3c66429
ignore empty language setting & adapt tests
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 09:30:54 +02:00
Christian Richter
174afe379e
Merge branch 'disable_collabora_chat' of github.com:dragonchaser/ocis into disable_collabora_chat
2024-07-12 09:25:47 +02:00
Christian Richter
5359d6ddee
adapt test
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 09:24:25 +02:00
Christian Richter
010cccde91
Make disable chat configurable
...
Co-authored-by: Michael Barz <mbarz@owncloud.com >
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 09:24:25 +02:00
Christian Richter
04529e18e9
Add missing language variables
...
Co-authored-by: Michael Barz <mbarz@owncloud.com >
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 09:24:25 +02:00
Christian Richter
a0528d4dfb
make sonarcloud happy
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2024-07-12 09:24:25 +02:00