Skip to content

[stable34] fix(files_external): set usePresignedUrl before first S3 connection - #63456

Open
backportbot[bot] wants to merge 1 commit into
stable34from
backport/63417/stable34
Open

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

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:13
@backportbot
backportbot Bot requested review from CarlSchwan, come-nc, icewind1991, kesselb, provokateurin and salmart-dev and removed request for a team August 21, 2026 13:13
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Aug 21, 2026
@backportbot backportbot Bot added this to the Nextcloud 34.0.4 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.

1 participant