Skip to content

[stable33] fix(files_external): set usePresignedUrl before first S3 connection - #63457

Open
backportbot[bot] wants to merge 1 commit into
stable33from
backport/63417/stable33
Open

[stable33] fix(files_external): set usePresignedUrl before first S3 connection#63457
backportbot[bot] wants to merge 1 commit into
stable33from
backport/63417/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 21, 2026

Copy link
Copy Markdown

Backport of PR #63417

isUsePresignedUrl() was read by preSignedUrl() before getConnection()
ever ran, since the flag was only assigned as a side effect inside
getConnection(). Any request path that never opens a real S3 client
(e.g. a PROPFIND that only reads cached DB metadata) saw the flag
stuck at its default false, so downloadURL/download-url-expiration
came back empty even with use_presigned_url configured.

Move the assignment into parseParams(), which runs at construction
time for every S3 backend (primary storage and external storage),
so the flag is correct regardless of whether a connection was ever
opened.

Fixes #59249

Signed-off-by: mostafa <mostafakhaki00@gmail.com>
@backportbot
backportbot Bot requested a review from a team as a code owner August 21, 2026 13:14
@backportbot
backportbot Bot requested review from Altahrim, CarlSchwan, come-nc, icewind1991, kesselb and provokateurin and removed request for a team August 21, 2026 13:14
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Aug 21, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.9 milestone Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants