Skip to content

[stable31] feat: envelope custom path#6303

Merged
vitormattos merged 7 commits intostable31from
backport/6302/stable31
Jan 2, 2026
Merged

[stable31] feat: envelope custom path#6303
vitormattos merged 7 commits intostable31from
backport/6302/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

@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/stable31 branch from 7949c4b to 0e64d49 Compare January 2, 2026 15:48
@vitormattos vitormattos marked this pull request as ready for review January 2, 2026 15:50
@vitormattos vitormattos merged commit e09cb34 into stable31 Jan 2, 2026
63 checks passed
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 2, 2026
@vitormattos vitormattos deleted the backport/6302/stable31 branch January 2, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant