Skip to content

[stable35] fix(files): keep the view when reloading a file opened outside the files view - #65543

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/65120/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/65120/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 15, 2026

Copy link
Copy Markdown

Backport of PR #65120

…les view

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>

@susnux susnux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CI related, needs adjustments for 35 and before:

There were

4 errors:

  1. OCA\Files\Tests\Controller\ViewControllerTest::testRedirectToFileFolder with data set "files view" ('files', true)
    PHPUnit\Framework\MockObject\Generator\UnknownTypeException: Class or interface "OCA\Files\Tests\Controller\IUserFolder" does not exist

/home/runner/actions-runner/_work/server/server/apps/files/tests/Controller/ViewControllerTest.php:228

  1. OCA\Files\Tests\Controller\ViewControllerTest::testRedirectToFileFolder with data set "no view" ('', true)
    PHPUnit\Framework\MockObject\Generator\UnknownTypeException: Class or interface "OCA\Files\Tests\Controller\IUserFolder" does not exist

/home/runner/actions-runner/_work/server/server/apps/files/tests/Controller/ViewControllerTest.php:228

  1. OCA\Files\Tests\Controller\ViewControllerTest::testRedirectToFileFolder with data set "personal files" ('personal', true)
    PHPUnit\Framework\MockObject\Generator\UnknownTypeException: Class or interface "OCA\Files\Tests\Controller\IUserFolder" does not exist

/home/runner/actions-runner/_work/server/server/apps/files/tests/Controller/ViewControllerTest.php:228

  1. OCA\Files\Tests\Controller\ViewControllerTest::testRedirectToFileFolder with data set "tags view" ('tags', false)
    PHPUnit\Framework\MockObject\Generator\UnknownTypeException: Class or interface "OCA\Files\Tests\Controller\IUserFolder" does not exist

/home/runner/actions-runner/_work/server/server/apps/files/tests/Controller/ViewControllerTest.php:228

$node->method('getPath')->willReturn('/testuser1/files/Folder/photo.jpg');
$node->method('getParent')->willReturn($this->createMock(Folder::class));

$baseFolderFiles = $this->createMock(IUserFolder::class);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

36+ only, does not exist on stable35

This was referenced Nov 10, 2026

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants