Stephan Orbaugh
ef099806a4
Merge pull request #50990 from AIlkiv/refactor/version-rollback-to-event
...
refactor: move version rollback hook to event
2025-02-27 15:03:37 +07:00
Louis
9682ef7025
Merge pull request #50903 from nextcloud/artonge/fix/min_age_rentention_files_versions
...
fix(files_versions): Do not expire versions newer than min age
2025-02-25 16:01:05 +07:00
ailkiv
9b3424f607
refactor: move version rollback hook to event
...
Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
2025-02-25 14:03:21 +07:00
Kostiantyn Miakshyn
9bba153e4f
Fix: NotFoundException for anonymous users
...
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
2025-02-21 18:24:11 +07:00
Louis Chemineau
4561a0a870
fix(files_versions): Do not expire versions newer than min age
...
The auto expire logic does not take into account the min retention age set by the admin. So versions were eagerly deleted.
Fix https://github.com/nextcloud/server/issues/19791
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-02-19 12:25:09 +07:00
Côme Chilliet
64863c9d46
chore: Apply new rector configuration to apps folder
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 11:46:42 +07:00
Côme Chilliet
f758f565d4
fix: Replace getInstalledApps calls with getEnabledApps
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 10:19:20 +07:00
Louis Chemineau
c87db7a960
fix(files_versions): Update `unencrypted_size` during rollback
...
This prevent restored version of encrypted files from having a wrong reported size. This was blocking download.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-01-28 15:28:34 +07:00
Louis Chemineau
5336c92ca5
chore(files_versions): Remove unused $node variable
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-01-28 15:28:34 +07:00
provokateurin
085d4c9364
refactor(OpenAPI): Adjust scopes to match previous behavior
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-01-06 14:30:40 +07:00
Louis Chemineau
f6c48a45ae
fix: Correctly create NonExistingFolder during copy
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-12-04 15:38:35 +07:00
provokateurin
77114fb327
fix(OpenAPI): Adjust array syntax to avoid ambiguities
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-11-05 09:58:11 +07:00
provokateurin
381077028a
refactor(apps): Use constructor property promotion when possible
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-10-21 12:37:59 +07:00
Côme Chilliet
1580c8612b
chore(apps): Apply new rector configuration to autouse classes
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-10-15 10:40:25 +07:00
Côme Chilliet
1a4978c4ea
chore: Apply rector configuration to apps folder
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-20 17:51:00 +07:00
provokateurin
9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
provokateurin
dc13f9cc1e
fix(Files): Handle getOwner() returning false
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-17 10:10:50 +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
John Molakvoæ
1fa9d3987b
Merge pull request #46887 from nextcloud/fix/versions-catch-insertion-error
2024-08-14 10:32:45 +07:00
Kate
1044b7f0b9
Merge pull request #46813 from nextcloud/refactor/files_versions/security-attributes
2024-08-14 09:46:46 +07:00
Ferdinand Thiessen
4bbcbc5206
feat: Make `ISharedStorage` public API and reuse where possible
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-12 11:42:10 +07:00
Stephan Orbaugh
199ee80795
Merge pull request #46710 from nextcloud/artonge/fix/use_timestamp_instead_of_revision
...
fix: Use timestamp instead of revision id in files_versions metadata API
2024-08-06 15:00:41 +07:00
Côme Chilliet
30a2e8f9b8
fix(files_versions): Catch constraint error on version insertion
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-07-30 17:09:10 +07:00
provokateurin
2c8f6a009a
refactor(files_versions): Replace security annotations with respective attributes
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-07-27 21:34:00 +07:00
greta
26d22881e5
fix: add a try and catch for delete versioning
...
Signed-off-by: greta <gretadoci@gmail.com>
2024-07-25 14:46:06 +07:00
carhe
7eac3fe7da
fix(files_versions): avoid unintentional skipping of expiration
...
Signed-off-by: carhe <carstenherrmann@web.de>
2024-07-25 12:29:04 +07:00
Louis Chemineau
6e76aed867
fix: Use timestamp instead of revision id in files_versions metadata API
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-07-24 09:34:13 +07:00
Andy Scherzinger
afa48a4e0e
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-02 20:00:00 +07:00
Louis Chemineau
369274c9ee
feat(files_versions): Add listener and interfaces to allow versions migration across storages
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-26 17:40:31 +07:00
Louis
ddb84f9738
Merge pull request #44362 from nextcloud/artonge/feat/check_permissions_of_all_nodes_for_versions
...
Check permissions of all accessible file for versions
2024-03-22 20:35:11 +07:00
Louis Chemineau
a15c0d6515
Merge pull request #44297 from nextcloud/fix/forbid-tagging-readonly-files
...
Forbid tagging readonly files
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-21 15:10:30 +07:00
Louis Chemineau
673a851848
refactor(files_versions): Rename MetadataFileEvents to VersionAuthorListener
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-21 12:30:01 +07:00
John Molakvoæ
2ff172004a
Merge pull request #43613 from nextcloud/version-owner-fallback
2024-03-16 13:23:06 +07:00
Louis Chemineau
9361a305ba
chore(files_versions): Use new metadata API for versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-13 15:27:06 +07:00
Eduardo Morales
c5d1fda4ab
fix: fixed stylistic errors
...
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +07:00
Eduardo Morales
a8844d408b
fix(files_version): deprecated INameableVersion
...
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +07:00
Eduardo Morales
4cf4fdc278
feat: exposed metadata column to frontend
...
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +07:00
Eduardo Morales
b2c855451c
feat: added backend metadata interface, allows JSON storage
...
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +07:00
Eduardo Morales
88b40bb392
feat: added metadata event listener
...
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 15:57:12 +07:00
Louis
310c8be748
Revert "files_versions: add missing null check"
2024-03-08 10:33:30 +07:00
Robin Appelman
1125cf7afc
fix: fallback from guessing the owner from path in versioning
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-07 23:15:09 +07:00
Varun Patil
d49787d004
fix(files_versions): Add missing null check
...
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2024-03-07 11:21:57 +07:00
Louis Chemineau
fcdc8b47f2
fix(files_versions): Improve files version listing
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-06 10:15:31 +07:00
Robin Appelman
fd4ca13867
Merge pull request #43471 from nextcloud/cache-path-by-id
...
Cache path by id
2024-03-05 17:26:25 +07:00
John Molakvoæ
a58ed05f1d
Merge pull request #43898 from nextcloud/artonge/fix/improve_files_versions_listing
...
Improve files version listing
2024-03-04 17:23:18 +07:00
Robin Appelman
e7a7b4a401
perf: switch places that always use the first getById result to getFirstNodeById
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-04 13:57:31 +07:00
Louis Chemineau
66fbb7be76
fix(files_versions): Do not create a new version for empty files
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-29 21:32:28 +07:00
Louis Chemineau
870572783a
fix(files_versions): Improve files version listing
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-29 21:32:20 +07:00
Louis Chemineau
046b8f320f
Check permissions when labeling a version
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-21 15:09:33 +07:00
Louis Chemineau
37d0fd109a
Check node permissions when restoring a version
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-21 15:06:01 +07:00