Compare commits

...

8 Commits

Author SHA1 Message Date
backportbot[bot] 82b0f32cd2
Merge 44ae76f423 into 369247338b 2024-04-29 16:05:05 +02:00
Côme Chilliet 369247338b
Merge pull request #44500 from nextcloud/backport/44484/stable28
[stable28] fix(share): Send correct share attributes upon share creation
2024-04-29 15:25:21 +02:00
Simon L 5b72d48cff
Merge pull request #45039 from nextcloud/backport/45035/stable28
[stable28] fix: chunked upload leading to 0-byte files
2024-04-29 12:57:45 +02:00
Simon L. c1a90cbfb9 fix: chunked upload leading to 0-byte files
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-04-29 11:10:28 +02:00
nextcloud-command 44ae76f423 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-04-28 22:39:50 +00:00
fenn-cs a37862b696 fix(unifiedSearch): Prevent broken avatars for federated users
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-04-29 00:35:16 +02:00
nextcloud-command a37aa0333c chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-04-26 21:48:48 +00:00
fenn-cs bbb28fd483 fix(share): Send correct share attributes upon share creation
- Send correct share attributes (`share.attributes`) to server upon creation.

- Delete parts of code that create or reference, `share.hasDownloadPermission`

(Not required by Share API)

Resolves : https://github.com/nextcloud/server/issues/44131

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-04-26 20:59:57 +01:00
15 changed files with 16 additions and 13 deletions

View File

@ -102,10 +102,8 @@
# Here are more information about the issue:
# - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
# - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
<IfModule setenvif.c>
<Location "/remote.php">
SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
</Location>
<IfModule mod_setenvif.c>
SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
</IfModule>
AddDefaultCharset utf-8

View File

@ -373,10 +373,14 @@ export default {
*/
canDownload: {
get() {
return this.share.hasDownloadPermission
return this.share.attributes.find(attr => attr.key === 'download')?.enabled || false
},
set(checked) {
this.updateAtomicPermissions({ isDownloadChecked: checked })
// Find the 'download' attribute and update its value
const downloadAttr = this.share.attributes.find(attr => attr.key === 'download')
if (downloadAttr) {
downloadAttr.enabled = checked
}
},
},
/**
@ -680,7 +684,6 @@ export default {
isCreateChecked = this.canCreate,
isDeleteChecked = this.canDelete,
isReshareChecked = this.canReshare,
isDownloadChecked = this.canDownload,
} = {}) {
// calc permissions if checked
const permissions = 0
@ -690,9 +693,6 @@ export default {
| (isEditChecked ? ATOMIC_PERMISSIONS.UPDATE : 0)
| (isReshareChecked ? ATOMIC_PERMISSIONS.SHARE : 0)
this.share.permissions = permissions
if (this.share.hasDownloadPermission !== isDownloadChecked) {
this.$set(this.share, 'hasDownloadPermission', isDownloadChecked)
}
},
expandCustomPermissions() {
if (!this.advancedSectionAccordionExpanded) {
@ -854,8 +854,8 @@ export default {
shareType: share.shareType,
shareWith: share.shareWith,
permissions: share.permissions,
attributes: JSON.stringify(fileInfo.shareAttributes),
expireDate: share.expireDate,
attributes: JSON.stringify(share.attributes),
...(share.note ? { note: share.note } : {}),
...(share.password ? { password: share.password } : {}),
})
@ -999,7 +999,7 @@ export default {
flex-direction: column;
}
}
/* Target component based style in NcCheckboxRadioSwitch slot content*/
:deep(span.checkbox-content__text.checkbox-radio-switch__text) {
flex-wrap: wrap;

View File

@ -46,7 +46,11 @@
:wide="true"
@click="itemSelected(element)">
<template #icon>
<NcAvatar :user="element.user" :show-user-status="false" :hide-favorite="false" />
<NcAvatar v-if="element.isUser" :user="element.user" :show-user-status="false" />
<NcAvatar v-else
:is-no-user="true"
:display-name="element.displayName"
:show-user-status="false" />
</template>
{{ element.displayName }}
</NcButton>

View File

@ -380,6 +380,7 @@ export default {
subname: contact.emailAddresses[0] ? contact.emailAddresses[0] : '',
icon: '',
user: contact.id,
isUser: contact.isUser,
}
})
},

BIN
dist/8094-8094.js vendored Normal file

Binary file not shown.

BIN
dist/8094-8094.js.map vendored Normal file

Binary file not shown.

BIN
dist/8718-8718.js vendored

Binary file not shown.

BIN
dist/8718-8718.js.map vendored

Binary file not shown.

BIN
dist/core-common.js vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.