Skip to content

[stable35] test(dav): mock share token and session in testCheckTokenUsesNormalizedToken - #67080

Merged
joshtrichards merged 1 commit into
stable35from
fix/dav-public-auth-test-null-offset
Nov 28, 2026
Merged

joshtrichards merged 1 commit into
stable35from
fix/dav-public-auth-test-null-offset

Conversation

@szaimen

@szaimen szaimen commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

The share mock did not stub getToken(), so isShareInSession() used null as an array offset, which is deprecated since PHP 8.5. The session mock also still targeted the old public_link_authenticated key, which checkToken() no longer reads. Aligns the test with master.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…edToken

The share mock did not stub getToken(), so isShareInSession() used null
as an array offset, which is deprecated since PHP 8.5. The session mock
also still targeted the old public_link_authenticated key, which
checkToken() no longer reads. Aligns the test with master.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen added this to the Nextcloud 35.0.4 milestone Nov 27, 2026
@szaimen
szaimen requested a review from a team as a code owner November 27, 2026 12:18
@szaimen
szaimen requested review from come-nc and provokateurin and removed request for a team November 27, 2026 12:18
@szaimen szaimen added bug 3. to review Waiting for reviews labels Nov 27, 2026
@github-actions github-actions Bot changed the title test(dav): mock share token and session in testCheckTokenUsesNormalizedToken [stable35] test(dav): mock share token and session in testCheckTokenUsesNormalizedToken Nov 27, 2026

@joshtrichards joshtrichards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess this repairs a test-fixture mismatch between the session-auth backport (#66178 / #66204) and the path-handling backport (#66038).

I see some non-blocking clean-up opportunities, but they aren't of much consequence and exist in master too.

@szaimen

szaimen commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

/backport to master

@joshtrichards
joshtrichards merged commit 4e3ea38 into stable35 Nov 28, 2026
168 of 174 checks passed
@joshtrichards
joshtrichards deleted the fix/dav-public-auth-test-null-offset branch November 28, 2026 19:56
@backportbot

backportbot Bot commented Nov 28, 2026

Copy link
Copy Markdown

The backport to master failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout master
git pull origin master

# Create the new backport branch
git checkout -b backport/67080/master

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 710481ee

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/67080/master

Error: Failed to check for changes with origin/master: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@szaimen

szaimen commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

/backport to master

@backportbot

backportbot Bot commented Nov 28, 2026

Copy link
Copy Markdown

The backport to master failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout master
git pull origin master

# Create the new backport branch
git checkout -b backport/67080/master

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 710481ee

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/67080/master

Error: Failed to check for changes with origin/master: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants