Skip to content

feat: Password protected public share#1922

Open
FabianDevel wants to merge 17 commits intomainfrom
password-protected-public-share
Open

feat: Password protected public share#1922
FabianDevel wants to merge 17 commits intomainfrom
password-protected-public-share

Conversation

@FabianDevel
Copy link
Contributor

Add the possibility to open a password protected public share directly in the application instead of going to the browser.

@FabianDevel FabianDevel added enhancement New feature or request feature A new functionality is added to the product labels Jan 16, 2026
@FabianDevel FabianDevel force-pushed the password-protected-public-share branch from 58b1095 to 679cc1f Compare January 20, 2026 08:43
@FabianDevel FabianDevel marked this pull request as draft January 20, 2026 09:25
@FabianDevel FabianDevel force-pushed the password-protected-public-share branch from 679cc1f to 0482e15 Compare January 28, 2026 14:26
@FabianDevel FabianDevel force-pushed the password-protected-public-share branch from 0482e15 to 671e192 Compare February 5, 2026 10:41
@benjaminVadon benjaminVadon force-pushed the password-protected-public-share branch from 671e192 to f553c07 Compare February 19, 2026 12:34
@benjaminVadon benjaminVadon self-assigned this Feb 20, 2026
@benjaminVadon benjaminVadon force-pushed the password-protected-public-share branch from f9bbf83 to 589bca9 Compare February 20, 2026 06:48
@benjaminVadon benjaminVadon marked this pull request as ready for review February 20, 2026 06:48
@benjaminVadon benjaminVadon force-pushed the password-protected-public-share branch from 589bca9 to 2b01b20 Compare February 25, 2026 12:20
Comment on lines +466 to +469
fun String.appendQuery(query: String): String {
val querySeparator = if (contains("?")) "&" else "?"
return this + querySeparator + query
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use Uri.Builder or buildUrl from ktor to manage all the case of ApiRoutes ?

Comment on lines 358 to 366
with(publicShareViewModel) {
val emptyFilesResult = PublicShareFilesResult(files = emptyList(), shouldUpdate = false, isNewSort = false)
childrenLiveData.value = emptyFilesResult
cancelDownload()

if (folderId == ROOT_SHARED_FILE_ID || rootSharedFile.value == null) {
if (folderId == ROOT_SHARED_FILE_ID || !isFolder()) {
downloadPublicShareRootFile()
} else {
getFiles(folderId, fileListViewModel.sortType, isNewSort)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be all moved in a method in PublicShareViewModel, what do you think ?

@FabianDevel FabianDevel force-pushed the password-protected-public-share branch from 2b01b20 to eaec8d5 Compare March 2, 2026 14:04
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature A new functionality is added to the product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants