From da6736b503439b891a067b60e76cd6b0ef6697b3 Mon Sep 17 00:00:00 2001 From: AbangTor <63029179+abangtor@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:12:17 +0800 Subject: [PATCH 1/2] fix(lookup_server_connector): fixed publishing of user properties to lookup-server Fix of the bug in the lookup_server_connector module to publish public user information to the lookup-server. As described in issue [#25290](https://github.com/nextcloud/server/issues/25290) Signed-off-by: AbangTor <63029179+abangtor@users.noreply.github.com> --- .../lib/BackgroundJobs/RetryJob.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php index 1958e666503..b0f36a225b9 100644 --- a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php +++ b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php @@ -164,9 +164,13 @@ class RetryJob extends Job { $account = $this->accountManager->getAccount($user); $publicData = []; - foreach ($account->getProperties() as $property) { + foreach ($account->getAllProperties() as $property) { if ($property->getScope() === IAccountManager::SCOPE_PUBLISHED) { - $publicData[$property->getName()] = $property->getValue(); + $publicData[$property->getName()] = [ + 'value' => $property->getValue(), + 'verified' => $property->getVerified(), + 'signature' => $property->getVerificationData(), + ]; } } From a4e96444102eb986abf86f1faa4f86dfe0f42377 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 5 Mar 2025 09:58:59 +0100 Subject: [PATCH 2/2] test: fix cypress files trashbin tests Signed-off-by: Ferdinand Thiessen --- cypress/e2e/files_trashbin/files.cy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/files_trashbin/files.cy.ts b/cypress/e2e/files_trashbin/files.cy.ts index c3e33d1647d..ab9f6f5c102 100644 --- a/cypress/e2e/files_trashbin/files.cy.ts +++ b/cypress/e2e/files_trashbin/files.cy.ts @@ -64,7 +64,11 @@ describe('files_trashbin: download files', { testIsolation: true }, () => { cy.get('[data-cy-files-list-row-checkbox]').should('have.length', 2) selectAllFiles() cy.get('.files-list__selected').should('have.text', '2 selected') - cy.get('[data-cy-files-list-selection-action="restore"]').should('be.visible') - cy.get('[data-cy-files-list-selection-action="download"]').should('not.exist') + cy.get('.files-list__row-actions-batch') + .should('be.visible') + .within(() => { + cy.findByRole('button', { name: /restore/i }).should('be.visible') + cy.findByRole('button', { name: /download/i }).should('not.exist') + }) }) })