aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #52369 from nextcloud/fix/files-versions-authorFerdinand Thiessen2025-04-291-1/+2
|\ | | | | fix(files_versions): wait for version to be created before setting metadata
| * fix(files_versions): wait for version to be created before setting metadatafix/files-versions-authorFerdinand Thiessen2025-04-231-1/+2
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(l10n): Update translations from TransifexNextcloud bot2025-04-282-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(files_versions): only handle path updates when there is pathfix/files-versions-listenersFerdinand Thiessen2025-04-271-4/+12
| | | | | | | | | | | | | | | | | | `getPathForNode` can fail with null for various reasons (e.g. no owner), in this cases we need to just skip the event handling. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #51355 from AIlkiv/refactor/rollback-hook-usageStephan Orbaugh2025-04-251-8/+10
|\ \ | | | | | | refactor: cleanup rollback hook usage
| * | refactor: cleanup rollback hook usageailkiv2025-04-251-8/+10
| | | | | | | | | | | | Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
* | | fix(files_versions): create version if previous does not existfix/files-version-creationFerdinand Thiessen2025-04-231-2/+11
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This issue happens reproducible if: - Versions is disabled - Upload a file - Enable versions - Upload same file unchanged - Now the error happens. Problem is that the mtime is unchanged so no version will be created on the upload, but it tries to update the last version which does not exists. Instead of "upload same file unchanged" you can also - like in the example stack trace above - use Android with an SD card with invalid mtime -> the mtime will be stripped so its always the same. Instead of disable versions the same also happens if e.g. the versions creation failed due to other issues. The solution now is to catch the exception and create if not exists. A cleaner solution would be to have a method on the versions backend like `hasVersionEntity(File $file, int $revision): bool` but this would be a breaking change or at least a feature that apps need to implement. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(l10n): Update translations from TransifexNextcloud bot2025-04-182-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(l10n): Update translations from TransifexNextcloud bot2025-04-172-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-04-112-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-04-092-4/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-04-082-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-04-054-4/+8
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-302-2/+4
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-304-4/+8
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-2824-24/+48
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(files_versions): Rely on server mime fallback iconsfix/files_versions/previewsprovokateurin2025-03-273-8/+5
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | feat(files_versions): Implement preview mime icon fallbackprovokateurin2025-03-272-1/+39
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix(files_versions): Cache previewsprovokateurin2025-03-272-5/+14
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-2782-0/+82
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | fix(files_versions): correctly show version author also for shared filesFerdinand Thiessen2025-03-252-42/+51
| | | | | | | | | | | | | | The users endpoint is not available for other users if the current user has no admin privileges, so instead use the displaynames endpoint. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-202-2/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-182-2/+2
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-03-152-2/+2
|/ | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Merge pull request #50990 from AIlkiv/refactor/version-rollback-to-eventStephan Orbaugh2025-02-277-12/+158
|\ | | | | refactor: move version rollback hook to event
| * refactor: move version rollback hook to eventailkiv2025-02-257-12/+158
| | | | | | | | Signed-off-by: ailkiv <a.ilkiv.ye@gmail.com>
* | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-2788-510/+424
| | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | Merge pull request #50903 from ↵Louis2025-02-252-1/+23
|\ \ | | | | | | | | | | | | nextcloud/artonge/fix/min_age_rentention_files_versions fix(files_versions): Do not expire versions newer than min age
| * | fix(files_versions): Do not expire versions newer than min ageartonge/fix/min_age_rentention_files_versionsLouis Chemineau2025-02-192-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-242-2/+2
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Merge pull request #50958 from ↵Konstantin Myakshin2025-02-241-1/+5
|\ \ \ | |_|/ |/| | | | | | | | nextcloud/bugfix/fix-not-found-exception-for-anonymous-users Fix: NotFoundException for anonymous users
| * | Fix: NotFoundException for anonymous usersbugfix/fix-not-found-exception-for-anonymous-usersKostiantyn Miakshyn2025-02-211-1/+5
| | | | | | | | | | | | Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-232-10/+10
| | | | | | | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* | | Fix(l10n): Update translations from TransifexNextcloud bot2025-02-222-14/+42
|/ / | | | | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* / refactor: Migrate nextcloud-vue usage to new import schemaFerdinand Thiessen2025-02-203-20/+24
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-172-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-142-2/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-136-59/+65
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-02-064-0/+14
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-01-312-0/+4
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* fix(files_versions): Update `unencrypted_size` during rollbackartonge/fix/restoring_encrypted_versionLouis Chemineau2025-01-281-1/+2
| | | | | | 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>
* chore(files_versions): Remove unused $node variableLouis Chemineau2025-01-281-2/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-01-252-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-01-2376-152/+76
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* chore: Bump app versions and requirementsJoas Schilling2025-01-231-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2025-01-172-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* refactor(OpenAPI): Adjust scopes to match previous behaviorprovokateurin2025-01-061-0/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-12-162-8/+8
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>
* Fix(l10n): Update translations from TransifexNextcloud bot2024-12-062-0/+2
| | | | Signed-off-by: Nextcloud bot <bot@nextcloud.com>