Julius Härtl
bbb7172220
fix: Also cleanup version metadata if expiring
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-08-14 19:31:41 +07:00
Nextcloud bot
dfbc0d8572
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-08-14 00:25:59 +07:00
Nextcloud bot
5dfef033b5
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-08-12 00:27:39 +07:00
Nextcloud bot
f0db3d0de1
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-08-11 00:30:07 +07:00
Julius Härtl
2c8753a939
fix: Pass proper viewer filename
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-08-10 12:43:34 +07:00
Nextcloud bot
9fda40f92a
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-08-10 00:26:45 +07:00
Louis Chemineau
5902325e23
feat: Use viewer to open and compare versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-08-08 21:19:03 +07:00
Faraz Samapoor
90652fd30f
Uses early returns.
...
To improve code readability.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-08-03 16:42:56 +07:00
Faraz Samapoor
ab79706253
Refactors files_version app commands.
...
To improve code readability.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-08-03 16:35:09 +07:00
Ferdinand Thiessen
663db2bb34
chore: Update nextcloud-vue to v8 beta2 and renamed changed properties
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-02 15:19:26 +07:00
Nextcloud bot
19e7704c85
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-26 00:57:25 +07:00
Nextcloud bot
46d80b4f70
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-19 00:26:31 +07:00
jld3103
3dff41786d
files_versions: Add OpenAPI spec
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-07-13 10:20:09 +07:00
Nextcloud bot
97a93c73ce
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-13 00:29:31 +07:00
Nextcloud bot
3fb8aad35b
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-10 00:28:45 +07:00
Nextcloud bot
a9ba19d3d4
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-07-07 00:27:34 +07:00
Louis Chemineau
eb71ee950d
Enable all files versions features when groupfolders is enabled
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-07-05 15:52:13 +07:00
Joas Schilling
75d5fa4115
Merge pull request #39089 from nextcloud/bugfix/39087/fix-2fa-event-names
...
Fix event names of 2FA related typed events
2023-07-03 15:38:28 +07:00
Joas Schilling
05aa39d777
Fix event names of 2FA related typed events
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-03 14:25:01 +07:00
Christoph Wurst
95145ee0c9
feat(ocp): More specific type for ICapabilities::getCapabilities
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-07-03 10:03:45 +07:00
Louis Chemineau
05acd916b5
Base versions' has-preview on mimetype
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-29 12:08:59 +07:00
Louis Chemineau
6eb93c652a
Do not load preview if version tab is not active
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-28 17:00:23 +07:00
Louis Chemineau
36c3846475
Provide hasPreview in files_versions DAV API
...
This allow to no request non existing previews
I also set some properties to the img element to reduce preview loading to what the browser think is necessary
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-28 16:46:48 +07:00
Julius Härtl
05f360c5ec
Merge pull request #38800 from nextcloud/bugfix/noid/version-update-or-insert
2023-06-23 10:40:32 +07:00
Louis Chemineau
7fec07196d
Do not create a new version if previousNode has the same mtime
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-22 17:49:49 +07:00
Julius Härtl
b94145f6bd
fix: Add logging statement for cases when updating the version fails
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-21 10:35:12 +07:00
Louis Chemineau
ecdcc72e4d
Handle previousNode size === 0 on version creation
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-21 09:56:20 +07:00
Nextcloud bot
64c19ce3aa
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-20 00:22:52 +07:00
Nextcloud bot
79aca5520e
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-18 00:17:49 +07:00
Nextcloud bot
bd3f3afcf7
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-17 00:17:53 +07:00
Nextcloud bot
c12a64fa52
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-14 00:17:56 +07:00
Julius Härtl
e76c96be5c
fix: Avoid failing to update the current version entry if there is none
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-13 22:10:13 +07:00
Benjamin Somers
75e04614c1
Enable version features again with S3 versioning
...
Signed-off-by: Benjamin Somers <bsomers@resel.fr>
2023-06-13 15:06:36 +07:00
Nextcloud bot
a85831a597
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-06-12 00:17:56 +07:00
Louis
3053df7b7c
Merge pull request #38469 from nextcloud/artonge/fix/versions_init
...
Fix initialisation of versions in the DB
2023-05-30 13:38:51 +07:00
Nextcloud bot
45d7cee7f8
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-30 00:17:33 +07:00
Nextcloud bot
eaff926732
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-27 00:17:51 +07:00
Louis
9fa42c0b4f
Merge branch 'master' into artonge/fix/versions_init
2023-05-26 10:52:16 +07:00
Louis Chemineau
e8eb8a9f74
Add fallback when a there is no preview for a version
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-25 23:46:04 +07:00
Louis Chemineau
c40de8b88f
Improve handling of undefined version label
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-25 23:46:04 +07:00
Louis Chemineau
c3475f4dbb
Fix initialisation of versions in the DB
...
Broken after https://github.com/nextcloud/server/pull/36690
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-25 23:43:40 +07:00
Varun Patil
66a8a9fba1
Use consistent imports for Vue components
...
This makes tree shaking possible
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2023-05-23 22:34:14 +07:00
Nextcloud bot
b24bb42ef7
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-18 00:17:49 +07:00
Joas Schilling
7e45fdf867
chore(release): Bump requirements and versions in apps/
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-17 10:44:23 +07:00
Git'Fellow
d6eb48c436
Check if version has entity before trying to access it
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-05-12 16:00:16 +07:00
Git'Fellow
7cd5cbe6e9
Check if version entity is not null before delete
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2023-05-08 14:24:58 +07:00
Nextcloud bot
f997b8a2a3
Fix(l10n): Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-05-05 02:28:12 +07:00
Max
337fc110ec
fix: catch ManuallyLockedException and use app context
...
The files_lock app may throw ManuallyLockedExceptions
when attempting to revert a file that is currently opened.
This would prevent the user from rolling back a opened file.
Text and Richdocuments handle changes of the file while editing.
Allow reverting files even when they are locked by these apps
and let the apps handle the conflict.
Signed-off-by: Max <max@nextcloud.com>
2023-05-03 09:52:36 +07:00
Joas Schilling
f2afccfd56
fix(assets): Optimize SVGs with scour 0.38.2
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-24 08:59:38 +07:00
Joas Schilling
cca3b9495c
chore(autoloader): Update autoloaders with composer 2.5.5
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-21 15:53:55 +07:00
Côme Chilliet
60b7d2117e
Merge pull request #37428 from nextcloud/enh/ignore-non-numeric-versions
...
Ignore and log non integer versions
2023-04-20 13:33:58 +07:00
Jérôme Herbinet
4ec183fa33
Highlight selected file version (Nextcloud Office)
...
After my PR #32492 fail, I create a new PR.
Signed-off-by: Jérôme Herbinet <jerome.herbinet@arawa.fr>
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-18 15:38:13 +07:00
Louis Chemineau
cca46f18eb
Really disable versions features when S3 versioning is enabled
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-04-17 11:16:20 +07:00
Julius Härtl
2e1a560867
Merge pull request #36690 from nextcloud/bugfix/noid/rollback-hook
2023-04-14 17:09:17 +07:00
John Molakvoæ
a66cae02ef
fix(deps): update webdav 5 usage
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:32 +07:00
Côme Chilliet
a6b1d990a4
Check for non-numeric versions, not non-integer
...
All versions are string
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-05 17:50:45 +07:00
Côme Chilliet
8cc8765089
Ignore and log non integer versions
...
This avoids being stuck when there is one buggy file version with a
non-integer version. It allows the expiration process to not crash and
continue with the other ones.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-05 17:44:14 +07:00
Côme Chilliet
ea05544213
Fix return type of methods returning false on error
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-03 10:52:34 +07:00
Nextcloud bot
2eda49e28d
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-30 02:27:36 +07:00
Nextcloud bot
7803ba18b3
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-27 10:18:15 +07:00
John Molakvoæ
8633f13e0a
chore(eslint): fix missing import extensions
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 08:14:19 +07:00
John Molakvoæ
5adfec3dc6
chore(eslint): replace node/no-missing-import by n/no-missing-import
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 07:31:33 +07:00
Nextcloud bot
07448168dc
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-20 02:27:19 +07:00
Julius Härtl
f00f4244d4
fix: Check return type on rollback
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:59:33 +07:00
Robin Appelman
62e6a32899
don't re-get fileinfo for versioned file if it's not shared
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-03-13 10:52:37 +07:00
Julius Härtl
c22d51c1ad
tests(files_versions): Tear down fs to clear mount cache before testing
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:52:37 +07:00
Julius Härtl
cf46bd6915
fix: Make sure that rollback hook is triggered on all version backends
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 10:52:35 +07:00
Louis Chemineau
97b56da75e
Use native tooltip for versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-03-09 17:38:51 +07:00
Christopher Ng
72e2cabf40
Fix download URL for versions
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-03-07 10:14:33 +07:00
Nextcloud bot
7df188b200
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-06 02:27:01 +07:00
Joas Schilling
d21db216f7
chore(release): Bump requirements and versions in apps/
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-03 06:44:27 +07:00
Nextcloud bot
8657c93a97
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-03-01 02:28:10 +07:00
Nextcloud bot
15f660fa5f
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-27 02:26:11 +07:00
Nextcloud bot
2a4926f5e7
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-26 02:27:27 +07:00
Nextcloud bot
b7bf29fd8c
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-24 02:34:40 +07:00
blizzz
fdc64b1ef6
Merge pull request #36556 from nextcloud/artonge/fix/expiring_file_versions_empty_db
...
Handle empty DB while expiring versions
2023-02-16 14:08:29 +07:00
Nextcloud bot
4774637b5f
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-12 02:25:57 +07:00
Nextcloud bot
524db1c6dc
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-10 02:26:36 +07:00
Nextcloud bot
c10317f7f9
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-09 02:25:43 +07:00
Louis Chemineau
21cd3b0e0d
Handle empty DB while expiring versions
...
Version on the FS can have no equivalent in the DB if they were created before the version naming feature. This makes sure that we catch the resulting exception and proceed as usual.
Fix https://github.com/nextcloud/server/issues/36541
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-02-08 13:56:49 +07:00
Côme Chilliet
1765908c03
Document that size may be a float in new class VersionEntity
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-02-07 11:23:34 +07:00
Côme Chilliet
0753be3ff2
Fix a few tests that were using too big int values for 32bits
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-02-07 11:23:30 +07:00
Nextcloud bot
1f26731c1d
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-04 02:25:17 +07:00
Nextcloud bot
129803d036
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-02 02:25:46 +07:00
Nextcloud bot
03a6d1a985
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-02-01 02:25:23 +07:00
Nextcloud bot
9035be6b81
Fix(l10n): 🔠 Update translations from Transifex
...
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-31 02:25:42 +07:00
Louis Chemineau
96002651ce
Handle undefined label in front-end
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
fd9937a171
Add cypress tests
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
88abb2d97c
Fix versions restoring with S3
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
3da63f4148
Use node's owner if no user is connected
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
84e5b9c5f7
Prevent storing versions with the same mtime
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
6dcfb29cfc
Fix renaming files_versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
c88328e68e
Handle empty files in version creation logic
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
d8b479752d
Fix hookconnector tests
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
53d736207c
Adapt files_versions tests to modernized hooks
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
2ce4ac4aa4
User rootFolder instead of userFolder in FileEventsListener
...
Requesting userFolder fails during NC installation phase.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
8f23cc8259
Rename Hooks.php to FileEventsListener.php
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
ad469969bf
Prevent expiration of named versions
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
1adc9d2aab
Delete file versions entries in DB when node is deleted
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00
Louis Chemineau
6a2f8bc599
Allow to delete a version through DAV
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-26 10:12:23 +07:00