aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: Avoid failing to update the current version entry if there is noneJulius Härtl2023-06-131-5/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Enable version features again with S3 versioningBenjamin Somers2023-06-131-3/+3
| | | | Signed-off-by: Benjamin Somers <bsomers@resel.fr>
* Fix initialisation of versions in the DBLouis Chemineau2023-05-252-4/+31
| | | | | | Broken after https://github.com/nextcloud/server/pull/36690 Signed-off-by: Louis Chemineau <louis@chmn.me>
* Check if version has entity before trying to access itGit'Fellow2023-05-121-1/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Check if version entity is not null before deleteGit'Fellow2023-05-081-1/+6
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix: catch ManuallyLockedException and use app contextMax2023-05-032-16/+67
| | | | | | | | | | | | 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>
* Merge pull request #37428 from nextcloud/enh/ignore-non-numeric-versionsCôme Chilliet2023-04-201-1/+7
|\ | | | | Ignore and log non integer versions
| * Check for non-numeric versions, not non-integerCôme Chilliet2023-04-051-2/+2
| | | | | | | | | | | | All versions are string Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * Ignore and log non integer versionsCôme Chilliet2023-04-051-0/+6
| | | | | | | | | | | | | | | | 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>
* | Really disable versions features when S3 versioning is enabledLouis Chemineau2023-04-171-1/+1
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Merge pull request #36690 from nextcloud/bugfix/noid/rollback-hookJulius Härtl2023-04-143-20/+27
|\ \ | |/ |/|
| * fix: Check return type on rollbackJulius Härtl2023-03-131-5/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * don't re-get fileinfo for versioned file if it's not sharedRobin Appelman2023-03-131-13/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * tests(files_versions): Tear down fs to clear mount cache before testingJulius Härtl2023-03-131-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Make sure that rollback hook is triggered on all version backendsJulius Härtl2023-03-132-7/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix return type of methods returning false on errorCôme Chilliet2023-04-031-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Handle empty DB while expiring versionsLouis Chemineau2023-02-081-4/+10
| | | | | | | | 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>
* Document that size may be a float in new class VersionEntityCôme Chilliet2023-02-074-9/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix versions restoring with S3Louis Chemineau2023-01-261-5/+24
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use node's owner if no user is connectedLouis Chemineau2023-01-261-15/+25
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Prevent storing versions with the same mtimeLouis Chemineau2023-01-261-2/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix renaming files_versionsLouis Chemineau2023-01-261-7/+6
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Handle empty files in version creation logicLouis Chemineau2023-01-265-29/+131
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix hookconnector testsLouis Chemineau2023-01-261-30/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Adapt files_versions tests to modernized hooksLouis Chemineau2023-01-261-8/+45
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* User rootFolder instead of userFolder in FileEventsListenerLouis Chemineau2023-01-261-13/+26
| | | | | | Requesting userFolder fails during NC installation phase. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Rename Hooks.php to FileEventsListener.phpLouis Chemineau2023-01-262-11/+12
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Prevent expiration of named versionsLouis Chemineau2023-01-261-1/+22
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Delete file versions entries in DB when node is deletedLouis Chemineau2023-01-262-0/+10
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow to delete a version through DAVLouis Chemineau2023-01-266-4/+72
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Support getting and patching version-labelLouis Chemineau2023-01-2611-35/+294
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Create files_versions tableLouis Chemineau2023-01-263-0/+220
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Modernise hook listener of files_versionsLouis Chemineau2023-01-262-55/+88
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Handle badly named version files more gracefully and log informationCôme Chilliet2022-10-111-5/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use filesystem user instead of file owner for creating versionRobin Appelman2022-09-091-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* always use the default fs owner when storing versionsRobin Appelman2022-09-061-14/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Port existing server code to new interfaceCarl Schwan2022-08-081-17/+9
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Expose additional emails in {DAV:}alternate-URI-setThomas Citharel2022-05-171-0/+2
| | | | | | | | | This allows iMip invitations to be send with an alternative email as "Reply-To" field. Closes #27201 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* cache internalpath in versions cleanupRobin Appelman2022-04-041-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add configuration flag to disable the background job for files_versionsDaniel Kesselberg2021-10-111-3/+13
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #27408 from PhrozenByte/enhancement/FilesVersionsCleanUpPathVincent Petry2021-10-081-5/+28
|\ | | | | Add occ versions:cleanup --path option
| * Improve occ versions:cleanup --path optionDaniel Rudolf2021-10-071-2/+2
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
| * Add occ versions:cleanup --path optionDaniel Rudolf2021-06-071-5/+28
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Merge pull request #28458 from nextcloud/expose-user-language-davRichard Steinmetz2021-08-201-1/+3
|\ \ | | | | | | Expose user language through DAV
| * | Expose user language through DAVThomas Citharel2021-08-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces the '{http://nextcloud.com/ns}language' prop that gives the user's language Closes #28449 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | use search to find versions to expireRobin Appelman2021-08-181-18/+43
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Improve auto expiration hintszaimen2021-08-081-1/+1
| | | | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de> Co-Authored-By: Pytal <24800714+Pytal@users.noreply.github.com>
* | Remove allmost all deprecation from the files_version appCarl Schwan2021-07-2311-77/+96
|/ | | | | | | | | | The remaining deprecations are related to Utils::hooks and I will take a look at how EventDispatcher works before working on them. Aside from the deprecations, this patch also does a few minor improvements around type hinting. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0427-60/+23
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\UserChristoph Wurst2021-05-212-5/+5
| | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>