Skip to content

Conversation

@backportbot-libresign
Copy link

@backportbot-libresign backportbot-libresign bot commented Jan 2, 2026

Backport of #6302

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Allow envelopes to be created at user-specified absolute paths.
Add getUserRootFolder() and getOrCreateFolderByAbsolutePath() methods
to FolderService for path-based folder management with validation.

Signed-off-by: Vitor Mattos <[email protected]>
Move EnvelopeService and EnvelopeFileRelocator to Service/Envelope/
namespace for better code organization. Extract file relocation logic
from RequestSignatureService into EnvelopeFileRelocator to improve
separation of concerns and testability.

Signed-off-by: Vitor Mattos <[email protected]>
Add tests for getUserRootFolder() and getOrCreateFolderByAbsolutePath()
to validate folder creation, nested paths, and empty folder validation.

Signed-off-by: Vitor Mattos <[email protected]>
Add tests covering custom paths (root, nested, with spaces), default
naming patterns, empty folder validation, and file count constraints
using dataProviders for better test organization.

Signed-off-by: Vitor Mattos <[email protected]>
Add tests for file relocation logic validating files are copied into
envelope folders when outside, returned as-is when already inside, and
proper error handling for invalid nodes. Update namespace references
in related test files.

Signed-off-by: Vitor Mattos <[email protected]>
Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos force-pushed the backport/6302/stable32 branch from 2b8a35f to 1c5e64a Compare January 2, 2026 15:49
@vitormattos vitormattos marked this pull request as ready for review January 2, 2026 15:49
@vitormattos vitormattos merged commit a0a1ffd into stable32 Jan 2, 2026
62 of 63 checks passed
@vitormattos vitormattos deleted the backport/6302/stable32 branch January 2, 2026 17:03
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants